I don't see a bug here like mine...ther's another emerge ethereal failure, but mine is different: emerge ethereal leads to: x86_64-pc-linux-gnu-gcc -DINET6 "-D_U_=__attribute__((unused))" -Wall -W -march=opteron -mtune=opteron -Os -pipe -I/usr/local/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/includ e/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -o .libs/tethereal pcap-util-unix.o capture_stop_conditions.o capture_ui_utils.o cfi le.o clopts_common.o conditions.o disabled_protos.o packet-range.o pcap-util.o print.o ps.o ringbuffer.o timestats.o util.o version_info.o tap-ansi_astat.o t ap-bootpstat.o tap-dcerpcstat.o tap-gsm_astat.o tap-h225counter.o tap-h225rassrt.o tap-httpstat.o tap-iostat.o tap-iousers.o tap-mgcpstat.o tap-protocolinfo. o tap-protohierstat.o tap-rpcstat.o tap-rpcprogs.o tap-sctpchunkstat.o tap-sipstat.o tap-smbsids.o tap-smbstat.o tap-stats_tree.o tap-wspstat.o capture_opts. o tethereal-tap-register.o tethereal.o .libs/tetherealS.o -Wl,--export-dynamic -Wl,--export-dynamic -pthread -L/usr/local/lib wiretap/.libs/libwiretap.so -L /usr/lib64 epan/.libs/libethereal.so -lcrypto /usr/lib/libpcre.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libglib-2.0.so -lm -lpcap -lz epan/.libs/libethereal.so: undefined reference to `.LC771' epan/.libs/libethereal.so: undefined reference to `.LC773' epan/.libs/libethereal.so: undefined reference to `.LC772' collect2: ld returned 1 exit status make[2]: *** [tethereal] Error 1 make[2]: *** Waiting for unfinished jobs.... rm -f .libs/dftest.nm .libs/dftest.nmS .libs/dftest.nmT creating .libs/dftestS.c (cd .libs && x86_64-pc-linux-gnu-gcc -c -fno-builtin "dftestS.c") rm -f .libs/dftestS.c .libs/dftest.nm .libs/dftest.nmS .libs/dftest.nmT epan/.libs/libethereal.so: undefined reference to `.LC771' epan/.libs/libethereal.so: undefined reference to `.LC773' epan/.libs/libethereal.so: undefined reference to `.LC772' collect2: ld returned 1 exit status make[2]: *** [ethereal] Error 1 x86_64-pc-linux-gnu-gcc -DINET6 "-D_U_=__attribute__((unused))" -Wall -W -march=opteron -mtune=opteron -Os -pipe -I/usr/local/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/includ e/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -o .libs/dftest dftest.o util.o .libs/dftestS.o -Wl,--export-dynamic -Wl,--export-dy namic -pthread -L/usr/local/lib wiretap/.libs/libwiretap.so -L/usr/lib64 epan/.libs/libethereal.so -lcrypto /usr/lib/libpcre.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libglib-2.0.so -lm -lpcap -lz epan/.libs/libethereal.so: undefined reference to `.LC771' epan/.libs/libethereal.so: undefined reference to `.LC773' epan/.libs/libethereal.so: undefined reference to `.LC772' collect2: ld returned 1 exit status make[2]: *** [dftest] Error 1 make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/ethereal-0.10.11/work/ethereal-0.10.11' make: *** [all] Error 2 !!! ERROR: net-analyzer/ethereal-0.10.11 failed. !!! Function src_compile, Line 82, Exitcode 2 And here's my emerge info: # emerge info Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r7 x86_64) ================================================================= System uname: 2.6.11-gentoo-r7 x86_64 AMD Opteron(tm) Processor 246 Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 5 2005, 19:33:15)] distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.4-r1 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-march=opteron -mtune=opteron -Os -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=opteron -mtune=opteron -Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox strict" GENTOO_MIRRORS="http://gentoo.ccccom.com http://mirrors.tds.net/gentoo ftp://gentoo.ccccom.com http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="amd64 3xnowex X acpi alsa apache2 avi berkdb bitmap-fonts bonobo cdr crypt cups curl directfb dvd dvdr dvdread eds encode esd evo f77 fam fbcon flac font-server foomaticdb fortran gb gd gdbm gif gnome gnutls gpm gtk gtk2 gtkhtml guile imagemagick imlib ipv6 ithreads java jce jp2 jpeg jpg junit ldap libgda live lzw lzw-tiff mad maildir motif mozilla moznomail mp3 mpeg mpi mysql ncurses network nls no_wxgtk1 nptl nptlonly ogg oggvorbis opengl oss pam pda perl plotutils png ppds python readline rtc sasl sdl spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xine xml xml2 xmms xpm xprint xrandr xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY Thanks for looking!!
hmm, maybe a missing dependency, worked quite fine here. please try again with -O2 instead of -Os, i.e.: replace: CFLAGS="-march=opteron -mtune=opteron -Os -pipe" with: CFLAGS="-march=opteron -mtune=opteron -O2 -pipe" in your /etc/make.conf
I'll bet that's it....just a sec...
Yup...that was it! Thanks!
-O2 and -O3 are already filtered by ethereal ebuild, I think -Os should be added too. I'll not reopen this bug but would like any comments. Tried with success to add: replace-flags -Os -O in src_compile block. I even tried (again, it worked ok) to be a bit more aggressive and replaced src_compile() { replace-flags -O3 -O replace-flags -O2 -O replace-flags -Os -O with src_compile() { replace-flags -O? -O --- env info--- Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.12-rc3 i686) System uname: 2.6.12-rc3 i686 AMD Athlon(TM) XP 1800+ ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -mmmx -Os -m3dnow -pipe" CHOST="i686-pc-linux-gnu"
*** Bug 95877 has been marked as a duplicate of this bug. ***
will fix this tomorrow
finally fixed