net-www/nspluginwrapper-0.9.91.4 won't compile: is reporting undefined reference to `dl_iterate_phdr', althrough this symbol is present both in main system libc and in /lib32/libc.so.6 (from emul-linux-x86-baselibs-20071230) Reproducible: Always Steps to Reproduce: 1. emerge nspluginwrapper Actual Results: Install prefix /usr nspluginwrapper root dir /usr/lib64/nspluginwrapper Bi-arch build yes Build viewer yes Build for Linux only yes 32-bit library dir name lib32 64-bit library dir name lib64 Source path /var/tmp/portage/net-www/nspluginwrapper-0.9.91.4/work/nspluginwrapper-0.9.91.4 C compiler gcc -std=c99 C++ compiler g++ host OS linux host CPU x86_64 host big endian no target OS linux target CPU i386 ..... gcc -std=c99 -m32 -nostdlib -shared lsb-build-i386/libgtk-x11-2.0.o -o lsb-build-i386/libgtk-x11-2.0.so \ -Wl,--version-script,/var/tmp/portage/net-www/nspluginwrapper-0.9.91.4/work/nspluginwrapper-0.9.91.4/lsb-build/stub_libs/libgtk-x11-2.0.Version \ -Wl,-soname,`grep "libgtk-x11-2.0 " /var/tmp/portage/net-www/nspluginwrapper-0.9.91.4/work/nspluginwrapper-0.9.91.4/lsb-build/stub_libs/LibNameMap.txt | cut -f2 -d' '` ln -sf libgcc_s.so lsb-build-i386/libgcc_s_32.so gcc -std=c99 -m32 -o npviewer.bin npviewer-npw-viewer.o npviewer-npw-rpc.o npviewer-rpc.o npviewer-debug.o npviewer-utils.o npviewer-npruntime.o npviewer-cxxabi-compat.o -m32 -Llsb-build-i386 -lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -ldl -lglib-2.0 -lX11 -lXt -ldl -lpthread -Wl,--export-dynamic -Wl,--version-script,/var/tmp/portage/net-www/nspluginwrapper-0.9.91.4/work/nspluginwrapper-0.9.91.4/src/npw-viewer.map -lsupc++ gcc -std=c99 -m32 -shared -o libxpcom.so libxpcom-libxpcom.o libxpcom-debug.o -Wl,--soname,libxpcom.so /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/32/libgcc_eh.a(unwind-dw2-fde-glibc.o)(.text+0x1806): In function `_Unwind_Find_FDE': /var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/unwind-dw2-fde-glibc.c:281: undefined reference to `dl_iterate_phdr' collect2: ld returned 1 exit status make: *** [npviewer.bin] Error 1 make: *** Waiting for unfinished jobs.... Expected Results: It should compile, of course Portage 2.1.4.4 (default-linux/amd64/2006.0, gcc-3.4.3, glibc-2.3.6-r4, 2.6.18-gentoo-r1-64 x86_64) ================================================================= System uname: 2.6.18-gentoo-r1-64 x86_64 AMD Athlon(tm) 64 Processor 3000+ Timestamp of tree: Sun, 17 Feb 2008 20:46:01 +0000 app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 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.15.92.0.2-r10, 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -mtune=athlon64" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -mtune=athlon64" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig digest distlocks metadata-transfer sandbox sfperms unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="en cs en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnowex X Xaw3d aalib acpi alsa amd64 apache2 apm audiofile avi berkdb bitmap-fonts browserplugin bzip2 bzlib caps cdr cli cracklib crypt cups curl dbase dbm dbx dga directfb divx4linux doc dri dvd dvdr eds emboss encode esd ethereal exif fbcon flac flash foomaticdb fortran gd gdbm ggi gif gnome gpm gstreamer gtk gtk2 iconv imagemagick imlib innodb ipv6 isdnlog java jpeg lcms lesstif libcaca libwww lirc lzw lzw-tiff mad mailwrapper mbox mcal memlimit mhash midi mikmod mime ming mmap mmx2 mng motif mozilla mp3 mpeg mudflap multislot mysql ncurses nls nptl offensive oggvorbis openal opengl openmp oss pam pcntl pcre pdflib perl php plotutils png posix pppd python qt qt3 qt4 quicktime readline reflection rtc samba sdl session shared sharedmem slang sndfile snmp sockets spell spl sqlite ssl sysvipc tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vhosts videos wmf xml xorg xosd xpm xsl xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs en_GB" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa r128 fbdev" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #0) > Portage 2.1.4.4 (default-linux/amd64/2006.0, gcc-3.4.3, glibc-2.3.6-r4, > sys-devel/binutils: 2.15.92.0.2-r10, 2.16.1-r3 > sys-devel/gcc-config: 1.3.13-r3 Upgrade your toolchain to something supported before reporting compile issues please. http://www.gentoo.org/doc/en/gcc-upgrading.xml
It will be much better if you actually said WHICH component should I upgrade. Unless you mean all of them. Also, I though gcc-3.4 is still supported - where can I get list of supported toolchain components ?
(In reply to comment #2) > It will be much better if you actually said WHICH component should I upgrade. > Unless you mean all of them. Yes, I definitely mean *all* of them.
OK. Switching to gcc-3.4.6 helped. Switching. I already had it installed, only not selected (because I compiled kernel with it, so modules must be compiled with it). The compiling of glibc I did before was totally unnecessary. I must learn to pay attention to that. Why is emerge --info listing all binutils versions and not all gcc versions ?
You know, you really should use multislot globally... gcc is slotted on major versions, unless you are a toolchain developer having multiple slots of same major versions doesn't make sense.
What do you mean, multislot globally ? I do use multislot. It's even in that emerge --info output. gcc-3.4.3-r1 is slotted 3.4 and gcc-3.4.6-r2 is slotted x86_64-pc-linux-gnu-3.4.6 ... thats incorrect ? Or you mean I shouldn't be using multislot ? Also, you mean I can compile kernel modules by different compiler if it's same major version ? I admit I don't remember if I actually tested that ... Sorry for these offtopic questions ...