Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 219629

Summary: net-analyzer/xprobe-0.3 fails w/ gcc-4.3.0
Product: Gentoo Linux Reporter: Peter Alfredsen (RETIRED) <loki_val>
Component: [OLD] GCC PortingAssignee: Netmon Herd <netmon>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: xprobe-0.3-gcc43.patch

Description Peter Alfredsen (RETIRED) gentoo-dev 2008-04-28 20:48:47 UTC
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
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-04-28 20:49:23 UTC
Created attachment 151271 [details, diff]
xprobe-0.3-gcc43.patch

Fixes the problem. Snatched from Debian.
Comment 2 Samuli Suominen gentoo-dev 2008-05-03 12:04:40 UTC
+  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.