Nmap Development mailing list archives
libdnet-stripped compile time error
From: Savio Bot <54v330 () gmail com>
Date: Tue, 15 Dec 2015 01:33:49 +0530
Dear All, I'm compiling nmap on my archlinux with hardening wrapper installed. Hardening wrapper setting is HARDENING_BINDNOW=1 HARDENING_PIE=1 HARDENING_FORTIFY=2 HARDENING_RELRO=1 HARDENING_STACK_CHECK=1 HARDENING_STACK_PROTECTOR=2 But I'm getting compiled error while compiling libdnet-stripped library. It used to compile before 6.25 version. Error :- Making all in include make[2]: Entering directory '/opt/Build/nmap/src/nmap/libdnet-stripped/include' make all-recursive make[3]: Entering directory '/opt/Build/nmap/src/nmap/libdnet-stripped/include' Making all in dnet make[4]: Entering directory '/opt/Build/nmap/src/nmap/libdnet-stripped/include/dnet' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/opt/Build/nmap/src/nmap/libdnet-stripped/include/dnet' make[4]: Entering directory '/opt/Build/nmap/src/nmap/libdnet-stripped/include' make[4]: Leaving directory '/opt/Build/nmap/src/nmap/libdnet-stripped/include' make[3]: Leaving directory '/opt/Build/nmap/src/nmap/libdnet-stripped/include' make[2]: Leaving directory '/opt/Build/nmap/src/nmap/libdnet-stripped/include' Making all in src make[2]: Entering directory '/opt/Build/nmap/src/nmap/libdnet-stripped/src' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/opt/Build/nmap/src/nmap/libdnet-stripped/src' make[2]: Entering directory '/opt/Build/nmap/src/nmap/libdnet-stripped' make[2]: Nothing to be done for 'all-am'. make[2]: Leaving directory '/opt/Build/nmap/src/nmap/libdnet-stripped' make[1]: Leaving directory '/opt/Build/nmap/src/nmap/libdnet-stripped' g++ -c -I./liblinear -I/usr/include/lua -I./libdnet-stripped/include -D_FORTIFY_SOURCE=2 -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/share/nmap\" -D_FORTIFY_SOURCE=2 -march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -Wall -fno-strict-aliasing nse_fs.cc -o nse_fs.o nse_utility.cc: In function ‘uint16_t nseU_checkport(lua_State*, int, const char**)’: nse_utility.cc:150:43: error: ‘luaL_checkint’ was not declared in this scope port = (uint16_t) luaL_checkint(L, idx); ^ Makefile:110: recipe for target 'nse_utility.o' failed make: *** [nse_utility.o] Error 1 make: *** Waiting for unfinished jobs.... nse_main.cc: In function ‘int script_set_output(lua_State*)’: nse_main.cc:125:65: error: ‘luaL_checkint’ was not declared in this scope sr.set_output_str(luaL_checkstring(L, 3), luaL_checkint(L,-1)); ^ nse_main.cc: In function ‘int host_set_output(lua_State*)’: nse_main.cc:139:65: error: ‘luaL_checkint’ was not declared in this scope sr.set_output_str(luaL_checkstring(L, 4), luaL_checkint(L,-1)); ^ nse_main.cc: In function ‘int port_set_output(lua_State*)’: nse_main.cc:156:65: error: ‘luaL_checkint’ was not declared in this scope sr.set_output_str(luaL_checkstring(L, 5), luaL_checkint(L,-1)); ^ nse_main.cc: In function ‘std::__cxx11::string format_obj(lua_State*, int)’: nse_main.cc:445:64: error: ‘luaL_checkint’ was not declared in this scope output = std::string(lua_tostring(L, -2), luaL_checkint(L, -1)); ^ nse_main.cc: In function ‘int nse_yield(lua_State*, int, lua_CFunction)’: nse_main.cc:668:33: error: invalid conversion from ‘lua_CFunction {aka int (*)(lua_State*)}’ to ‘lua_KFunction {aka int (*)(lua_State*, int, long int)}’ [-fpermissive] return lua_yieldk(L, 1, ctx, k); /* yield with NSE_YIELD_VALUE */ ^ In file included from nse_main.h:9:0, from portlist.h:130, from nse_main.cc:4: /usr/include/lua.h:289:15: note: initializing argument 4 of ‘int lua_yieldk(lua_State*, int, lua_KContext, lua_KFunction)’ LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_KContext ctx, ^ nse_fs.cc: In function ‘int luaopen_lfs(lua_State*)’: nse_fs.cc:309:33: error: ‘luaL_register’ was not declared in this scope luaL_register (L, "lfs", fslib); ^ Makefile:110: recipe for target 'nse_fs.o' failed make: *** [nse_fs.o] Error 1 Makefile:110: recipe for target 'nse_main.o' failed make: *** [nse_main.o] Error 1 nse_nsock.cc: In function ‘int l_loop(lua_State*)’: nse_nsock.cc:417:32: error: ‘luaL_checkint’ was not declared in this scope int tout = luaL_checkint(L, 1); ^ nse_nsock.cc: In function ‘int l_receive_lines(lua_State*)’: nse_nsock.cc:615:25: error: ‘luaL_checkint’ was not declared in this scope luaL_checkint(L, 2)); ^ nse_nsock.cc: In function ‘int l_receive_bytes(lua_State*)’: nse_nsock.cc:625:25: error: ‘luaL_checkint’ was not declared in this scope luaL_checkint(L, 2)); ^ nse_nsock.cc: In function ‘int l_receive_buf(lua_State*)’: nse_nsock.cc:638:25: error: ‘lua_getctx’ was not declared in this scope if (lua_getctx(L, NULL) == LUA_OK) ^ nse_nsock.cc: In function ‘int l_set_timeout(lua_State*)’: nse_nsock.cc:723:35: error: ‘luaL_checkint’ was not declared in this scope nu->timeout = luaL_checkint(L, 2); ^ nse_nsock.cc: In function ‘int l_bind(lua_State*)’: nse_nsock.cc:805:21: error: ‘luaL_checkint’ was not declared in this scope luaL_checkint(L, 3); ^ nse_nsock.cc: In function ‘int l_pcap_open(lua_State*)’: nse_nsock.cc:960:35: error: ‘luaL_checkint’ was not declared in this scope int snaplen = luaL_checkint(L, 3); ^ Makefile:110: recipe for target 'nse_nsock.o' failed make: *** [nse_nsock.o] Error 1
_______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- libdnet-stripped compile time error Savio Bot (Dec 14)
- Re: libdnet-stripped compile time error Daniel Miller (Dec 14)
- Re: libdnet-stripped compile time error Savio Bot (Dec 16)
- Re: libdnet-stripped compile time error Daniel Miller (Dec 14)