Bug 81238 - non-PIC library with all kde applications, prevents prelink from working
Bug#: 81238 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: kde@gentoo.org Reported By: anlar@hellfish.org
Component: Library
URL: 
Summary: non-PIC library with all kde applications, prevents prelink from working
Keywords:  
Status Whiteboard: 
Opened: 2005-02-08 07:51 0000
Description:   Opened: 2005-02-08 07:51 0000
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 From Gregorio Guidi (RETIRED) 2005-02-08 09:52:33 0000 -------
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 From anlar@hellfish.org 2005-02-12 05:05:11 0000 -------
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 From Gregorio Guidi (RETIRED) 2005-02-17 06:34:41 0000 -------
I removed the pic flag form libidn. All should be ok now.