Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#1299 - prelink cannot work with non-PIC library 'libz'

Attached to Project: Arch Linux
Opened by Ash (Thikasabrik) - Monday, 23 August 2004, 16:20 GMT
Last edited by arjan timmerman (blaasvis) - Monday, 23 August 2004, 16:32 GMT
Task Type Feature Request
Category System
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

When I run 'prelink --all' on my system with a config file that covers most of the filesystem, it stumbles on certain binaries that link to libz, complaining: "Cannot prelink against non-PIC shared library". This page - http://www.gentoo.org/doc/en/prelink-howto.xml - explains that "The cause of this problem is from badly compiled shared libraries that were compiled without the -fPIC gcc option for all their object files."

I am not sure whether this error prevents prelinking the file concerned, but there are a lot of them, and it is certainly not optimal.
This task depends upon

Closed by  Judd Vinet (judd)
Monday, 13 September 2004, 23:18 GMT
Reason for closing:  Implemented
Comment by Ash (Thikasabrik) - Monday, 23 August 2004, 16:52 GMT
Just adding export CFLAGS="$CFLAGS -fPIC" to the beginning of the build seems to work nicely. Tell me if this is a mistake.
Comment by Ash (Thikasabrik) - Monday, 23 August 2004, 16:57 GMT
Oops, forgot to mention that libpam.so.0 and libpam_misc.so.0 have this problem too, but far fewer apps use it, as does libGL.so.1, but i use the nvidia drivers, so this may be to do with that, and thus only nvidia can fix it. Also libmplex2-1.6.so.0

Loading...