You are not logged in.

#1 2013-10-27 13:51:06

Perfect Gentleman
Member
Registered: 2012-10-25
Posts: 219

[Solved] Prelink compilation error

gcc -Wall -Wno-pointer-sign -march=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o execstack execstack.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
/bin/sh ../libtool --mode=link gcc -Wall -Wno-pointer-sign -march=native -O2 -pipe -fomit-frame-pointer  -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=native -O2 -pipe -fomit-frame-pointer -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
/usr/bin/ld: cannot find -lelf
collect2: error: ld returned 1 exit status
Makefile:269: recipe for target 'prelink' failed
make[2]: *** [prelink] Error 1
make[2]: Leaving directory '/tmp/yaourt-tmp/abs-prelink/src/prelink/src'
Makefile:175: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp/abs-prelink/src/prelink'
Makefile:121: recipe for target 'all' failed
make: *** [all] Error 2
$ ls -l /usr/lib/libelf.so
lrwxrwxrwx 1 root root 11 Oct 27 20:18 /usr/lib/libelf.so -> libelf.so.1

what am i doing wrong ?

Last edited by Perfect Gentleman (2013-10-28 00:18:33)

Offline

#2 2013-10-27 13:56:02

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,416
Website

Re: [Solved] Prelink compilation error

-all-static

So you are looking for libelf.a

Offline

#3 2013-10-27 14:14:08

Perfect Gentleman
Member
Registered: 2012-10-25
Posts: 219

Re: [Solved] Prelink compilation error

is it possible to get rid of it ?
arch=x86_64, i got libelf.a only in /usr/lib32
----------------------------------------------------------------
solved
i removed some code with words "all-static" from libtool  and package built fine.
I understand that it is needed a patch. but i don't how to write it.

Allan, thanx for tips

Last edited by Perfect Gentleman (2013-10-27 14:26:30)

Offline

Board footer

Powered by FluxBB