Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 153261

Summary: USE=static results in no shared libs for various packages
Product: Gentoo Linux Reporter: Neil Stone <neil>
Component: New packagesAssignee: AMD64 Project <amd64>
Status: RESOLVED DUPLICATE    
Severity: major CC: aballier
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Neil Stone 2006-10-29 02:46:10 UTC
x86_64-pc-linux-gnu-g++ -Wsign-compare -Wsign-compare -Wall -Os -march=athlon64 -pipe -pipe -o libskins2_plugin.so -shared -fpic -fPIC -u vlc_entry__0_8_5  libskins2_plugin.a -L/usr/lib64 -lpthread /usr/lib64/libSM.so /usr/lib64/libICE.so /usr/lib64/libXext.so /usr/lib64/libX11.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl /usr/lib64/libfreetype.so /usr/lib64/libfribidi.so -ltar -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libtar.a(handle.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/libtar.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[6]: *** [libskins2_plugin.so] Error 1
make[6]: Leaving directory `/var/tmp/portage/media-video/vlc-0.8.5-r5/work/vlc-0.8.5/modules/gui/skins2'
make[5]: *** [all-modules] Error 1
make[5]: Leaving directory `/var/tmp/portage/media-video/vlc-0.8.5-r5/work/vlc-0.8.5/modules/gui/skins2'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/media-video/vlc-0.8.5-r5/work/vlc-0.8.5/modules/gui'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/media-video/vlc-0.8.5-r5/work/vlc-0.8.5/modules/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-video/vlc-0.8.5-r5/work/vlc-0.8.5/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/vlc-0.8.5-r5/work/vlc-0.8.5'
make: *** [all] Error 2

!!! ERROR: media-video/vlc-0.8.5-r5 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  vlc-0.8.5-r5.ebuild, line 229:   Called die

!!! make of VLC failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


=============================

emerge --info

Portage 2.1.2_pre3-r9 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.5-r0, 2.6.18-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.5
Last Sync: Sat, 28 Oct 2006 21:50:01 +0000
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: [Not Present]
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -march=athlon64 -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/lib/fax /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-Os -march=athlon64 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk          ftp://mirrors.blueyonder.co.uk/mirrors/gentoo           http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/          ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LINGUAS="en en_GB"
MAKEOPTS="-j2"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/voip /usr/portage/local/layman/ebuild-exchange /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="amd64 7zip X Xaw3d a52 aac aalib acpi aim alsa apm ares arts audiofile avahi avi bash-completion berkdb bidi bitmap-fonts blender-game bluetooth bzip2 bzlib calendar cdda cddb cdparanoia cdr cli corba cpudetection cracklib crypt css cups curl daap dbus dga divx4linux dlloader dri dts dv dvb dvd dvdr dvdread eds elibc_glibc emboss encode esd ethereal exif expat fam fbcon ffmpeg firefox flac flash font-server foomaticdb fortran ftp gcj gdbm ggi gif gimpprint gnome gnutls gpm gps gstreamer gtk gtk2 hal httpd iconv icq iee1394 ieee1394 imlib input_devices_joystick input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber java javascript joystick jpeg kde kdeenablefinal kdehiddenvisibility kernel_linux libcaca linguas_en linguas_en_GB live lm_sensors logitech-mouse lzw lzw-tiff matroska mcve mgetty mikmod mime mng mod mozilla mozsvg mp3 mpeg mplayer msn musepack musicbrainz mysql nas ncurses network nls nodrm nptl nptlonly nsplugin nvidia odk offensive ogg oggvorbis opengl optimisememory osc oscar oss pam pcre pda pdf pdflib perl png ppds pppd python qt3 qt4 quicktime rar rdesktop readline recode reflection rtsp sasl scanner sdl sensord session shout skins sndfile sound sox speex spell spl ssl stream subtitles svg symlink tcltk tcpd theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU utf8 v4l v4l2 vcd video_cards_nv video_cards_nvidia video_cards_v4l videos vlm vorbis wmf wxwindows xcomposite xine xinerama xorg xosd xpm xprint xscreensaver xv xvid yahoo yv12 zeroconf zlib"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

This is not the only package to fail with this error...
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2006-10-29 04:24:34 UTC
recompile app-arch/tar with USE="-static" and it'll work
Comment 2 Neil Stone 2006-10-29 08:05:27 UTC
tar was compiled without "static" being set, in fact "emerge -pv tar" showed it with -static set...

I will let you know my progress (if any) after a recompile or tar, and re-trying vlc.
Comment 3 Neil Stone 2006-10-29 08:12:42 UTC
Same result i'm afraid...
Comment 4 Olivier Crete (RETIRED) gentoo-dev 2007-01-15 00:43:12 UTC
app-arch/tar does not have a libary. libtar seems to come from the package dev-libs/libtar which has no amd64 keyword... or does yours come from some other package?
Comment 5 Alexis Ballier gentoo-dev 2007-02-04 11:21:53 UTC
That's probably a dupe of  bug #154194
Comment 6 Simon Stelling (RETIRED) gentoo-dev 2007-02-04 12:07:27 UTC
seems so indeed

*** This bug has been marked as a duplicate of bug 154194 ***