... with the following error: /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: libpm.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC libpm.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [libnetpbm.so.10.46] Error 1 Reproducible: Always # emerge --info Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.22-vs2.2.0.7-gentoo x86_64) ================================================================= System uname: Linux-2.6.22-vs2.2.0.7-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5600+-with-glibc2.2.5 Timestamp of tree: Wed, 29 Jul 2009 00:00:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="-k" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo" LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en_GB de_DE de zh_CN ru" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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/portage/local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 apache2 bash-completion berkdb bzip2 cjk cli cracklib crypt curl curlwrappers dri exif gdbm gnutls iconv icq idn imagemagick imap innodb isdnlog jabber javascript jpeg mhash mime mmx mpeg msn mudflap multilib ncurses nls nptl nptlonly nsplugin offensive oscar pam pcre perl plotutils png pppd python readline reflection ruby sasl session slang spl sse sse2 ssl sysfs threads tiff truetype unicode userlocales vhosts xml xorg yahoo 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB de_DE de zh_CN ru" USERLAND="GNU" VIDEO_CARDS="dummy" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
post the full build log as an attachment ... no one else has reported problems on x86_64 that ive seen (and i know it works for me) also post `emerge -pv netpbm`
Created attachment 201305 [details] build.log Ok: # emerge -pv netpbm These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] media-libs/netpbm-10.46.00 [10.44.00-r1] USE="jpeg png tiff xml zlib -X% -jbig -jpeg2k -rle (-svga)" 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB
(In reply to comment #1) > no one else has reported problems on x86_64 that ive seen I'll chime in here then (to let you know that there are a plurality of users unable to build netpbm: I am experiencing this same problem. /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: libpm.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC libpm.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [libnetpbm.so.10.46] Error 1 In my particular case, the build-problem is inside a vserver-guest, but I don't think that's relevant. The application happens to be a web-server, especially hosting Gallery2 (for my photos), mediawiki, and usual cast of web-culprits. pegasus / # emerge --info Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.22-vs2.2.0.7-gentoo x86_64) ================================================================= System uname: Linux-2.6.22-vs2.2.0.7-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.0 Timestamp of tree: Wed, 19 Aug 2009 06:15:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-lang/python: 2.6.2-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.iat.sfu.ca/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="en en_GB" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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" SYNC="rsync://mirror.iat.sfu.ca/gentoo-portage" USE="acl acpi amd64 apache2 bash-completion bzip2 cgi crypt emacs expat fastcgi ffmpeg geoip gif gpm imagemagick imlib jpeg jpeg2k ldap libwww maildir mpm-prefork multilib mysql ncurses netpbm nfs nls nptl nptlonly pam pcre perl php pic png python readline sasl session srvdir ssl tcpd threads truetype ungif unicode urandom vhosts webdav xml xml2 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY pegasus / # emerge -pv netpbm These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] media-libs/netpbm-10.46.00 [10.44.00-r1] USE="jbig jpeg jpeg2k png rle tiff xml zlib -X% (-svga)" 0 kB
Created attachment 201722 [details] Failed buld.log for netpbm-10.46.00
This line, cc -c -I/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib -I. -Iimportinc -DNDEBUG -march=nocona -O2 -pipe -o libpm.o libpm.c Should look like this, x86_64-pc-linux-gnu-gcc -Wall -c -I/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib -I. -Iimportinc -DNDEBUG -march=nocona -O2 -pipe -fPIC -o libpm.o libpm.c Note the missing -fPIC when building objects, also where did the full name of the compiler go?
(In reply to comment #3) > In my particular case, the build-problem is inside a vserver-guest, but I don't > think that's relevant. The application happens to be a web-server, especially > hosting Gallery2 (for my photos), mediawiki, and usual cast of web-culprits. Interesting. The same applies in my case - it's a Linux-VServer guest, netpbm is needed for Gallery2.
buildtools/configure.pl has this line: if ($compiler eq 'gcc') { push(@config_mk, "CFLAGS_SHLIB += -fPIC\n"); } it expects to find 'gcc' as compiler to pass the -fPIC to build system thus, the compiler name being wrong is directly linked to the missing -fPIC are you guys setting CC in environment or something?
(In reply to comment #7) > are you guys setting CC in environment or something? Not to my knowledge.
I am also having this problem. I already had media-libs/netpbm-10.46.00 installed. I didn't see it till an update to media-libs/netpbm-10.46.00-r1, so I masked the -r1 ebuild, ran 'emerge @preserved-rebuild' and 10.46.00 got pulled in. It failed with the same error as -r1 even though I had successfully installed it previously. # emerge --info Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64) ================================================================= System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.1.5 Timestamp of tree: Sun, 23 Aug 2009 06:00:01 +0000 app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.6.2-r1 dev-util/cmake: 2.6.4-r2 sys-apps/baselayout: 2.1.5 sys-apps/openrc: 0.5.0-r2 sys-apps/sandbox: 2.0 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.29 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -msse4 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=native -msse4 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://usal64 ftp://alef http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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/brz" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d a52 aac acl acpi aim alac alsa amarok amd64 apache2 avahi bcmath berkdb binary-drivers branding bzip2 cairo cdda cddax cddb cdparanoia cdr clamav cleartype cli cracklib crypt cups curl curlwrappers dbus dga directfb djvu dri dts dv dvd dvdr dvdread dxr3 embedded encode exif fbcon ffmpeg firefox flac foomaticdb fortran ftp funtools gdbm gif gimp glut gnutls gpg gphoto2 gpm grub gtk hal hddtemp iconv id3 id3tag ieee1394 imagemagick imap imlib ipod ipv6 isdnlog java java6 javascript jpeg jpeg2k kde kdehiddenvisibility kontact lame lcms libnotify lm_sensors mad mdnsresponder-compat mime mmap mmx mng mp3 mp4 mpeg mpeg2 mplayer mudflap multilib musicbrainz mysql mysqli ncurses nfs nfsv3 nfsv4 nls nocd normalize nptl nptlonly nsplugin objc ogg openal openbabel openexr opengl openmp oscar pam pcre pdf perl png posix pppd python qt3 qt3support qt4 quicktime raw rdesktop readline reflection scanner sdl session smp sockets spamassassin spell spl sql sqlite sqlite3 sse sse2 sse3 sse4 ssl ssse3 startup-notification svg sysfs sysvipc taglib tcl tcpd threads tiff tk truetype unicode usb vnc vorbis wavpack webkit x264 xcomposite xft xine xml xmlrpc xorg xpm xrandr xsl xv xvid xvmc yahoo zeroconf 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 mmap_emul 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd fglrx" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS I don't have CC set in my environment. I see this on both my x86_64 machines. media-libs/netpbm-10.46.00-r1 builds successfully on my x86 machine.
Another one with problems with both: media-libs/netpbm-10.46.00 and media-libs/netpbm-10.46.00-r1 rm -f importinc/wordaccess_generic.h ln -s /var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util/wordaccess_generic.h importinc/wordaccess_generic.h cc -c -I/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util -I. -Iimportinc -DNDEBUG -march=core2 -O2 -pipe \ -o shhopt.o shhopt.c make[2]: Leaving directory `/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util' make -C util/ -f /var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util/Makefile \ SRCDIR=/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00 BUILDDIR=/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00 nstring.o make[2]: Entering directory `/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util' cc -c -I/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util -I. -Iimportinc -DNDEBUG -march=core2 -O2 -pipe \ -o nstring.o nstring.c make[2]: Leaving directory `/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util' make -C util/ -f /var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util/Makefile \ SRCDIR=/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00 BUILDDIR=/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00 vasprintf.o make[2]: Entering directory `/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util' cc -c -I/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util -I. -Iimportinc -DNDEBUG -march=core2 -O2 -pipe \ -o vasprintf.o vasprintf.c vasprintf.c: In function 'vasprintfN': vasprintf.c:24: warning: ignoring return value of 'vasprintf', declared with attribute warn_unused_result make[2]: Leaving directory `/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util' make -C util/ -f /var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util/Makefile \ SRCDIR=/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00 BUILDDIR=/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00 filename.o make[2]: Entering directory `/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util' cc -c -I/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util -I. -Iimportinc -DNDEBUG -march=core2 -O2 -pipe \ -o filename.o filename.c make[2]: Leaving directory `/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util' make -C util/ -f /var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util/Makefile \ SRCDIR=/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00 BUILDDIR=/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00 nsleep.o make[2]: Entering directory `/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util' cc -c -I/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util -I. -Iimportinc -DNDEBUG -march=core2 -O2 -pipe \ -o nsleep.o nsleep.c make[2]: Leaving directory `/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib/util' cc -shared -Wl,-soname,libnetpbm.so.10 -o libnetpbm.so.10.46 libpm.o pmfileio.o fileio.o bitio.o colorname.o libpbm1.o libpbm2.o libpbm3.o libpbmfont.o libpgm1.o libpgm2.o libppm1.o libppm2.o libppmcmap.o libppmcolor.o libppmfuzzy.o libppmd.o ppmdfont.o standardppmdfont.o path.o libppmfloyd.o libpnm1.o libpnm2.o libpnm3.o libpam.o libpamread.o libpamwrite.o libpamn.o libpammap.o libpamcolor.o libsystem.o util/shhopt.o util/nstring.o util/vasprintf.o util/filename.o util/nsleep.o \ -lc -lm /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: libpm.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC libpm.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [libnetpbm.so.10.46] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-libs/netpbm-10.46.00/work/netpbm-10.46.00/lib' make: *** [lib/all] Error 2 * * ERROR: media-libs/netpbm-10.46.00 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2314: Called die * The specific snippet of code: * emake -j1 || die * The die message: * (no error message) * * 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/media-libs/netpbm-10.46.00/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/netpbm-10.46.00/temp/environment'.
the buildtools/configure.pl is irrelevant. -fPIC is forced in the ebuild. i'm guessing your /dev/stdin is screwed up. verify it is sane.
actually, no need. your log shows your system is screwed up. go fix it. cat: /dev/stdin: No such file or directory
http://sources.gentoo.org/media-libs/netpbm/netpbm-10.46.00-r1.ebuild?r1=1.1&r2=1.2
(In reply to comment #12) > actually, no need. your log shows your system is screwed up. go fix it. > > cat: /dev/stdin: No such file or directory My system appears fine. Remember, it is a *vserver* guest, and there exists no /dev/stdin (using latest x86_64 stable vserver-sources-2.2.0.7 as of August 27, 2009). Now that my system is fixed, please re-open </sarcasm>. Thank-you.
if you lack /dev/stdin, *your* system is broken and thus it is your problem
hollow, this is a vserver issue -> please take a look
if you run an x86 guest on an amd64 host, you need to set /etc/vservers/<name>/uts/machine to i686, since some broken configure scripts rely on uname output to figure out which arch they are running instead of using gcc to figure it out. this is probably the case here.
configure output has nothing to do with this bug. netpbm doesnt even have a configure script. ive already pointed out the problem: /dev/stdin is missing. what/why/how doesnt matter to any ebuild -- they arent broken.
(In reply to comment #18) > configure output has nothing to do with this bug. netpbm doesnt even have a > configure script. > > ive already pointed out the problem: /dev/stdin is missing. what/why/how > doesnt matter to any ebuild -- they arent broken. the initial problem reported (libpm.o: relocation R_X86_64_32 against `a local symbol' can not be used when) is most likely caused by confusion about the arch, but it may be caused by something entirely different, it was just a quick guess. i have tested it on an x86 guest/amd64 host combo which has the correct uts/machine setting and it works fine, even without /dev/stdin (vservers don't have them by default)
ignore the original PIC issue. it has nothing to do with configure nor with detection of host machine. there's no way you could emerge netpbm-10.46.00+ without /dev/stdin and have things work fine. if vservers dont have /dev/std{in,out,err} by default, that needs to be fixed. packages (rightly) assume these things exist.
as i said, it works for me without /dev/stdin, so i'm done here, kthxbye
let the vserver guys sort it out then
I get this error on a normal workstation/desktop install. I have the missing /dev/stdin file, everything else on my pc seems to work fine. I am running sys-fs/udev-135-r8.
Actually, this turned out to be a baselayout issue for me. I unmasked =sys-apps/baselayout-2.1.6 and now I can build netpbm. Thanks.
*** Bug 283139 has been marked as a duplicate of this bug. ***
(In reply to comment #25) > *** Bug 283139 has been marked as a duplicate of this bug. *** > What package is needed to rebuild to get /dev/stdin? Or how do I make /dev/stdin? I have tried searching with Google, but nothing I can find says what package to rebuild, or how to create /dev/stdin.
Also, I have the same issue, but I am not running a vserver. I installed a fresh gentoo system on my laptop and I am getting this same error. I have no virtualization software loaded (vserver, openvz, virtualbox, etc), so I don't think this is specific to vserver configurations.
(In reply to comment #26) > (In reply to comment #25) > > *** Bug 283139 has been marked as a duplicate of this bug. *** > > > > What package is needed to rebuild to get /dev/stdin? Or how do I make > /dev/stdin? I have tried searching with Google, but nothing I can find says > what package to rebuild, or how to create /dev/stdin. > I too just unmasked baselayout-2.1.6, and I now have the /dev/std* links. It would seem baselayout-2.1.5 does not generate the links for some reason. This appears to have fixed all the problems.
there is no baselayout-2.1.6 ... for exisiting vserver this can be fixed with the following commands: ln -s /proc/self/fd /dev/fd ln -s /dev/fd/0 /dev/stdin ln -s /dev/fd/1 /dev/stdout ln -s /dev/fd/2 /dev/stdout
actually there is baselayout-2.1.6 in funtoo, but this is not the funtoo bug tracker ...
I'm not sure if this is the same issue, but I do have /dev/stdin and I can't emerge netpbm lrwxrwxrwx 1 root root 4 Sep 1 04:57 /dev/stdin -> fd/0 /var/tmp/portage/media-libs/netpbm-10.46.00/temp/environment: line 2311: syntax error near unexpected token `||' /var/tmp/portage/media-libs/netpbm-10.46.00/temp/environment: line 2311: ` || die' * * ERROR: media-libs/netpbm-10.46.00 failed. * Call stack: * ebuild.sh, line 1776: Called die * The specific snippet of code: * preprocess_ebuild_env || \ * die "error processing environment" * The die message: * error processing environment * * 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/media-libs/netpbm-10.46.00/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/netpbm-10.46.00/temp/environment'. *
(In reply to comment #29) > there is no baselayout-2.1.6 ... > > for exisiting vserver this can be fixed with the following commands: > > ln -s /proc/self/fd /dev/fd > ln -s /dev/fd/0 /dev/stdin > ln -s /dev/fd/1 /dev/stdout > ln -s /dev/fd/2 /dev/stdout > This fixed my problem, but the last one should be /dev/stderr, not /dev/stdout.
i can confirm the problem with media-libs/netpbm-10.46.00-r1 on ~amd64 inside a vserver. It fails with : * Applying netpbm-10.46.00-min_DCT_v_scaled_size.patch ... [ ok ] * Applying netpbm-10.31-build.patch ... [ ok ] cat: /dev/stdin: No such file or directory * * ERROR: media-libs/netpbm-10.46.00-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_unpack * environment, line 2355: Called die * The specific snippet of code:
this has been fixed in util-vserver-0.30.216_pre2849, so all newly built vservers will have it fixed. for existing vservers this can be fixed with the following commands (fixed version from above): ln -sf /proc/self/fd /dev/fd ln -sf fd/0 /dev/stdin ln -sf fd/1 /dev/stdout ln -sf fd/2 /dev/stderr
The title is actually misleading. Only one package in the tree depends on /dev/stdin, and that's netpbm /dev/stdout, /dev/stderr and /dev/fd/ aren't used by anything else. It could have been more easily fixed by replacing /dev/stdin with "-" in netpbm's ebuild, which cat understands as the standard input.
*** Bug 320801 has been marked as a duplicate of this bug. ***
*** Bug 320805 has been marked as a duplicate of this bug. ***