Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210530 - net-www/nspluginwrapper- won't compile: undefined reference to `dl_iterate_phdr'
Summary: net-www/nspluginwrapper- won't compile: undefined reference to `dl_it...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2008-02-17 22:18 UTC by Honza
Modified: 2008-02-18 17:33 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Honza 2008-02-17 22:18:05 UTC
net-www/nspluginwrapper- won't compile: is reporting undefined reference to `dl_iterate_phdr', althrough this symbol is present both in main system libc and in /lib32/ (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-
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/ \
-Wl,--version-script,/var/tmp/portage/net-www/nspluginwrapper- \
-Wl,-soname,`grep "libgtk-x11-2.0 " /var/tmp/portage/net-www/nspluginwrapper- | cut -f2 -d' '`
ln -sf lsb-build-i386/
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- -lsupc++
gcc -std=c99 -m32 -shared -o libxpcom-libxpcom.o libxpcom-debug.o  -Wl,--soname,
/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 (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-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.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
CFLAGS="-O2 -pipe -mtune=athlon64"
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"
FEATURES="autoconfig digest distlocks metadata-transfer sandbox sfperms unmerge-orphans userfetch"
LINGUAS="en cs en_GB"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
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"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-17 22:49:21 UTC
(In reply to comment #0)
> Portage (default-linux/amd64/2006.0, gcc-3.4.3, glibc-2.3.6-r4,
> sys-devel/binutils:, 2.16.1-r3
> sys-devel/gcc-config: 1.3.13-r3

Upgrade your toolchain to something supported before reporting compile issues please.
Comment 2 Honza 2008-02-17 23:10:28 UTC
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 ?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-02-17 23:15:38 UTC
(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. 
Comment 4 Honza 2008-02-18 10:08:30 UTC
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 ?
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-02-18 10:13:42 UTC
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.
Comment 6 Honza 2008-02-18 17:33:07 UTC
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 ...