Nmap Development mailing list archives

Re: Unable to build nse_bit.so with latest SVN


From: Sven Klemm <sven () c3d2 de>
Date: Tue, 09 Sep 2008 15:08:15 +0200

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

Brandon Enright wrote:
| I'm not able to build the current SVN copy of Nmap because of a Lua
| build error in nse_bit.cc:
|
| g++ -c -Ilibdnet-stripped/include  -Inbase -Insock/include -g -O2
- -Wall  -fno-strict-aliasing   -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\"
- -DNMAP_URL=\"http://nmap.org\";
- -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\"
- -DNMAPDATADIR=\"/usr/local/share/nmap\"
- -DNMAPLIBEXECDIR=\"/usr/local/libexec/nmap\" nse_bit.cc -o nse_bit.o
| nse_bit.cc: In function 'int luaopen_bit(lua_State*)':
| nse_bit.cc:67: error: 'luaL_openlib' was not declared in this scope
| make[1]: *** [nse_bit.o] Error 1
|
|
| I'm not particularly good at tracking down build errors like this.  I
| do have Lua 5.1.3 on the system.  Here are some other pertinent
| packages on the system:
|
| gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-gentoo-r1 x86_64, autoconf-2.61-r2
|
| I've attached my config.log in case that helps.

Seems like your lua does not have LUA_COMPAT_OPENLIB defined. This
leads to luaL_openlib not getting defined (in lauxlib.h of lua).
LUA_COMPAT_OPENLIB is defined in luaconf.h

luaL_openlib is apparently deprecated.

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

iEYEARECAAYFAkjGdT8ACgkQevlgTHEIT4YrEwCfb5DEj9xTwNVRUuD71ooyrCLT
w78AniiQ6snaozFFHoC/qRdd7kJfmCM2
=rUrP
-----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: