[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nmap-dev
Subject:    Patch: nmap 5.50 fails to build without LUA
From:       "Wulf C. Krueger" <philantrop () exherbo ! org>
Date:       2011-01-29 13:05:34
Message-ID: 201101291405.37270.philantrop () exherbo ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


Subject and patch say it all.

["nmap-5.50-no_lua.patch" (text/x-patch)]

From cfc08b0250183ab807356559e8a0efa1e377db90 Mon Sep 17 00:00:00 2001
From: Wulf C. Krueger <philantrop@exherbo.org>
Date: Sat, 29 Jan 2011 13:53:01 +0100
Subject: [PATCH] Make another LUA-specific function call depend on NOLUA not being defined.

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


["signature.asc" (application/pgp-signature)]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic