Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
prelink questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
squeegy
Guru
Guru


Joined: 13 Mar 2004
Posts: 321
Location: Cincinnati, OH

PostPosted: Wed Mar 17, 2004 5:54 pm    Post subject: prelink questions Reply with quote

Getting some errors when prelinking just wanna make sure they're not bad ones to see.

Here's the list

/usr/sbin/prelink: /sbin/insmod.static: Using /usr/lib/libc.so.1, not /lib/ld-linux.so.2 as dynamic linker
/usr/sbin/prelink: /usr/bin/mplayer: Cannot prelink against non-PIC shared library /usr/lib/libdivxdecore.so.0
/usr/sbin/prelink: /usr/bin/yuv2lav: Cannot prelink against non-PIC shared library /usr/lib/liblavfile-1.6.so.
/usr/sbin/prelink: /usr/games/bin/tuxracer: Cannot prelink against non-PIC shared library /usr/lib/libGL.so.1
/usr/sbin/prelink: /usr/bin/lavaddwav: Cannot prelink against non-PIC shared library /usr/lib/liblavfile-1.6.so.
/usr/sbin/prelink: /usr/bin/lav2yuv: Cannot prelink against non-PIC shared library /usr/lib/liblavfile-1.6.so.
/usr/sbin/prelink: /usr/bin/lavrec: Cannot prelink against non-PIC shared library /usr/lib/liblavfile-1.6.so.
/usr/sbin/prelink: /usr/bin/yuvcorrect_tune: Cannot prelink against non-PIC shared library /usr/lib/liblavfile-1.6.so.
/usr/sbin/prelink: /usr/bin/lav2wav: Cannot prelink against non-PIC shared library /usr/lib/liblavfile-1.6.so.
/usr/sbin/prelink: /usr/i686-pc-linux-gnu/gcc-bin/3.3/g++ is no longer hardlink to /usr/i686-pc-linux-gnu/gcc-bin/3.3/c++
/usr/sbin/prelink: /usr/bin/lavtrans: Cannot prelink against non-PIC shared library /usr/lib/liblavfile-1.6.so.
/usr/sbin/prelink: /usr/bin/ffserver: Cannot prelink against non-PIC shared library /usr/lib/libavformat.so
/usr/sbin/prelink: /usr/bin/lavinfo: Cannot prelink against non-PIC shared library /usr/lib/liblavfile-1.6.so.
/usr/sbin/prelink: /usr/X11R6/bin/glxgears: Cannot prelink against non-PIC shared library /usr/lib/libGL.so.1
/usr/sbin/prelink: /usr/X11R6/bin/glxinfo: Cannot prelink against non-PIC shared library /usr/lib/libGL.so.1
/usr/sbin/prelink: /usr/bin/yuvcorrect: Cannot prelink against non-PIC shared library /usr/lib/liblavfile-1.6.so.
/usr/sbin/prelink: /usr/bin/yuvscaler: Cannot prelink against non-PIC shared library /usr/lib/liblavfile-1.6.so.
/usr/sbin/prelink: /usr/bin/glmovie: Cannot prelink against non-PIC shared library /usr/lib/libGL.so.1
/usr/sbin/prelink: /usr/bin/ffmpeg: Cannot prelink against non-PIC shared library /usr/lib/libavformat.so
/usr/sbin/prelink: /usr/bin/lqtplay: Cannot prelink against non-PIC shared library /usr/lib/libGL.so.1
/usr/sbin/prelink: /usr/bin/mencoder: Cannot prelink against non-PIC shared library /usr/lib/libdivxencore.so.0
/usr/sbin/prelink: /usr/bin/lavplay: Cannot prelink against non-PIC shared library /usr/lib/liblavfile-1.6.so.

Should there be this many?
Back to top
View user's profile Send private message
s3ntient
Guru
Guru


Joined: 13 Apr 2003
Posts: 304
Location: Lyon, France

PostPosted: Wed Mar 17, 2004 6:15 pm    Post subject: Reply with quote

No, you'll have to re-emerge some libraries with -fpic in your CFLAGS.
Did you read the Prelinking Guide?

Quote:
"Cannot prelink against non-PIC shared library"

The cause of this problem is from badly compiled shared libraries that were compiled without the -fPIC gcc option for all their object files.

The following is a list of the problem libraries and which packages to re-emerge if you have the above error.

Code Listing 4.1: Fixes

Code:
// For the ORBit library /usr/lib/libIIOP.so.0.5.17
# emerge ">=sys-apps/tcp-wrappers-7.6-r4" ORBit

// For zlib library usr/lib/libz.so.1.1.4
# emerge ">=sys-libs/zlib-1.1.4"

// For svgalib, /usr/lib/libsvga.so.xx
# emerge ">=media-libs/svgalib-1.9.16"

// For the XFree openGL library, libGLU.so.1
# emerge ">=x11-base/xfree-4.2.1-r2"

// For libpcap.so.0.6
# emerge ">=net-libs/libpcap-0.7.1-r2"

// For the lcms library, /usr/lib/liblcms.so.1
# emerge ">=media-libs/lcms-1.09"

_________________
http://blog.chaostrophy.org
Back to top
View user's profile Send private message
squeegy
Guru
Guru


Joined: 13 Mar 2004
Posts: 321
Location: Cincinnati, OH

PostPosted: Thu Mar 18, 2004 1:57 am    Post subject: Reply with quote

oops i'm sorry, i read the documentation, but I misunderstood it. I thought it was saying if you had problems with those specific libraries or something to that effect. Should have looked more closely. Thanks for the heads up.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum