Nmap Development mailing list archives
Re: First Nmap SOC release! Nmap 4.22SOC1
From: Stoiko Ivanov <stoiko () xover htu tuwien ac at>
Date: Mon, 9 Jul 2007 11:53:35 +0200
Hi, On Sun, Jul 08, 2007 at 11:29:25PM -0500, Kris Katterjohn wrote:
Joshua D. Abraham wrote:So trying to compile the new version, resulted in issues with lua. I am running Lua 5, however I was unable to get things to compile properly. gcc -O2 -Wall -DLUA_USE_LINUX -c -o lua.o lua.c In file included from lua.h:16, from lua.c:15: luaconf.h:263:31: error: readline/readline.h: No such file or directory luaconf.h:264:30: error: readline/history.h: No such file or directory lua.c: In function ‘pushline’: lua.c:180: warning: implicit declaration of function ‘readline’ lua.c:180: warning: assignment makes pointer from integer without a cast lua.c: In function ‘loadline’: lua.c:208: warning: implicit declaration of function ‘add_history’I think installing the readline library will fix that right up.
Installing libreadline (or maybe the libreadline-dev on your distro) really would fix this compilation-issue. However since the libreadline is only needed for the lua-standalone interpreter, which we don't use in Nmap, I'll try to find a way to skip its compilation.
I decided to pass --with-liblua=included however, things didn't really get much better. Compiling nse-standard-library In file included from bit.c:11: bit.h:6:21: error: lauxlib.h: No such file or directory bit.h:7:17: error: lua.h: No such file or directory In file included from bit.c:11: bit.h:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' bit.c:45: error: expected ')' before '*' token bit.c:46: error: expected ')' before '*' token bit.c:47: error: expected ')' before '*' token bit.c:48: error: expected ')' before '*' token bit.c:49: error: expected ')' before '*' token bit.c:50: error: expected ')' before '*' token bit.c:51: error: expected ')' before '*' token bit.c:52: error: expected ')' before '*' token bit.c:54: error: array type has incomplete element type bit.c:55: error: 'bit_bnot' undeclared here (not in a function) bit.c:56: error: 'bit_band' undeclared here (not in a function) bit.c:57: error: 'bit_bor' undeclared here (not in a function) bit.c:58: error: 'bit_bxor' undeclared here (not in a function) bit.c:59: error: 'bit_lshift' undeclared here (not in a function) bit.c:60: error: 'bit_rshift' undeclared here (not in a function) bit.c:61: error: 'bit_arshift' undeclared here (not in a function) bit.c:62: error: 'bit_mod' undeclared here (not in a function) bit.c:63: error: 'NULL' undeclared here (not in a function) bit.c:66: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' make[1]: *** [bit.so] Error 1Hmm.. I'm not having that problem. Stoiko can probably fix that right up, though.
Thanks for the catch. The error occurs, because the compiler can't find the lua-include files - I can reproduce it if I pass --with-liblua=included. - I'll try to commit a fix for this.
..snip..I then tried this on another *nix machine with the same results. Let me know if you would like any additional information.
Since you have lua installed on your system, it would be interesting to know wheter (and where) your distro installs the lua-headers, or wheter it provides a lua developers package (on my debian etch the package is called liblua5.1-0-dev).
Regards, JoshThanks for the report! Kris Katterjohn
Thanks stoiko _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- First Nmap SOC release! Nmap 4.22SOC1 Fyodor (Jul 08)
- Re: First Nmap SOC release! Nmap 4.22SOC1 Joshua D. Abraham (Jul 08)
- Re: First Nmap SOC release! Nmap 4.22SOC1 Kris Katterjohn (Jul 08)
- Re: First Nmap SOC release! Nmap 4.22SOC1 Kris Katterjohn (Jul 08)
- Re: First Nmap SOC release! Nmap 4.22SOC1 David Fifield (Jul 08)
- Re: First Nmap SOC release! Nmap 4.22SOC1 Stoiko Ivanov (Jul 09)
- Re: First Nmap SOC release! Nmap 4.22SOC1 Kris Katterjohn (Jul 09)
- Re: First Nmap SOC release! Nmap 4.22SOC1 Stoiko Ivanov (Jul 09)
- Re: First Nmap SOC release! Nmap 4.22SOC1 Kris Katterjohn (Jul 08)
- Re: First Nmap SOC release! Nmap 4.22SOC1 Jan Engelhardt (Jul 09)
- Re: First Nmap SOC release! Nmap 4.22SOC1 Joshua D. Abraham (Jul 08)
- Re: First Nmap SOC release! Nmap 4.22SOC1 kunwon1 (Jul 10)