make[1]: Entering directory `/var/tmp/portage/net-analyzer/xprobe-0.3/work/xprobe2-0.3/libs-external/USI++/src' i686-pc-linux-gnu-g++ -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -fPIC -I/usr/include/pcap -I. -Wall -c -O2 icmp.cc i686-pc-linux-gnu-g++ -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -fPIC -I/usr/include/pcap -I. -Wall -c -O2 datalink.cc i686-pc-linux-gnu-g++ -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -fPIC -I/usr/include/pcap -I. -Wall -c -O2 ip.cc icmp.cc: In member function ‘virtual int usipp::ICMP::init_device(char*, int, size_t)’: icmp.cc:296: warning: deprecated conversion from string constant to ‘char*’ i686-pc-linux-gnu-g++ -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -fPIC -I/usr/include/pcap -I. -Wall -c -O2 misc.cc misc.cc: In function ‘void usipp::die(const char*, usipp::errorFuncs, int)’: misc.cc:92: error: ‘exit’ was not declared in this scope make[1]: *** [misc.o] Error 1 make[1]: *** Waiting for unfinished jobs.... ip.cc: In constructor ‘usipp::IP::IP(const char*, u_int8_t)’: ip.cc:34: error: ‘srand’ was not declared in this scope ip.cc:45: error: ‘rand’ was not declared in this scope ip.cc: In constructor ‘usipp::IP::IP(u_int32_t, u_int8_t)’: ip.cc:82: error: ‘srand’ was not declared in this scope ip.cc:87: error: ‘rand’ was not declared in this scope ip.cc: In member function ‘int usipp::IP::set_src(const char*)’: ip.cc:410: error: ‘exit’ was not declared in this scope ip.cc: In member function ‘int usipp::IP::set_dst(const char*)’: ip.cc:432: error: ‘exit’ was not declared in this scope ip.cc: In member function ‘virtual int usipp::IP::init_device(char*, int, size_t)’: ip.cc:558: warning: deprecated conversion from string constant to ‘char*’ make[1]: *** [ip.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-analyzer/xprobe-0.3/work/xprobe2-0.3/libs-external/USI++/src' make: *** [all] Error 2
Created attachment 151271 [details, diff] xprobe-0.3-gcc43.patch Fixes the problem. Snatched from Debian.
+ 03 May 2008; Samuli Suominen <drac@gentoo.org> + +files/xprobe-0.3-gcc43.patch, xprobe-0.3.ebuild: + Fix building with GCC 4.3 wrt #219629. Thanks to Peter Alfredsen. Also + prevent pre-stripping with simple sed.