Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219629 - net-analyzer/xprobe-0.3 fails w/ gcc-4.3.0
Summary: net-analyzer/xprobe-0.3 fails w/ gcc-4.3.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-04-28 20:48 UTC by Peter Alfredsen (RETIRED)
Modified: 2008-05-03 12:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xprobe-0.3-gcc43.patch (xprobe-0.3-gcc43.patch,725 bytes, patch)
2008-04-28 20:49 UTC, Peter Alfredsen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 (RETIRED) 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.