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

Bug 81238

Summary: non-PIC library with all kde applications, prevents prelink from working
Product: Gentoo Linux Reporter: anlar
Component: [OLD] LibraryAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: dragonheart, m.debruijne
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description anlar 2005-02-08 07:51:16 UTC
I tried to prelink my applications (as I have done in the past) to get them load faster. Got hundreds of lines like this:

prelink: /usr/kde/3.3/bin/kmixctrl: Cannot prelink against non-PIC shared library /usr/lib/libidn.so.11

I heard once that if prelink for one library fails it leaves the whole binary non-prelinked (and thus slow). So, now none of my kde applications and such can be prelinked? 

I had the things beautifully prelinked with no errors and just upgraded to use ~x86 and when I decided to prelink everything again, .. Any suggestions/fixes?

*  net-dns/libidn
      Latest version available: 0.5.13
      Latest version installed: 0.5.13

make.conf
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
ACCEPT_KEYWORDS="~x86"
USE="mmx sse acpi alsa apache2 apm arts avi bonobo cdr crypt cups curl dga doc dvd ethereal fbcon flash gd gif gnome gphoto2 gpm gtk gtk2 imap imlib java jpeg kde lcms libwww mad mikmod mozilla mpeg ncurses pam pdflib perl png python qt quicktime readline sdl ssl svg svga tcpd tetex tiff truetype unicode usb videos wmf wxwindows X Xaw3d xface xml2 xmms xv zlib ipv6 tcltk"
CXXFLAGS="${CFLAGS}"
FEATURES="ccache sandbox candy"
CCACHE_SIZE="1G"


Reproducible: Always
Steps to Reproduce:
1. Use ~x86 arch with kde, libidn and stuff
2. Try to prelink the applications

Actual Results:  
Errors, most likely the process failed

Expected Results:  
Properly prelinked libraries..
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-08 09:52:33 UTC
Probably this is related to bug 72969.
Maybe the ebuild should just avoid passing any --with-pic or --without-pic 
option, after all libidn uses libtool and should do the right thing
automatically...
Comment 2 anlar 2005-02-12 05:05:11 UTC
I don't understand all that, but I managed to recompile the library so that now everything prelinks. (As suggested in that other bug report.)
Comment 3 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-17 06:34:41 UTC
I removed the pic flag form libidn. All should be ok now.