Hi -
I wrote back in September that prelink was not available, the last days
I studied it more closely and made some progress.
Prelink builds OK but fails some of its tests in the Makefile. But when
I looked at the tests, it seemed that they were failing either due to
problems with the tests themselves or on genuine and well-handled
refusal to prelink stuff.
So I disabled the tests in the spec file, build the package and
prelinked my rootfs, it rejected to prelink some stuff but otherwise
worked, and my boot time decreased by ~1.5s.
When I studied the rejection to prelink, I first realized an important
lib was blacklisted by default, then found this bugzilla about the issue
still unresolved
https://bugzilla.redhat.com/show_bug.cgi?id=504949
After disabling the blacklist for nss, and prelinking the whole rootfs,
there is still a list of "bad guys", these seem that they could be
Fedora packaging / building errors?
/usr/sbin/prelink: /usr/bin/ospcat: Cannot prelink against non-PIC
shared library /usr/lib/libosp.so.5
/usr/sbin/prelink: /usr/bin/onsgmls: Cannot prelink against non-PIC
shared library /usr/lib/libosp.so.5
/usr/sbin/prelink: /usr/bin/rarian-sk-migrate: Cannot prelink against
non-PIC shared library /usr/lib/librarian.so.0
/usr/sbin/prelink: /usr/bin/txtr-client-proxy: Cannot prelink against
non-PIC shared library /usr/lib/libxml++-2.6.so.2
Prelinking /usr/bin/ospent
/usr/sbin/prelink: /usr/bin/ospent: Cannot prelink against non-PIC
shared library /usr/lib/libosp.so.5
/usr/sbin/prelink: /usr/bin/ospam: Cannot prelink against non-PIC shared
library /usr/lib/libosp.so.5
/usr/sbin/prelink: /usr/bin/rarian-sk-get-cl: Cannot prelink against
non-PIC shared library /usr/lib/librarian.so.0
/usr/sbin/prelink: /usr/bin/osgmlnorm: Cannot prelink against non-PIC
shared library /usr/lib/libosp.so.5
/usr/sbin/prelink: /usr/bin/lzma: Cannot prelink against non-PIC shared
library /usr/lib/libstdc++.so.6
/usr/sbin/prelink: /usr/bin/openjade: Cannot prelink against non-PIC
shared library /usr/lib/libosp.so.5
/usr/sbin/prelink: /usr/bin/osx: Cannot prelink against non-PIC shared
library /usr/lib/libosp.so.5
/usr/sbin/prelink: /usr/bin/txtr-reader: Cannot prelink against non-PIC
shared library /usr/lib/libstdc++.so.6
/usr/sbin/prelink: /usr/bin/rarian-sk-preinstall: Cannot prelink against
non-PIC shared library /usr/lib/librarian.so.0
/usr/sbin/prelink: /usr/bin/gcj-dbtool: Cannot prelink against non-PIC
shared library /usr/lib/libgcj.so.10
Any ideas why these libs (they're all from Fedora packages) are not -fPIC?
-Andy