Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75782 - xine-lib 1.0 fails, relocation R_X86_64_32 can not be used when making a shared object (libXv.a xorg-x11 6.8.1.901)
Summary: xine-lib 1.0 fails, relocation R_X86_64_32 can not be used when making a shar...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-27 05:20 UTC by Joerg Plate
Modified: 2004-12-29 23:15 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Plate 2004-12-27 05:20:59 UTC
linking with an object file from libXv.a fails, because it has a wrong
relocation type. Compiling xorg-x11 with "-fPIC" did not help (perhaps
that flag is removed?)


Reproducible: Always
Steps to Reproduce:
1. emerge xine-lib

Actual Results:  
x86_64-pc-linux-gnu-gcc -shared  .libs/x11osd.o .libs/deinterlace.o
.libs/alphablend.o .libs/video_out_xv.o  -Wl,--rpath
-Wl,/var/tmp/portage/xine-lib-1.0/work/xine-lib-1.0/src/xine-engine/.libs
/usr/lib/libXv.a -L/usr/lib -lXinerama -lXext
../../src/xine-engine/.libs/libxine.so  -march=athlon64 -Wl,-soname
-Wl,xineplug_vo_out_xv.so -o .libs/xineplug_vo_out_xv.so
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/libXv.a(Xv.o): relocation R_X86_64_32 against `a localsymbol' can not
be used when making a shared object; recompile with -fPIC
/usr/lib/libXv.a: could not read symbols: Bad value


Expected Results:  
install xine-lib


Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 4000+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4,dev-lang/python-2.4 [2.4 (#1, Dec 21
2004, 21:22:23)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4, 2.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.9.3, 1.5, 1.8.5-r2, 1.6.3, 1.4_p6, 1.7.9
sys-devel/binutils:  2.15.92.0.2-r1, 2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon64 -pipe -fPIC"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -pipe -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg candy ccache distlocks moo sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://cs.ubishops.ca/pub/gentoo
ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/
ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/ http://gentoo.mirrored.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X bitmap-fonts dlloader doc font-server nls opengl pam sdk truetype-fonts
type1-fonts xprint xv aac aalib alsa arts avi dvd esd gnome libcaca mng nls
nvidia oggvorbis opengl pic png samba sdl speex theora vidix xvmc"
Comment 1 Jason Sievert 2004-12-27 13:09:13 UTC
Getting the same error on amd64.

*** Warning: Linking the shared library xineplug_vo_out_xv.la against the
*** static library //usr/X11R6/lib/libXv.a is not portable!
libtool-nofpic: link: warning: `/usr/lib64/libfreetype.la' seems to be moved
x86_64-pc-linux-gnu-gcc -shared  .libs/x11osd.o .libs/deinterlace.o .libs/alphablend.o .libs/video_out_xv.o  -Wl,--rpath -Wl,/var/tmp/portage/xine-lib-1.0/work/xine-lib-1.0/src/xine-engine/.libs -Wl,--rpath -Wl,//usr/lib -L/usr/lib64 //usr/X11R6/lib/libXv.a -L/usr/X11R6/lib64 -lXinerama -lXext ../../src/xine-engine/.libs/libxine.so  -march=athlon64 -Wl,-soname -Wl,xineplug_vo_out_xv.so -o .libs/xineplug_vo_out_xv.so
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: //usr/X11R6/lib/libXv.a(Xv.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
//usr/X11R6/lib/libXv.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [xineplug_vo_out_xv.la] Error 1
make[4]: Leaving directory `/var/tmp/portage/xine-lib-1.0/work/xine-lib-1.0/src/video_out'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1.0/work/xine-lib-1.0/src/video_out'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1.0/work/xine-lib-1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1.0/work/xine-lib-1.0'
make: *** [all] Error 2

Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-rc3 x86_64)
=================================================================
System uname: 2.6.10-rc3 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 17 2004, 09:55:06)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.9.3, 1.5, 1.7.9, 1.6.3, 1.8.5-r2, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O3 -ffast-math -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -ffast-math -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib acpi alsa apache2 audiofile avi berkdb bitmap-fonts bootsplash cdparanoia cdr crypt cups directfb divx4linux dvd dvdr eds esd ethereal evo exif f77 fam flac flash fortran gif gnome gpg gphoto gphoto2 gpm gstreamer gtk gtk2 hal imagemagick imlib ipv6 java jp2 jpeg kde libwww lzw lzw-tiff mad mozilla mpeg msn multilib mysql ncurses nls nptl offensive oggvorbis opengl oscar oss pam pcmcia pda perl php png python qt quicktime readline samba sdl sndfile spell ssl svg tcltk tcpd tiff truetype usb userlocales wifi xine xml xml2 xmms xpm xrandr xv zlib"
Comment 2 Chris White (RETIRED) gentoo-dev 2004-12-27 19:37:45 UTC
Can you guys try the latest (as of right now) xine-lib?  eradicator had a fix in there for that.  Should work.
Comment 3 Joerg Plate 2004-12-28 14:59:13 UTC
Latest xine-lib 1.0 works.
Comment 4 Jason Sievert 2004-12-29 23:15:28 UTC
Works great!
Thanks!!