On Wed, 15 Jul 2015 14:53:42 -0600, Nicholas Luedtke wrote:

> Here's a fix for the GCC 5 build issue. Removed "extern" from
> inline functions in hunt.h. The package builds and links with GCC 5 with
> this change.

I can confirm that the patch fixes the build failure with GCC 5.
But now it fails in unstable (i.e. with gcc 4.9):

cc  -o hunt hunt.o main.o c/list.o c/hash.o c/array.o util.o net.o rst.o menu.o 
hijack.o rstd.o sniff.o macdisc.o tap.o arphijack.o tty.o synchijack.o 
arpspoof.o hostup.o addpolicy.o options.o resolv.o timer.o pktrelay.o -lpthread
main.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
main.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
util.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
util.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
net.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
net.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
rst.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
rst.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
menu.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
menu.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
hijack.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
hijack.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
rstd.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
rstd.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
sniff.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
sniff.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
macdisc.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
macdisc.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
tap.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
tap.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
arphijack.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
arphijack.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
tty.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
tty.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
synchijack.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
synchijack.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
arpspoof.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
arpspoof.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
hostup.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
hostup.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
addpolicy.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
addpolicy.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
options.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
options.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
resolv.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
resolv.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
timer.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
timer.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
pktrelay.o: In function `generate_key':
/tmp/buildd/hunt-1.5/hunt.h:297: multiple definition of `generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:297: first defined here
pktrelay.o: In function `uci_generate_key':
/tmp/buildd/hunt-1.5/hunt.h:309: multiple definition of `uci_generate_key'
hunt.o:/tmp/buildd/hunt-1.5/hunt.h:309: first defined here
collect2: error: ld returned 1 exit status
Makefile:14: recipe for target 'hunt' failed
make[1]: *** [hunt] Error 1



Cheers,
gregor


-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer -  https://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Red Hot Chili Peppers: Universally Speaking

Attachment: signature.asc
Description: Digital Signature

Reply via email to