Summary: | smpeg fails with relocation R_X86_64_32 can not be used when making a shared object | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bob Sanders <rmsand> |
Component: | Current packages | Assignee: | AMD64 Project <amd64> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | bugs-gentoo |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 83369 |
Description
Bob Sanders
2004-10-21 13:41:56 UTC
Uh, definitely not my bug. -Jeffrey I think that is libSDL.so lib problem. Please recompile sdl. >I think that is libSDL.so lib problem. Please recompile sdl.
I've recompiled libsdl several times with and without the -fPIC flag and the
results have been the same.
This morning, I did - emerge -e smpeg
And the result was the same -
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libSDL.a(SDL_error.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/lib/libSDL.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libsmpeg.la] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/smpeg-0.4.4-r4/work/smpeg-0.4.4'
make: *** [all-recursive] Error 1
Additionally, I tried to emerge xine-ui and upon the compile of xine-lib,
the error surfaced -
/bin/sh ../../libtool-nofpic --mode=link gcc -I/usr/X11R6/include -DXINE_COMPILE -I/usr/include/SDL -D_REENTRANT -I../../src/video_out/vidix -I../../src/video_out/vidix -I/usr/include -I/usr/include/ -O3 -fomit-frame-pointer -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -DENABLE_IPV6 -O2 -pipe -ffunction-sections -o xineplug_vo_out_sdl.la -rpath /usr/lib/xine/plugins/1.0.0 -avoid-version -module alphablend.lo video_out_sdl.lo -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread ../../src/xine-engine/libxine.la
libtool-nofpic: link: warning: `/usr/lib64/libfreetype.la' seems to be moved
gcc -shared .libs/alphablend.o .libs/video_out_sdl.o -Wl,--whole-archive /usr/lib/libSDL.a -Wl,--no-whole-archive -Wl,--rpath -Wl,/var/tmp/portage/xine-lib-1_rc6/work/xine-lib-1-rc6a/src/xine-engine/.libs -Wl,--rpath -Wl,/usr/lib -L/usr/lib64 -L/usr/X11R6/lib64 -L/usr/lib/../lib64 -L/lib/../lib64 -L/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../lib64 -L/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/lib -L/usr/x86_64-pc-linux-gnu/lib -L/usr/x86_64-pc-linux-gnu/bin -L/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4 -L/usr/lib -lpthread ../../src/xine-engine/.libs/libxine.so -Wl,-rpath -Wl,/usr/lib -Wl,-soname -Wl,xineplug_vo_out_sdl.so -o .libs/xineplug_vo_out_sdl.so
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libSDL.a(SDL.o): relocation R_X86_64_32 can not be used when making
a shared object; recompile with -fPIC
/usr/lib/libSDL.a(SDL.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [xineplug_vo_out_sdl.la] Error 1
make[4]: Leaving directory `/var/tmp/portage/xine-lib-1_rc6/work/xine-lib-1-rc6a/src/video_out'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc6/work/xine-lib-1-rc6a/src/video_out'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc6/work/xine-lib-1-rc6a/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc6/work/xine-lib-1-rc6a'
make: *** [all] Error 2
!!! ERROR: media-libs/xine-lib-1_rc6 failed.
!!! Function src_compile, Line 147, Exitcode 2
!!! Parallel make failed
!!! If you need support, post the topmost build error, NOT this status message.
Bob
After a whole lot of compiles, this USE flag seems to trigger the problem - [X] libcaca ( ) Local Flag: Enables libcaca support, colored ASCII-art graphics (media-video/mplayer) Remove it, smpeg compiles, add it, and the -fPIC error show up. Bob sorry, i can't confirm that, neither with nor without USE="libcaca". you could try to disable ccache, clean out the /var/tmp/portage/libsdl-version dir and emerge libsdl again with USE="libcaca". perhaps this will help? I cleaned out /var/tmp/portage, and I'm not using ccache, but it fails the same on my workstation. I also tried on another dual-opteron server that doesn't have mplayer. Without the USE flag the compile worked. Flipping the USE flag and the compile fails the same way. Here are the currrent steps I use to create the problem - ufed ---> sel libcaca, return to save emerge libsdl smpeg Bob What happens if you do a emerge --newuse -uDa world after changing the use flag? crosis rsanders # emerge --newuse -av world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild U ] media-libs/libcaca-0.9-r1 [0.9] +X +doc +imlib +ncurses -slang* 0 kB [ebuild R ] media-libs/libsdl-1.2.7-r3 +X +aalib +alsa -arts -dga -directfb +esd -fbcon -ggi +libcaca* -nas -noaudio -nojoystick -novideo +opengl +oss (-svga) -xinerama -xv 0 kB [ebuild R ] media-video/mplayer-1.0_pre4-r7 (-3dfx) (-3dnow) (-3dnowex) +X +aalib +alsa (-altivec) -arts -bidi -cdparanoia -debug -directfb +divx4linux -dvb +dvd +dvdread -edl +encode +esd -fbcon -ggi +gif +gnome +gtk +ipv6 -joystick +jpeg +libcaca* -lirc +live +lzo +mad -matroska -matrox (-mmx) (-mmx2) +mpeg -mythtv -nas +network +nls +oggvorbis +opengl +oss +png +real +rtc -samba +sdl (-sse) (-svga) +tga +theora +truetype +v4l +v4l2 -xinerama +xmms -xv +xvid 0 kB Total size of downloads: 0 kB Do you want me to merge these packages? [Yes/No] No Doing the -uD --newuse gives - crosis rsanders # emerge --newuse -uDa world These are the packages that I would merge, in order: Calculating world dependencies ...done! [blocks B ] x11-themes/gtk-engines-thinice (from pkg x11-themes/gnome-themes-2.6.2) [ebuild R ] media-libs/freetype-2.1.5-r1 [ebuild R ] net-www/lynx-2.8.5 [ebuild R ] dev-libs/libxml2-2.6.15-r1 [ebuild R ] dev-libs/glib-2.4.6 [ebuild R ] media-libs/tiff-3.6.1-r2 [ebuild R ] app-text/ghostscript-7.07.1-r7 [ebuild R ] app-doc/doxygen-1.3.8 [ebuild R ] media-sound/jack-audio-connection-kit-0.99.0 [ebuild R ] x11-libs/pango-1.4.1-r1 [ebuild R ] dev-libs/atk-1.6.1 [ebuild R ] media-libs/aalib-1.4_rc4-r2 [ebuild U ] media-libs/libcaca-0.9-r1 [0.9] [ebuild R ] media-libs/libsdl-1.2.7-r3 [ebuild R ] media-libs/libao-0.8.5 [ebuild R ] net-misc/curl-7.11.1 [ebuild R ] gnome-base/libglade-2.4.0 [ebuild R ] gnome-base/libgnomecanvas-2.6.1.1 [ebuild R ] gnome-base/libgnomeprint-2.6.2 [ebuild R ] gnome-base/libgnomeprintui-2.6.2 [ebuild R ] gnome-base/orbit-2.10.3 [ebuild R ] gnome-base/libbonobo-2.6.2 [ebuild R ] gnome-base/gconf-2.8.0.1 [ebuild R ] gnome-base/gnome-vfs-2.6.1.1 [ebuild R ] gnome-base/libgnome-2.6.1.1-r1 [ebuild R ] gnome-base/libbonoboui-2.6.1 [ebuild R ] gnome-base/libgnomeui-2.6.1.1 [ebuild R ] media-gfx/imagemagick-6.1.3.2 [ebuild R ] dev-php/php-5.0.2-r1 [ebuild R ] dev-php/php-cgi-5.0.2 [ebuild R ] gnome-base/gnome-libs-1.4.2 [ebuild R ] x11-libs/fltk-1.1.4 [ebuild R ] media-libs/libdv-0.102 [ebuild R ] media-libs/xvid-0.9.1 [ebuild R ] media-video/ffmpeg-0.4.8.20040322 [ebuild R ] media-video/avifile-0.7.38.20030710-r1 [ebuild R ] media-video/mjpegtools-1.6.2-r3 [ebuild R ] x11-libs/evas-1.0.0.20041031_pre13 [ebuild R ] gnome-base/librsvg-2.6.5 [ebuild R ] media-libs/id3lib-3.8.3-r3 [ebuild R ] media-video/mplayer-1.0_pre4-r7 [ebuild R ] kde-base/kdelibs-3.3.0 [ebuild R ] media-gfx/xloadimage-4.1-r1 [ebuild R ] app-doc/quanta-docs-20030405 [ebuild R ] media-libs/xine-lib-1_rc6 [ebuild R ] kde-base/kdemultimedia-3.3.0 [ebuild R ] kde-base/kdeaddons-3.3.0 [ebuild R ] app-cdr/cdrdao-1.1.8-r1 [ebuild R ] app-admin/gkrellm-2.1.28-r1 [ebuild R ] dev-perl/gtk-perl-0.7008-r10 [ebuild R ] gnome-base/libglade-0.17-r6 [ebuild R ] x11-libs/gtkglext-1.0.6 !!! Error: The above package list contains packages which cannot be installed !!! on the same system. Bob Bob: please have a look if libSDL.so exists on your system and report us. Bob: Please tell us if this BUG has resolved in the meantime or if you still experience it. Otherwise, i'll close this one at the end of the month. Yes libSDL.so does exist. As to whether it's resolved in the meantime. I've not attempted to reproduce the bug this year. It will be 1.5 wks from this date before I will have access to the system to run through the steps again. Bob |