pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/52624: Can't compile net/nmap from pkgsrc with lua support



>Number:         52624
>Category:       pkg
>Synopsis:       Can't compile net/nmap from pkgsrc with lua support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 16 03:05:00 +0000 2017
>Originator:     Patrick Mackey
>Release:        7.1
>Organization:
Vodafone NZ
>Environment:
NetBSD vdosrv 7.1 NetBSD 7.1 (GENERIC.201703111743Z) amd64

>Description:
I'm trying to build net/nmap with lua scripting support by setting "PKG_OPTIONS.nmap = inet6 lua" in /etc/mk.conf

I have lua52-5.2.4nb1 installed



I'm getting the following error:
###############################
gmake[1]: Entering directory '/storage/obj/net/nmap/work/nmap-7.60/liblua'
gcc -O2 -Wall -Wextra -DLUA_COMPAT_5_2  -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include/lua-5.2 -I/usr/include -I/usr/pkg/include -Wall   -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I/usr/pkg/include -I./liblua -I/usr/pkg/include -I./libdnet-stripped/include -I./libssh2/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/lua-5.2 -I/usr/include -I/usr/pkg/include -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\"; -DNMAP_PLATFORM=\"x86_64--netbsd\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" -D_FORTIFY_SOURCE=2  -c -o lapi.o lapi.c
In file included from lua.h:16:0,
                 from lapi.c:16:
luaconf.h:566:2: error: #error "Compiler does not support 'long long'. Use option '-DLUA_32BITS'   or '-DLUA_C89_NUMBERS' (see file 'luaconf.h' for details)"
 #error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' \
  ^
In file included from lapi.c:16:0:
lua.h:93:1: error: unknown type name 'LUA_INTEGER'
 typedef LUA_INTEGER lua_Integer;
 ^
lua.h:96:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_Unsigned'
 typedef LUA_UNSIGNED lua_Unsigned;
                      ^
In file included from lapi.h:11:0,
                 from lapi.c:18:
llimits.h:80:1: error: unknown type name 'LUA_INTEGER'
 typedef LUAI_UACINT l_uacInt;
 ^
gmake[1]: *** [<builtin>: lapi.o] Error 1
gmake[1]: Leaving directory '/storage/obj/net/nmap/work/nmap-7.60/liblua'
gmake: *** [Makefile:165: build-lua] Error 2
*** Error code 2

Stop.
make[2]: stopped in /cvsroot/pkgsrc/net/nmap
*** Error code 1

Stop.
make[1]: stopped in /cvsroot/pkgsrc/net/nmap
*** Error code 1

Stop.
make: stopped in /cvsroot/pkgsrc/net/nmap


###############################



>How-To-Repeat:
from pkgsrc current.

pkgsrc/net/nmap
make PKG_OPTIONS="inet6 lua"


>Fix:
Setting -DLUA_C89_NUMBERS seems to fix the compile issues and nmap scripting works as expected.


Home | Main Index | Thread Index | Old Index