Nmap Development mailing list archives

Re: Patch: nmap 5.50 fails to build without LUA


From: Djalal Harouni <tixxdz () opendz org>
Date: Sat, 29 Jan 2011 18:30:06 +0100

On 2011-01-29 14:05:34 +0100, Wulf C. Krueger wrote:
Subject and patch say it all.
Thx, actually I've applied the patch (svn r22106) few hours before.


Without this patch, building nmap without LUA will fail:
nmap.cc:1324:9: error: 'class NmapOps' has no member named 'scripthelp'
---
 nmap.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/nmap.cc b/nmap.cc
index e4020c6..47e49bb 100644
--- a/nmap.cc
+++ b/nmap.cc
@@ -1321,11 +1321,13 @@ int nmap_main(int argc, char *argv[]) {
     print_iflist();
     exit(0);
   }
+#ifndef NOLUA
   if (o.scripthelp) {
     /* Special-case open_nse for --script-help only. */
     open_nse();
     exit(0);
   }
+#endif
 
 #if HAVE_IPV6
   if(o.af() == AF_INET6 && o.traceroute)
-- 
1.7.3.5


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


Current thread: