You are not logged in.

#1 2021-02-03 19:48:02

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

[Solved] multiple definitions error making dirb

I'd like to install dirb in my system. I downloaded the AUR PKGBUILD but makepkg returns me these errors:

gcc -Wall  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o dirb -lcurl crea_wordlist.o dirb.o get_url.o lanza_ataque.o calculanec.o utils.o options.o resume.o  -lcurl 
/usr/bin/ld: dirb.o:(.bss+0x3a0): multiple definition of `options'; crea_wordlist.o:(.bss+0x3a0): first defined here
/usr/bin/ld: dirb.o:(.bss+0x64): multiple definition of `encontradas'; crea_wordlist.o:(.bss+0x64): first defined here
/usr/bin/ld: dirb.o:(.bss+0x68): multiple definition of `descargadas'; crea_wordlist.o:(.bss+0x68): first defined here
/usr/bin/ld: dirb.o:(.bss+0x58): multiple definition of `listable'; crea_wordlist.o:(.bss+0x58): first defined here
/usr/bin/ld: dirb.o:(.bss+0x28): multiple definition of `exts_num'; crea_wordlist.o:(.bss+0x28): first defined here
/usr/bin/ld: dirb.o:(.bss+0x8): multiple definition of `dirlist_current'; crea_wordlist.o:(.bss+0x8): first defined here
/usr/bin/ld: dirb.o:(.bss+0x18): multiple definition of `dirlist_base'; crea_wordlist.o:(.bss+0x18): first defined here
/usr/bin/ld: dirb.o:(.bss+0x10): multiple definition of `dirlist_final'; crea_wordlist.o:(.bss+0x10): first defined here
/usr/bin/ld: dirb.o:(.bss+0x1410): multiple definition of `curl'; crea_wordlist.o:(.bss+0x1410): first defined here
/usr/bin/ld: dirb.o:(.bss+0x1418): multiple definition of `outfile'; crea_wordlist.o:(.bss+0x1418): first defined here
/usr/bin/ld: dirb.o:(.bss+0x0): multiple definition of `next_dir'; crea_wordlist.o:(.bss+0x0): first defined here
/usr/bin/ld: dirb.o:(.bss+0x4): multiple definition of `resuming'; crea_wordlist.o:(.bss+0x4): first defined here
/usr/bin/ld: dirb.o:(.bss+0x20): multiple definition of `muts_base'; crea_wordlist.o:(.bss+0x20): first defined here
/usr/bin/ld: dirb.o:(.bss+0x30): multiple definition of `exts_current'; crea_wordlist.o:(.bss+0x30): first defined here
/usr/bin/ld: dirb.o:(.bss+0x38): multiple definition of `exts_base'; crea_wordlist.o:(.bss+0x38): first defined here
/usr/bin/ld: dirb.o:(.bss+0x40): multiple definition of `wordlist_final'; crea_wordlist.o:(.bss+0x40): first defined here
/usr/bin/ld: dirb.o:(.bss+0x48): multiple definition of `wordlist_current'; crea_wordlist.o:(.bss+0x48): first defined here
/usr/bin/ld: dirb.o:(.bss+0x50): multiple definition of `wordlist_base'; crea_wordlist.o:(.bss+0x50): first defined here
/usr/bin/ld: dirb.o:(.bss+0x5c): multiple definition of `existant'; crea_wordlist.o:(.bss+0x5c): first defined here
/usr/bin/ld: dirb.o:(.bss+0x60): multiple definition of `errores'; crea_wordlist.o:(.bss+0x60): first defined here
/usr/bin/ld: dirb.o:(.bss+0x6c): multiple definition of `contador'; crea_wordlist.o:(.bss+0x6c): first defined here
/usr/bin/ld: dirb.o:(.bss+0x80): multiple definition of `nec'; crea_wordlist.o:(.bss+0x80): first defined here
/usr/bin/ld: get_url.o:(.bss+0x6e0): multiple definition of `options'; crea_wordlist.o:(.bss+0x3a0): first defined here
/usr/bin/ld: get_url.o:(.bss+0x398): multiple definition of `listable'; crea_wordlist.o:(.bss+0x58): first defined here
/usr/bin/ld: get_url.o:(.bss+0x3a0): multiple definition of `errores'; crea_wordlist.o:(.bss+0x60): first defined here
/usr/bin/ld: get_url.o:(.bss+0x1750): multiple definition of `curl'; crea_wordlist.o:(.bss+0x1410): first defined here
/usr/bin/ld: get_url.o:(.bss+0x1758): multiple definition of `outfile'; crea_wordlist.o:(.bss+0x1418): first defined here
/usr/bin/ld: get_url.o:(.bss+0x33c): multiple definition of `next_dir'; crea_wordlist.o:(.bss+0x0): first defined here
/usr/bin/ld: get_url.o:(.bss+0x340): multiple definition of `resuming'; crea_wordlist.o:(.bss+0x4): first defined here
/usr/bin/ld: get_url.o:(.bss+0x348): multiple definition of `dirlist_current'; crea_wordlist.o:(.bss+0x8): first defined here
/usr/bin/ld: get_url.o:(.bss+0x350): multiple definition of `dirlist_final'; crea_wordlist.o:(.bss+0x10): first defined here
/usr/bin/ld: get_url.o:(.bss+0x358): multiple definition of `dirlist_base'; crea_wordlist.o:(.bss+0x18): first defined here
/usr/bin/ld: get_url.o:(.bss+0x360): multiple definition of `muts_base'; crea_wordlist.o:(.bss+0x20): first defined here
/usr/bin/ld: get_url.o:(.bss+0x368): multiple definition of `exts_num'; crea_wordlist.o:(.bss+0x28): first defined here
/usr/bin/ld: get_url.o:(.bss+0x370): multiple definition of `exts_current'; crea_wordlist.o:(.bss+0x30): first defined here
/usr/bin/ld: get_url.o:(.bss+0x378): multiple definition of `exts_base'; crea_wordlist.o:(.bss+0x38): first defined here
/usr/bin/ld: get_url.o:(.bss+0x380): multiple definition of `wordlist_final'; crea_wordlist.o:(.bss+0x40): first defined here
/usr/bin/ld: get_url.o:(.bss+0x388): multiple definition of `wordlist_current'; crea_wordlist.o:(.bss+0x48): first defined here
/usr/bin/ld: get_url.o:(.bss+0x390): multiple definition of `wordlist_base'; crea_wordlist.o:(.bss+0x50): first defined here
/usr/bin/ld: get_url.o:(.bss+0x39c): multiple definition of `existant'; crea_wordlist.o:(.bss+0x5c): first defined here
/usr/bin/ld: get_url.o:(.bss+0x3a4): multiple definition of `encontradas'; crea_wordlist.o:(.bss+0x64): first defined here
/usr/bin/ld: get_url.o:(.bss+0x3a8): multiple definition of `descargadas'; crea_wordlist.o:(.bss+0x68): first defined here
/usr/bin/ld: get_url.o:(.bss+0x3ac): multiple definition of `contador'; crea_wordlist.o:(.bss+0x6c): first defined here
/usr/bin/ld: get_url.o:(.bss+0x3c0): multiple definition of `nec'; crea_wordlist.o:(.bss+0x80): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x3a0): multiple definition of `options'; crea_wordlist.o:(.bss+0x3a0): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x38): multiple definition of `exts_base'; crea_wordlist.o:(.bss+0x38): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x0): multiple definition of `next_dir'; crea_wordlist.o:(.bss+0x0): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x30): multiple definition of `exts_current'; crea_wordlist.o:(.bss+0x30): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x5c): multiple definition of `existant'; crea_wordlist.o:(.bss+0x5c): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x1418): multiple definition of `outfile'; crea_wordlist.o:(.bss+0x1418): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x28): multiple definition of `exts_num'; crea_wordlist.o:(.bss+0x28): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x8): multiple definition of `dirlist_current'; crea_wordlist.o:(.bss+0x8): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x50): multiple definition of `wordlist_base'; crea_wordlist.o:(.bss+0x50): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x68): multiple definition of `descargadas'; crea_wordlist.o:(.bss+0x68): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x80): multiple definition of `nec'; crea_wordlist.o:(.bss+0x80): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x64): multiple definition of `encontradas'; crea_wordlist.o:(.bss+0x64): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x4): multiple definition of `resuming'; crea_wordlist.o:(.bss+0x4): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x10): multiple definition of `dirlist_final'; crea_wordlist.o:(.bss+0x10): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x18): multiple definition of `dirlist_base'; crea_wordlist.o:(.bss+0x18): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x20): multiple definition of `muts_base'; crea_wordlist.o:(.bss+0x20): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x40): multiple definition of `wordlist_final'; crea_wordlist.o:(.bss+0x40): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x48): multiple definition of `wordlist_current'; crea_wordlist.o:(.bss+0x48): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x58): multiple definition of `listable'; crea_wordlist.o:(.bss+0x58): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x60): multiple definition of `errores'; crea_wordlist.o:(.bss+0x60): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x6c): multiple definition of `contador'; crea_wordlist.o:(.bss+0x6c): first defined here
/usr/bin/ld: lanza_ataque.o:(.bss+0x1410): multiple definition of `curl'; crea_wordlist.o:(.bss+0x1410): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x30): multiple definition of `exts_current'; crea_wordlist.o:(.bss+0x30): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x3a0): multiple definition of `options'; crea_wordlist.o:(.bss+0x3a0): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x0): multiple definition of `next_dir'; crea_wordlist.o:(.bss+0x0): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x1418): multiple definition of `outfile'; crea_wordlist.o:(.bss+0x1418): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x38): multiple definition of `exts_base'; crea_wordlist.o:(.bss+0x38): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x28): multiple definition of `exts_num'; crea_wordlist.o:(.bss+0x28): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x80): multiple definition of `nec'; crea_wordlist.o:(.bss+0x80): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x4): multiple definition of `resuming'; crea_wordlist.o:(.bss+0x4): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x8): multiple definition of `dirlist_current'; crea_wordlist.o:(.bss+0x8): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x10): multiple definition of `dirlist_final'; crea_wordlist.o:(.bss+0x10): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x18): multiple definition of `dirlist_base'; crea_wordlist.o:(.bss+0x18): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x20): multiple definition of `muts_base'; crea_wordlist.o:(.bss+0x20): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x40): multiple definition of `wordlist_final'; crea_wordlist.o:(.bss+0x40): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x48): multiple definition of `wordlist_current'; crea_wordlist.o:(.bss+0x48): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x50): multiple definition of `wordlist_base'; crea_wordlist.o:(.bss+0x50): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x58): multiple definition of `listable'; crea_wordlist.o:(.bss+0x58): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x5c): multiple definition of `existant'; crea_wordlist.o:(.bss+0x5c): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x60): multiple definition of `errores'; crea_wordlist.o:(.bss+0x60): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x64): multiple definition of `encontradas'; crea_wordlist.o:(.bss+0x64): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x68): multiple definition of `descargadas'; crea_wordlist.o:(.bss+0x68): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x6c): multiple definition of `contador'; crea_wordlist.o:(.bss+0x6c): first defined here
/usr/bin/ld: calculanec.o:(.bss+0x1410): multiple definition of `curl'; crea_wordlist.o:(.bss+0x1410): first defined here
/usr/bin/ld: utils.o:(.bss+0x3a0): multiple definition of `options'; crea_wordlist.o:(.bss+0x3a0): first defined here
/usr/bin/ld: utils.o:(.bss+0x10): multiple definition of `dirlist_final'; crea_wordlist.o:(.bss+0x10): first defined here
/usr/bin/ld: utils.o:(.bss+0x5c): multiple definition of `existant'; crea_wordlist.o:(.bss+0x5c): first defined here
/usr/bin/ld: utils.o:(.bss+0x1418): multiple definition of `outfile'; crea_wordlist.o:(.bss+0x1418): first defined here
/usr/bin/ld: utils.o:(.bss+0x6c): multiple definition of `contador'; crea_wordlist.o:(.bss+0x6c): first defined here
/usr/bin/ld: utils.o:(.bss+0x58): multiple definition of `listable'; crea_wordlist.o:(.bss+0x58): first defined here
/usr/bin/ld: utils.o:(.bss+0x68): multiple definition of `descargadas'; crea_wordlist.o:(.bss+0x68): first defined here
/usr/bin/ld: utils.o:(.bss+0x64): multiple definition of `encontradas'; crea_wordlist.o:(.bss+0x64): first defined here
/usr/bin/ld: utils.o:(.bss+0x28): multiple definition of `exts_num'; crea_wordlist.o:(.bss+0x28): first defined here
/usr/bin/ld: utils.o:(.bss+0x38): multiple definition of `exts_base'; crea_wordlist.o:(.bss+0x38): first defined here
/usr/bin/ld: utils.o:(.bss+0x30): multiple definition of `exts_current'; crea_wordlist.o:(.bss+0x30): first defined here
/usr/bin/ld: utils.o:(.bss+0x0): multiple definition of `next_dir'; crea_wordlist.o:(.bss+0x0): first defined here
/usr/bin/ld: utils.o:(.bss+0x4): multiple definition of `resuming'; crea_wordlist.o:(.bss+0x4): first defined here
/usr/bin/ld: utils.o:(.bss+0x8): multiple definition of `dirlist_current'; crea_wordlist.o:(.bss+0x8): first defined here
/usr/bin/ld: utils.o:(.bss+0x18): multiple definition of `dirlist_base'; crea_wordlist.o:(.bss+0x18): first defined here
/usr/bin/ld: utils.o:(.bss+0x20): multiple definition of `muts_base'; crea_wordlist.o:(.bss+0x20): first defined here
/usr/bin/ld: utils.o:(.bss+0x40): multiple definition of `wordlist_final'; crea_wordlist.o:(.bss+0x40): first defined here
/usr/bin/ld: utils.o:(.bss+0x48): multiple definition of `wordlist_current'; crea_wordlist.o:(.bss+0x48): first defined here
/usr/bin/ld: utils.o:(.bss+0x50): multiple definition of `wordlist_base'; crea_wordlist.o:(.bss+0x50): first defined here
/usr/bin/ld: utils.o:(.bss+0x60): multiple definition of `errores'; crea_wordlist.o:(.bss+0x60): first defined here
/usr/bin/ld: utils.o:(.bss+0x80): multiple definition of `nec'; crea_wordlist.o:(.bss+0x80): first defined here
/usr/bin/ld: utils.o:(.bss+0x1410): multiple definition of `curl'; crea_wordlist.o:(.bss+0x1410): first defined here
/usr/bin/ld: options.o:(.bss+0x3a0): multiple definition of `options'; crea_wordlist.o:(.bss+0x3a0): first defined here
/usr/bin/ld: options.o:(.bss+0x1418): multiple definition of `outfile'; crea_wordlist.o:(.bss+0x1418): first defined here
/usr/bin/ld: options.o:(.bss+0x38): multiple definition of `exts_base'; crea_wordlist.o:(.bss+0x38): first defined here
/usr/bin/ld: options.o:(.bss+0x28): multiple definition of `exts_num'; crea_wordlist.o:(.bss+0x28): first defined here
/usr/bin/ld: options.o:(.bss+0x4): multiple definition of `resuming'; crea_wordlist.o:(.bss+0x4): first defined here
/usr/bin/ld: options.o:(.bss+0x0): multiple definition of `next_dir'; crea_wordlist.o:(.bss+0x0): first defined here
/usr/bin/ld: options.o:(.bss+0x8): multiple definition of `dirlist_current'; crea_wordlist.o:(.bss+0x8): first defined here
/usr/bin/ld: options.o:(.bss+0x10): multiple definition of `dirlist_final'; crea_wordlist.o:(.bss+0x10): first defined here
/usr/bin/ld: options.o:(.bss+0x18): multiple definition of `dirlist_base'; crea_wordlist.o:(.bss+0x18): first defined here
/usr/bin/ld: options.o:(.bss+0x20): multiple definition of `muts_base'; crea_wordlist.o:(.bss+0x20): first defined here
/usr/bin/ld: options.o:(.bss+0x30): multiple definition of `exts_current'; crea_wordlist.o:(.bss+0x30): first defined here
/usr/bin/ld: options.o:(.bss+0x40): multiple definition of `wordlist_final'; crea_wordlist.o:(.bss+0x40): first defined here
/usr/bin/ld: options.o:(.bss+0x48): multiple definition of `wordlist_current'; crea_wordlist.o:(.bss+0x48): first defined here
/usr/bin/ld: options.o:(.bss+0x50): multiple definition of `wordlist_base'; crea_wordlist.o:(.bss+0x50): first defined here
/usr/bin/ld: options.o:(.bss+0x58): multiple definition of `listable'; crea_wordlist.o:(.bss+0x58): first defined here
/usr/bin/ld: options.o:(.bss+0x5c): multiple definition of `existant'; crea_wordlist.o:(.bss+0x5c): first defined here
/usr/bin/ld: options.o:(.bss+0x60): multiple definition of `errores'; crea_wordlist.o:(.bss+0x60): first defined here
/usr/bin/ld: options.o:(.bss+0x64): multiple definition of `encontradas'; crea_wordlist.o:(.bss+0x64): first defined here
/usr/bin/ld: options.o:(.bss+0x68): multiple definition of `descargadas'; crea_wordlist.o:(.bss+0x68): first defined here
/usr/bin/ld: options.o:(.bss+0x6c): multiple definition of `contador'; crea_wordlist.o:(.bss+0x6c): first defined here
/usr/bin/ld: options.o:(.bss+0x80): multiple definition of `nec'; crea_wordlist.o:(.bss+0x80): first defined here
/usr/bin/ld: options.o:(.bss+0x1410): multiple definition of `curl'; crea_wordlist.o:(.bss+0x1410): first defined here
/usr/bin/ld: resume.o:(.bss+0x3a0): multiple definition of `options'; crea_wordlist.o:(.bss+0x3a0): first defined here
/usr/bin/ld: resume.o:(.bss+0x50): multiple definition of `wordlist_base'; crea_wordlist.o:(.bss+0x50): first defined here
/usr/bin/ld: resume.o:(.bss+0x8): multiple definition of `dirlist_current'; crea_wordlist.o:(.bss+0x8): first defined here
/usr/bin/ld: resume.o:(.bss+0x4): multiple definition of `resuming'; crea_wordlist.o:(.bss+0x4): first defined here
/usr/bin/ld: resume.o:(.bss+0x18): multiple definition of `dirlist_base'; crea_wordlist.o:(.bss+0x18): first defined here
/usr/bin/ld: resume.o:(.bss+0x10): multiple definition of `dirlist_final'; crea_wordlist.o:(.bss+0x10): first defined here
/usr/bin/ld: resume.o:(.bss+0x40): multiple definition of `wordlist_final'; crea_wordlist.o:(.bss+0x40): first defined here
/usr/bin/ld: resume.o:(.bss+0x48): multiple definition of `wordlist_current'; crea_wordlist.o:(.bss+0x48): first defined here
/usr/bin/ld: resume.o:(.bss+0x1418): multiple definition of `outfile'; crea_wordlist.o:(.bss+0x1418): first defined here
/usr/bin/ld: resume.o:(.bss+0x0): multiple definition of `next_dir'; crea_wordlist.o:(.bss+0x0): first defined here
/usr/bin/ld: resume.o:(.bss+0x20): multiple definition of `muts_base'; crea_wordlist.o:(.bss+0x20): first defined here
/usr/bin/ld: resume.o:(.bss+0x28): multiple definition of `exts_num'; crea_wordlist.o:(.bss+0x28): first defined here
/usr/bin/ld: resume.o:(.bss+0x30): multiple definition of `exts_current'; crea_wordlist.o:(.bss+0x30): first defined here
/usr/bin/ld: resume.o:(.bss+0x38): multiple definition of `exts_base'; crea_wordlist.o:(.bss+0x38): first defined here
/usr/bin/ld: resume.o:(.bss+0x58): multiple definition of `listable'; crea_wordlist.o:(.bss+0x58): first defined here
/usr/bin/ld: resume.o:(.bss+0x5c): multiple definition of `existant'; crea_wordlist.o:(.bss+0x5c): first defined here
/usr/bin/ld: resume.o:(.bss+0x60): multiple definition of `errores'; crea_wordlist.o:(.bss+0x60): first defined here
/usr/bin/ld: resume.o:(.bss+0x64): multiple definition of `encontradas'; crea_wordlist.o:(.bss+0x64): first defined here
/usr/bin/ld: resume.o:(.bss+0x68): multiple definition of `descargadas'; crea_wordlist.o:(.bss+0x68): first defined here
/usr/bin/ld: resume.o:(.bss+0x6c): multiple definition of `contador'; crea_wordlist.o:(.bss+0x6c): first defined here
/usr/bin/ld: resume.o:(.bss+0x80): multiple definition of `nec'; crea_wordlist.o:(.bss+0x80): first defined here
/usr/bin/ld: resume.o:(.bss+0x1410): multiple definition of `curl'; crea_wordlist.o:(.bss+0x1410): first defined here
collect2: error: ld returned 1 exit status

Is there anything I can do to build the package?

Last edited by d_fajardo (2021-02-04 08:35:02)

Offline

#2 2021-02-03 20:58:35

latalante1
Member
Registered: 2018-08-30
Posts: 110

Re: [Solved] multiple definitions error making dirb

Add

-fcommon

to CFLAGS.

Offline

#3 2021-02-03 21:21:51

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: [Solved] multiple definitions error making dirb

Mod note: moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2021-02-03 21:58:39

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [Solved] multiple definitions error making dirb

https://aur.archlinux.org/packages/dirb/#comment-375079
That archive really is broken:

ls -la dirb222
ls: cannot access 'dirb222/src': Permission denied
ls: cannot access 'dirb222/wordlists': Permission denied
ls: cannot access 'dirb222/autoheader': Permission denied
ls: cannot access 'dirb222/autom4te.cache': Permission denied
ls: cannot access 'dirb222/.': Permission denied
ls: cannot access 'dirb222/Makefile.in': Permission denied
ls: cannot access 'dirb222/install-sh': Permission denied
ls: cannot access 'dirb222/depcomp': Permission denied
ls: cannot access 'dirb222/docs': Permission denied
ls: cannot access 'dirb222/..': Permission denied
ls: cannot access 'dirb222/config.h.in': Permission denied
ls: cannot access 'dirb222/README.txt': Permission denied
ls: cannot access 'dirb222/dirb.1': Permission denied
ls: cannot access 'dirb222/aclocal.m4': Permission denied
ls: cannot access 'dirb222/utils': Permission denied
ls: cannot access 'dirb222/configure.ac': Permission denied
ls: cannot access 'dirb222/configure': Permission denied
ls: cannot access 'dirb222/web2dic': Permission denied
ls: cannot access 'dirb222/missing': Permission denied
ls: cannot access 'dirb222/gendict_src': Permission denied
ls: cannot access 'dirb222/mkinstalldirs': Permission denied
ls: cannot access 'dirb222/LICENSE.txt': Permission denied
ls: cannot access 'dirb222/Makefile.am': Permission denied
ls: cannot access 'dirb222/win32': Permission denied
total 0
d????????? ? ? ? ?            ? .
d????????? ? ? ? ?            ? ..
-????????? ? ? ? ?            ? aclocal.m4
-????????? ? ? ? ?            ? autoheader
d????????? ? ? ? ?            ? autom4te.cache
-????????? ? ? ? ?            ? config.h.in
-????????? ? ? ? ?            ? configure
-????????? ? ? ? ?            ? configure.ac
-????????? ? ? ? ?            ? depcomp
-????????? ? ? ? ?            ? dirb.1
d????????? ? ? ? ?            ? docs
d????????? ? ? ? ?            ? gendict_src
-????????? ? ? ? ?            ? install-sh
-????????? ? ? ? ?            ? LICENSE.txt
-????????? ? ? ? ?            ? Makefile.am
-????????? ? ? ? ?            ? Makefile.in
-????????? ? ? ? ?            ? missing
-????????? ? ? ? ?            ? mkinstalldirs
-????????? ? ? ? ?            ? README.txt
d????????? ? ? ? ?            ? src
d????????? ? ? ? ?            ? utils
d????????? ? ? ? ?            ? web2dic
d????????? ? ? ? ?            ? win32
d????????? ? ? ? ?            ? wordlists

Offline

#5 2021-02-03 23:05:04

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

Re: [Solved] multiple definitions error making dirb

Add

-fcommon
to CFLAGS.

I'm not sure how and where.

Offline

#6 2021-02-03 23:39:32

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [Solved] multiple definitions error making dirb

diff --git a/PKGBUILD b/PKGBUILD
index 97b4285..69db2a4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,6 +11,9 @@ license=("GPL2")
 depends=('curl')
 source=("http://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgver}/${_name}.tar.gz")
 sha512sums=('57305160b11be9d48b44ece5848a102ab7a493a7ac30a44c31339fd7ca659866521ba621dc0639dc28bf21c3b5315390b934441590dac7d5b463e68df4b80b81')
+
+export CFLAGS+=' -fcommon'
+
 build () {
        chmod -R 750 "${srcdir}"
        cd "${srcdir}/${_name}"

Offline

#7 2021-02-04 08:34:42

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

Re: [Solved] multiple definitions error making dirb

Thanks loqs. Patch works and can make the package.
Seeing how the program behaves will be another matter all together.

EDIT: I will notify the maintainer as well.

Last edited by d_fajardo (2021-02-04 08:36:10)

Offline

Board footer

Powered by FluxBB