Nmap Development mailing list archives

Error building nmap on amd64


From: Sven Klemm <sven () c3d2 de>
Date: Tue, 19 Aug 2008 21:01:08 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

when trying to build nmap on amd64 I am getting the following error.

make[2]: Entering directory `/tmp/nmap/nselib-bin'
./libtool --tag=CC --silent --mode=compile gcc -I../liblua  -g -O2 -c
bit.c
./libtool --tag=CC --silent --mode=link gcc -avoid-version -module
- -rpath /usr/local/libexec/nmap/nselib-bin -L../liblua  -o bit.la
bit.lo -llua -lm
/usr/bin/ld: /tmp/nmap/liblua/liblua.a(lapi.o): relocation R_X86_64_32
against `luaO_nilobject_' can not be used when making a shared object;
recompile with -fPIC
/tmp/nmap/liblua/liblua.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [bit.so] Error 1
make[2]: Leaving directory `/tmp/nmap/nselib-bin'
make[1]: *** [nsestdlib] Error 2
make[1]: Leaving directory `/tmp/nmap'
make: *** [all] Error 2

The reason for the error is liblua is not compiled with -fPIC which is
needed for shared libraries on amd64. When I manually build liblua
with -fPIC I don't get any error. configure should probably check if
- -fPIC is needed for shared libraries and enable it for liblua.

Cheers,
Sven

- --
Sven Klemm
http://cthulhu.c3d2.de/~sven/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkirGHQACgkQevlgTHEIT4bS9ACffGOjfyG3FMFL86HmhWAiqA9V
OGgAn3sss0iA5yPAZg+AGarTkoTVRTqr
=9aAE
-----END PGP SIGNATURE-----

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: