Nmap Development mailing list archives
NSE C modules fixed in static builds
From: David Fifield <david () bamsoftware com>
Date: Tue, 5 Aug 2008 15:49:22 -0600
Hello, I just made a change that fixes NSE C modules in static builds of Nmap. libtool needs to link the modules with liblua and libm or else not all needed functions are included. Trying to load a module (bit.so is currently to only one) from a static build caused an error like SCRIPT ENGINE: error while initializing script rules: error loading module 'bit' from file '/usr/libexec/nmap/nselib-bin/bit.so': /usr/libexec/nmap/nselib-bin/bit.so: undefined symbol: lua_pushnumber stack traceback: [C]: ? [C]: in function 'require' /usr/share/nmap/nselib/packet.lua:12: in main chunk [C]: in function 'require' /usr/share/nmap/scripts/rpcinfo.nse:10: in main chunk [C]: ? [C]: in function 'Entry' /usr/share/nmap/scripts/script.db:8: in main chunk [C]: ? [C]: ? That this didn't work before is kind of a big deal because the binaries shipped in the RPM packages are static. I tested RPMs back to 4.23RC1 from November 2007 and they all had the problem. It probably goes back earlier than that, that's just where I stopped testing. David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- NSE C modules fixed in static builds David Fifield (Aug 05)