I get an error when emerging 'dev-libs/libevent-1.3a'. Reproducible: Always Steps to Reproduce: Emerge 'dev-libs/libevent-1.3a'. Actual Results: make[2]: Entering directory `/var/tmp/portage/dev-libs/libevent-1.3a/work/libevent-1.3a/sample' /usr/bin/gcc -march=opteron -mfpmath=sse -DHAVE_CONFIG_H -I. -I. -I.. -I../compat -c event-test.c /bin/sh ../libtool --tag=CC --mode=link /usr/bin/gcc -march=opteron -mfpmath=sse -I../compat -Wl,--enable-new-dtags -o event-test event-test.o ../libevent.la mkdir .libs /usr/bin/gcc -march=opteron -mfpmath=sse -I../compat -Wl,--enable-new-dtags -o .libs/event-test event-test.o ../.libs/libevent.so ../.libs/libevent.so: undefined reference to `debug_ntoa' collect2: ld returned 1 exit status make[2]: *** [event-test] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-libs/libevent-1.3a/work/libevent-1.3a/sample' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-libs/libevent-1.3a/work/libevent-1.3a' make: *** [all] Error 2 !!! ERROR: dev-libs/libevent-1.3a failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 1520: Called src_compile ebuild.sh, line 645: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/dev-libs/libevent-1.3a/temp/build.log'. Expected Results: Should emerge cleanly. ahr040s libevent-1.3a # emerge --info Portage 2.1.2-r9 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.19.2 i686) ================================================================= System uname: 2.6.19.2 i686 AMD Opteron (tm) Processor 850 Gentoo Base System version 1.12.6 Timestamp of tree: Tue, 06 Mar 2007 15:20:01 +0000 dev-java/java-config: 1.3.7, 2.0.31 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-pipe -O3 -fomit-frame-pointer -DNDEBUG" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-pipe -O3 -fomit-frame-pointer -DNDEBUG" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ " LANG="de_DE.utf8" LDFLAGS="-Wl,--enable-new-dtags" LINGUAS="de es fr uk" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="apache2 berkdb bitmap-fonts cli cracklib crypt cups cvs fortran gdbm gif gnome gtk gtk2 iconv ipv6 isdnlog jpeg jpeg2k kde kdehiddenvisibility kerberos ldap lesstif libg++ logrotate midi ncurses nls nptl nptlonly pam pcre perl png ppds pppd python readline reflection sasl session spl ssl tcpd threads tiff truetype-fonts type1-fonts unicode x86 xinetd xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de es fr uk" USERLAND="GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
this can be fixed by removing -DNDEBUG from your C*FLAGS
this is a problem with all versions of libevent, including the newest one. maybe we should filter this flag out in ebuild?
(In reply to comment #2) > this is a problem with all versions of libevent, including the newest one. > maybe we should filter this flag out in ebuild? Why? People shouldn't stick this info their flags at all.
(In reply to comment #3) > (In reply to comment #2) > > this is a problem with all versions of libevent, including the newest one. > > maybe we should filter this flag out in ebuild? > > Why? People shouldn't stick this info their flags at all. > Why? That's certainly a valid and reasonable option.