When I try to emerge irssi (both ~x86 and x86) I get: ../core/libcore.a(network.o)(.text+0x2f3): In function `net_connect_ip': : undefined reference to `sin_set_ip' ../core/libcore.a(network.o)(.text+0x358): In function `net_connect_ip': : undefined reference to `sin_set_ip' ../core/libcore.a(network.o)(.text+0x36c): In function `net_connect_ip': : undefined reference to `sin_set_port' ../core/libcore.a(network.o)(.text+0x5b3): In function `net_listen': : undefined reference to `sin_set_ip' ../core/libcore.a(network.o)(.text+0x5c9): In function `net_listen': : undefined reference to `sin_set_port' ../core/libcore.a(network.o)(.text+0x6d4): In function `net_listen': : undefined reference to `sin_get_port' ../core/libcore.a(network.o)(.text+0x7c8): In function `net_accept': : undefined reference to `sin_get_port' ../core/libcore.a(network.o)(.text+0xaa3): In function `net_getsockname': : undefined reference to `sin_get_port' ../core/libcore.a(network-openssl.o)(.text+0x45b): In function `irssi_ssl_cert_step': : undefined reference to `ssl_errno' ../core/libcore.a(network-openssl.o)(.text+0x50e): In function `irssi_ssl_read': : undefined reference to `ssl_errno' ../core/libcore.a(network-openssl.o)(.text+0x5d5): In function `irssi_ssl_write': : undefined reference to `ssl_errno' collect2: ld returned 1 exit status make[3]: *** [irssi] Error 1 make[3]: Leaving directory `/var/tmp/portage/irssi-0.8.10_rc5-r1/work/irssi-0.8.10-rc5/src/fe-text' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/irssi-0.8.10_rc5-r1/work/irssi-0.8.10-rc5/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/irssi-0.8.10_rc5-r1/work/irssi-0.8.10-rc5' make: *** [all-recursive-am] Error 2 !!! ERROR: net-irc/irssi-0.8.10_rc5-r1 failed. !!! Function src_compile, Line 63, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge irssi 2. 3. Actual Results: emerge failed Expected Results: installed irssi Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.4.3-20050110, glibc-2.3.4. 20050125-r1, 2.6.10-gentoo-r1 i686) ================================================================= System uname: 2.6.10-gentoo-r1 i686 Celeron (Coppermine) Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 05:26:04)] ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.9.5, 1.5, 1.7.9-r1, 1.8.5-r3, 1.4_p6, 1.6.3 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/ X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="http://mirror.gentoo.no/ ftp://trumpetti.atm.tut.fi/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ ftp://mirror.gentoo.ru/pub/mirror/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/ gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X adns aim apache2 apm avi bash-completion berkdb bitmap-fonts crypt curl emacs emboss encode firebird flac font-server foomaticdb gd gdbm gif gnutls gpm gtk2 imagemagick imap imlib innodb jpeg ldap libg++ libwww mad maildir mailwrapper mikmod motif mp3 mpeg msn mysql ncurses nls nptl nptlonly oggvorbis oscar pam pdflib perl php png postgres postgresql python quicktime readline ruby samba sasl slang spell sqlite ssl svga tcpd threads tiff truetype truetype-fonts type1-fonts unicode userlocales xml xml2 yahoo zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Could you post a bit more of the log? Some lines that contain the invoked compiler and such?
Unable to reproduce and waiting on some more information from submitter.
With some information from Sven this is fixed by adding some kind of optimization to CFLAGS. The ebuild need to ensure that optimization is used if the user has not set it in make.conf.
I already added some code to the ebuilds to ensure that at least -O is in CFLAGS.
Does that mean that this bug should be closed fixed?
.
resolving with correct resolution