Package Details: prelink 20130503-7

Git Clone URL: https://aur.archlinux.org/prelink.git (read-only)
Package Base: prelink
Description: ELF prelinking utility to speed up dynamic linking
Upstream URL: http://people.redhat.com/jakub/prelink/
Licenses: GPL
Submitter: xyproto
Maintainer: dundee
Last Packager: dundee
Votes: 87
Popularity: 1.512323
First Submitted: 2015-11-02 11:34
Last Updated: 2015-12-28 20:07

Latest Comments

Antegris commented on 2017-09-13 15:53

Kiwii: Thank you for the tips. I happened to install this hours before a local competition (In my infinite stupidity I didn't check the comments) and it seg faulted. I was able to recover my computer thanks to the process you offered.

dundee commented on 2017-08-02 13:14

I contacted the author (Jakub Jelínek from RedHat) and the resolution is that prelink is not maintained anymore and this bug will not be fixed (unless somebody takes over the project which is not likely).

***
PLEASE USE PRELINK ONLY IF YOU ARE SURE IT WILL NOT CORRUPT YOUR BINARIES!
***

Kiwii commented on 2017-08-02 00:00

Just as a heads up, it's currently breaking glibc and any app using it: https://bugs.archlinux.org/task/54820

If your system breaks, regular chrooting won't work anymore since bash segfaults but you can still fix it from a live system by mounting your root to e.g. /mnt/arch and then have pacman reinstall glibc with custom root and config parameters:

# pacman -r /mnt/arch --config /mnt/arch/etc/pacman.conf -Syu glibc

After that, you can chroot into the system via the regular arch-chroot script and undo prelinking of the rest of the system if you want/need to:
# prelink -au

In case reinstalling just glibc doesn't work, just reinstall the base group; that's what I did, though probably not necessary.

dundee commented on 2016-12-13 17:22

normanu: Do you have some special setting of Make or gcc? E.g. in makepkg.conf?

It looks like you are trying to compile it statically (libc.a).

You should see this output instead:
/bin/sh ../libtool --mode=link gcc -Wall -Wno-pointer-sign -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wl,-O1,--sort-common,--as-needed,-z,relro -o prelink -all-static cache.o conflict.o cxx.o doit.o exec.o execle_open.o get.o gather.o layout.o main.o prelink.o reloc.o space.o undo.o undoall.o verify.o canonicalize.o md5.o sha.o checksum.o data.o dso.o dwarf2.o fptr.o hashtab.o mdebug.o stabs.o crc32.o arch-i386.o arch-alpha.o arch-ppc.o arch-ppc64.o arch-sparc.o arch-sparc64.o arch-x86_64.o arch-mips.o arch-s390.o arch-s390x.o arch-arm.o arch-sh.o arch-ia64.o -lelf
gcc -Wall -Wno-pointer-sign -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o prelink -static cache.o conflict.o cxx.o doit.o exec.o execle_open.o get.o gather.o layout.o main.o prelink.o reloc.o space.o undo.o undoall.o verify.o canonicalize.o md5.o sha.o checksum.o data.o dso.o dwarf2.o fptr.o hashtab.o mdebug.o stabs.o crc32.o arch-i386.o arch-alpha.o arch-ppc.o arch-ppc64.o arch-sparc.o arch-sparc64.o arch-x86_64.o arch-mips.o arch-s390.o arch-s390x.o arch-arm.o arch-sh.o arch-ia64.o -lelf

normanu commented on 2016-12-12 08:51

Am I the only one having issue's building prelink?

/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/../../../../lib/libc.a(malloc.o): invalid string offset 50760 >= 1965 for section `.strtab'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/../../../../lib/libc.a: error adding symbols: Success
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:270: prelink] Error 1

raffomania commented on 2016-03-29 12:38

Error randomly disappeared. I have no idea what went wrong there. Thanks for your help!

dundee commented on 2016-03-23 09:41

You probably have to install selinux header files as well. Or uninstall selinux completely, prelink works without selinux.

raffomania commented on 2016-03-22 21:24

Getting this error too. I've installed libselinux and /lib/libselinux.so exists. Is there something else needed to get this to work?

Falstaff commented on 2016-01-31 22:53

Getting this error when compiling:

/usr/bin/ld: cannot find -lselinux

dundee commented on 2016-01-08 13:37

atze: Strange, mine want fine:

dundee@dundee-dell ~ $ sudo aura -A prelink
aura >>= Determining dependencies...
aura >>= AUR Packages:
prelink

aura >>= Continue? [Y/n]
aura >>= Building `prelink`...
načítají se balíčky...
řeší se závislosti..
kontrola konfliktních balíčků...

Balíčky (1) prelink-20130503-7

Celková velikost po instalaci: 1,40 MiB

All comments