Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Nmap Development: Re: First Nmap SOC release! Nmap 4.22SOC1

Re: First Nmap SOC release! Nmap 4.22SOC1

From: Joshua D. Abraham <jabra_at_ccs.neu.edu>
Date: Sun, 8 Jul 2007 23:10:11 -0400

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 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 1

I decided to try it without liblua. However, it still wouldn't compile properly.

osscan.cc: In function ‘char* mergeFPs(FingerPrint**, int, bool, const in_addr*, int, const u8*, int, int, int, bool)’:
osscan.cc:1777: error: ‘list’ is not a member of ‘std’
osscan.cc:1777: error: expected primary-expression before ‘const’
osscan.cc:1777: error: expected `;' before ‘const’
osscan.cc:1778: error: ‘list’ is not a member of ‘std’
osscan.cc:1778: error: expected primary-expression before ‘const’
osscan.cc:1778: error: expected `;' before ‘const’
osscan.cc:1789: error: ‘tests’ was not declared in this scope
osscan.cc:1794: error: ‘tests’ was not declared in this scope
osscan.cc:1799: error: ‘iter’ was not declared in this scope
osscan.cc:1800: error: ‘list’ is not a member of ‘std’
osscan.cc:1800: error: expected primary-expression before ‘const’
osscan.cc:1800: error: expected `;' before ‘const’
osscan.cc:1801: error: ‘tmp_i’ was not declared in this scope
osscan.cc:1804: error: ‘next’ was not declared in this scope

I then tried this on another *nix machine with the same results. Let me know if
you would like any additional information.

Regards,
Josh

-- 
Joshua D. Abraham
Northeastern University
College of Computer and Information Science
www.ccs.neu.edu/home/jabra
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
Received on Jul 08 2007
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos