NetBSD Problem Report #51715

From www@NetBSD.org  Wed Dec 14 00:09:22 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 82B847A30B
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 14 Dec 2016 00:09:22 +0000 (UTC)
Message-Id: <20161214000921.439FB7A336@mollari.NetBSD.org>
Date: Wed, 14 Dec 2016 00:09:21 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: net/nmap build fails
X-Send-Pr-Version: www-1.0

>Number:         51715
>Category:       pkg
>Synopsis:       net/nmap build fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    leot
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 14 00:10:00 +0000 2016
>Closed-Date:    Tue Sep 18 14:46:25 +0000 2018
>Last-Modified:  Tue Sep 18 14:46:25 +0000 2018
>Originator:     John D. Baker
>Release:        NetBSD/amd64-7.0_STABLE, pkgsrc HEAD (13 Dec 2016)
>Organization:
>Environment:
NetBSD tesla.clamp.net 7.0_STABLE NetBSD 7.0_STABLE (TESLA) #53: Fri Dec  9 15:01:57 CST 2016  sysop@tesla.clamp.net:/d0/build/netbsd-7/obj/amd64/sys/arch/amd64/compile/TESLA amd64

>Description:
Building "net/nmap" (nmap-7.30) fails as follows:

[...]
Compiling liblua
gmake[1]: Entering directory '/d0/build/pkgsrc/net/nmap/work/nmap-7.30/liblua'
gcc -O2 -Wall -Wextra -DLUA_COMPAT_5_2  -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -Wall   -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I/usr/pkg/include -I./liblua -I/usr/pkg/include -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -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;
 ^
<builtin>: recipe for target 'lapi.o' failed
gmake[1]: *** [lapi.o] Error 1
gmake[1]: Leaving directory '/d0/build/pkgsrc/net/nmap/work/nmap-7.30/liblua'
Makefile:149: recipe for target 'build-lua' failed
gmake: *** [build-lua] Error 2
*** Error code 2

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

Stop.

>How-To-Repeat:
See above.
>Fix:

>Release-Note:

>Audit-Trail:
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51715: net/nmap build fails
Date: Tue, 13 Dec 2016 18:14:44 -0600 (CST)

 I should have mentioned that I'm building "nmap" with:

   PKG_OPTIONS.nmap+=zenmap ndiff lua

 so that's why the error is related to lua.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: Alexander Nasonov <alnsn@yandex.ru>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/51715: net/nmap build fails
Date: Wed, 14 Dec 2016 07:41:43 +0000

 jdbaker@mylinuxisp.com wrote:
 > gcc -O2 -Wall -Wextra -DLUA_COMPAT_5_2  -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -Wall   -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I/usr/pkg/include -I./liblua -I/usr/pkg/include -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -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' \
 >   ^

 I remember seeing this error in the past but it went away eventually.

 For comparison:

 gcc -O2 -Wall -Wextra -DLUA_COMPAT_5_2  -O2 -fPIC
 -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/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

 I build with gcc 5.4.0, PKGSRC_MKPIE=yes and with options "inet6 lua".

 Alex

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51715: net/nmap build fails
Date: Wed, 14 Dec 2016 08:12:23 +0000

 On Wed, Dec 14, 2016 at 12:10:00AM +0000, jdbaker@mylinuxisp.com wrote:
  > 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' \

 This seems to be caused by LLONG_MAX not being defined, but I don't
 see why that should be the case -- it is present in amd64's
 machine/limits.h on -7 and there's no obvious reason that the compile
 should be hiding it.

 Can you check .work.log for the transformed compiler invocation?

 Also, there are three copies of lua floating about - the one in base,
 the one that gets buildlinked, and the one that nmap includes in its
 distfile. If it's using some of the files from one copy and some from
 another that could cause all manner of strangeness...

 -- 
 David A. Holland
 dholland@netbsd.org

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51715: net/nmap build fails
Date: Wed, 14 Dec 2016 06:33:13 -0600 (CST)

 On Wed, 14 Dec 2016, David Holland wrote:

 >  Can you check .work.log for the transformed compiler invocation?

 The command line reported on the terminal is:

 [...]
 Compiling liblua
 gmake[1]: Entering directory '/tmp/pkgsrc/net/nmap/work/nmap-7.30/liblua'
 gcc -O2 -Wall -Wextra -DLUA_COMPAT_5_2  -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -Wall   -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I/usr/pkg/include -I./liblua -I/usr/pkg/include -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -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

 The corresponding entry in "${WRKOBJDIR}/net/nmap/work/.work.log" is:

 [...]
 [*] cc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I/usr/pkg/include -I./liblua -I/usr/pkg/include -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -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
 <.> /tmp/pkgsrc/net/nmap/work/.gcc/bin/gcc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -O2 -I/tmp/pkgsrc/net/nmap/work/.buildlink/include -I/tmp/pkgsrc/net/nmap/work/.x11-buildlink/include -I/tmp/pkgsrc/net/nmap/work/.x11-buildlink/include/freetype2 -I/tmp/pkgsrc/net/nmap/work/.x11-buildlink/include/libdrm -I/tmp/pkgsrc/net/nmap/work/.buildlink/include/lua-5.2 -Wall -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I./liblua -I./libdnet-stripped/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


 >  Also, there are three copies of lua floating about - the one in base,
 >  the one that gets buildlinked, and the one that nmap includes in its
 >  distfile. If it's using some of the files from one copy and some from
 >  another that could cause all manner of strangeness...

 For the record, the build process reports:

   => Full dependency lua52>=5.2.0<5.3: found lua52-5.2.4nb1

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51715: net/nmap build fails
Date: Wed, 14 Dec 2016 18:16:28 +0000

 On Wed, Dec 14, 2016 at 12:35:00PM +0000, John D. Baker wrote:
  >  The corresponding entry in "${WRKOBJDIR}/net/nmap/work/.work.log" is:
  >  
  >  [...]

 nothing particularly enlightening in that, I'm afraid...

  >  >  Also, there are three copies of lua floating about - the one in base,
  >  >  the one that gets buildlinked, and the one that nmap includes in its
  >  >  distfile. If it's using some of the files from one copy and some from
  >  >  another that could cause all manner of strangeness...
  >  
  >  For the record, the build process reports:
  >  
  >    => Full dependency lua52>=5.2.0<5.3: found lua52-5.2.4nb1

 Yeah, but there's a copy included with nmap also and it looks like
 it's dying while compiling it.

 A quick look suggests the same thing is happening with liblinear, too...
 (buildlinking it and then using its own copy)

 -- 
 David A. Holland
 dholland@netbsd.org

From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51715: net/nmap build fails
Date: Wed, 14 Dec 2016 23:27:35 +0100

 Hello John,
 can you please also check interesting lines in config.log in WRKSRC
 regarding Lua? (`lua.h' or similar pattern, probably lines that
 matches `/^configure:5847/' RE)


 Thank you!

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51715: net/nmap build fails
Date: Thu, 15 Dec 2016 10:04:43 -0600 (CST)

 On Wed, 14 Dec 2016, Leonardo Taccari wrote:

 >  can you please also check interesting lines in config.log in WRKSRC
 >  regarding Lua? (`lua.h' or similar pattern, probably lines that

 Excerpts around matches for "lua.h":

 [...]
 configure:6720: checking lua5.3/lua.h usability
 configure:6720: gcc -c -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -Wall -I/usr/pkg/include -I$(top_srcdir)/libdnet-stripped/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -I/usr/include conftest.c >&5
 conftest.c:65:24: fatal error: lua5.3/lua.h: No such file or directory
  #include <lua5.3/lua.h>
                         ^
 compilation terminated.
 configure:6720: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME ""
 | #define PACKAGE_TARNAME ""
 | #define PACKAGE_VERSION ""
 | #define PACKAGE_STRING ""
 | #define PACKAGE_BUGREPORT ""
 | #define PACKAGE_URL ""
 | #define NETBSD 1
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_PWD_H 1
 | #define HAVE_TERMIOS_H 1
 | #define HAVE_SYS_SOCKIO_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_SYS_SOCKET_H 1
 | #define HAVE_NET_IF_H 1
 | #define HAVE_OPENSSL 1
 | #define HAVE_SYS_IOCCOM_H 1
 | #define HAVE_SYS_TIME_H 1
 | #define HAVE_NET_BPF_H 1
 | #define HAVE_LIBPCAP 1
 | #define DNET_INCLUDED 1
 | /* end confdefs.h.  */
 | #include <stdio.h>
 | #ifdef HAVE_SYS_TYPES_H
 | # include <sys/types.h>
 | #endif
 | #ifdef HAVE_SYS_STAT_H
 | # include <sys/stat.h>
 | #endif
 | #ifdef STDC_HEADERS
 | # include <stdlib.h>
 | # include <stddef.h>
 | #else
 | # ifdef HAVE_STDLIB_H
 | #  include <stdlib.h>
 | # endif
 | #endif
 | #ifdef HAVE_STRING_H
 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 | #  include <memory.h>
 | # endif
 | # include <string.h>
 | #endif
 | #ifdef HAVE_STRINGS_H
 | # include <strings.h>
 | #endif
 | #ifdef HAVE_INTTYPES_H
 | # include <inttypes.h>
 | #endif
 | #ifdef HAVE_STDINT_H
 | # include <stdint.h>
 | #endif
 | #ifdef HAVE_UNISTD_H
 | # include <unistd.h>
 | #endif
 | #include <lua5.3/lua.h>
 configure:6720: result: no
 configure:6720: checking lua5.3/lua.h presence
 configure:6720: gcc -E -I/usr/pkg/include -I$(top_srcdir)/libdnet-stripped/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -I/usr/include conftest.c
 conftest.c:32:24: fatal error: lua5.3/lua.h: No such file or directory
  #include <lua5.3/lua.h>
                         ^
 compilation terminated.
 configure:6720: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME ""
 | #define PACKAGE_TARNAME ""
 | #define PACKAGE_VERSION ""
 | #define PACKAGE_STRING ""
 | #define PACKAGE_BUGREPORT ""
 | #define PACKAGE_URL ""
 | #define NETBSD 1
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_PWD_H 1
 | #define HAVE_TERMIOS_H 1
 | #define HAVE_SYS_SOCKIO_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_SYS_SOCKET_H 1
 | #define HAVE_NET_IF_H 1
 | #define HAVE_OPENSSL 1
 | #define HAVE_SYS_IOCCOM_H 1
 | #define HAVE_SYS_TIME_H 1
 | #define HAVE_NET_BPF_H 1
 | #define HAVE_LIBPCAP 1
 | #define DNET_INCLUDED 1
 | /* end confdefs.h.  */
 | #include <lua5.3/lua.h>
 configure:6720: result: no
 configure:6720: checking for lua5.3/lua.h
 configure:6720: result: no
 configure:6720: checking lua/5.3/lua.h usability
 configure:6720: gcc -c -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -Wall -I/usr/pkg/include -I$(top_srcdir)/libdnet-stripped/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -I/usr/include conftest.c >&5
 conftest.c:65:25: fatal error: lua/5.3/lua.h: No such file or directory
  #include <lua/5.3/lua.h>
                          ^
 compilation terminated.
 configure:6720: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME ""
 | #define PACKAGE_TARNAME ""
 | #define PACKAGE_VERSION ""
 | #define PACKAGE_STRING ""
 | #define PACKAGE_BUGREPORT ""
 | #define PACKAGE_URL ""
 | #define NETBSD 1
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_PWD_H 1
 | #define HAVE_TERMIOS_H 1
 | #define HAVE_SYS_SOCKIO_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_SYS_SOCKET_H 1
 | #define HAVE_NET_IF_H 1
 | #define HAVE_OPENSSL 1
 | #define HAVE_SYS_IOCCOM_H 1
 | #define HAVE_SYS_TIME_H 1
 | #define HAVE_NET_BPF_H 1
 | #define HAVE_LIBPCAP 1
 | #define DNET_INCLUDED 1
 | /* end confdefs.h.  */
 | #include <stdio.h>
 | #ifdef HAVE_SYS_TYPES_H
 | # include <sys/types.h>
 | #endif
 | #ifdef HAVE_SYS_STAT_H
 | # include <sys/stat.h>
 | #endif
 | #ifdef STDC_HEADERS
 | # include <stdlib.h>
 | # include <stddef.h>
 | #else
 | # ifdef HAVE_STDLIB_H
 | #  include <stdlib.h>
 | # endif
 | #endif
 | #ifdef HAVE_STRING_H
 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 | #  include <memory.h>
 | # endif
 | # include <string.h>
 | #endif
 | #ifdef HAVE_STRINGS_H
 | # include <strings.h>
 | #endif
 | #ifdef HAVE_INTTYPES_H
 | # include <inttypes.h>
 | #endif
 | #ifdef HAVE_STDINT_H
 | # include <stdint.h>
 | #endif
 | #ifdef HAVE_UNISTD_H
 | # include <unistd.h>
 | #endif
 | #include <lua/5.3/lua.h>
 configure:6720: result: no
 configure:6720: checking lua/5.3/lua.h presence
 configure:6720: gcc -E -I/usr/pkg/include -I$(top_srcdir)/libdnet-stripped/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -I/usr/include conftest.c
 conftest.c:32:25: fatal error: lua/5.3/lua.h: No such file or directory
  #include <lua/5.3/lua.h>
                          ^
 compilation terminated.
 configure:6720: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME ""
 | #define PACKAGE_TARNAME ""
 | #define PACKAGE_VERSION ""
 | #define PACKAGE_STRING ""
 | #define PACKAGE_BUGREPORT ""
 | #define PACKAGE_URL ""
 | #define NETBSD 1
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_PWD_H 1
 | #define HAVE_TERMIOS_H 1
 | #define HAVE_SYS_SOCKIO_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_SYS_SOCKET_H 1
 | #define HAVE_NET_IF_H 1
 | #define HAVE_OPENSSL 1
 | #define HAVE_SYS_IOCCOM_H 1
 | #define HAVE_SYS_TIME_H 1
 | #define HAVE_NET_BPF_H 1
 | #define HAVE_LIBPCAP 1
 | #define DNET_INCLUDED 1
 | /* end confdefs.h.  */
 | #include <lua/5.3/lua.h>
 configure:6720: result: no
 configure:6720: checking for lua/5.3/lua.h
 configure:6720: result: no
 configure:6720: checking lua.h usability
 configure:6720: gcc -c -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -Wall -I/usr/pkg/include -I$(top_srcdir)/libdnet-stripped/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -I/usr/include conftest.c >&5
 configure:6720: $? = 0
 configure:6720: result: yes
 configure:6720: checking lua.h presence
 configure:6720: gcc -E -I/usr/pkg/include -I$(top_srcdir)/libdnet-stripped/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -I/usr/include conftest.c
 configure:6720: $? = 0
 configure:6720: result: yes
 configure:6720: checking for lua.h
 configure:6720: result: yes
 [...]
 configure:6720: checking lua/lua.h usability
 configure:6720: gcc -c -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -Wall -I/usr/pkg/include -I$(top_srcdir)/libdnet-stripped/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -I/usr/include conftest.c >&5
 conftest.c:66:21: fatal error: lua/lua.h: No such file or directory
  #include <lua/lua.h>
                      ^
 compilation terminated.
 configure:6720: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME ""
 | #define PACKAGE_TARNAME ""
 | #define PACKAGE_VERSION ""
 | #define PACKAGE_STRING ""
 | #define PACKAGE_BUGREPORT ""
 | #define PACKAGE_URL ""
 | #define NETBSD 1
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_PWD_H 1
 | #define HAVE_TERMIOS_H 1
 | #define HAVE_SYS_SOCKIO_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_SYS_SOCKET_H 1
 | #define HAVE_NET_IF_H 1
 | #define HAVE_OPENSSL 1
 | #define HAVE_SYS_IOCCOM_H 1
 | #define HAVE_SYS_TIME_H 1
 | #define HAVE_NET_BPF_H 1
 | #define HAVE_LIBPCAP 1
 | #define DNET_INCLUDED 1
 | #define HAVE_LUA_H 1
 | /* end confdefs.h.  */
 | #include <stdio.h>
 | #ifdef HAVE_SYS_TYPES_H
 | # include <sys/types.h>
 | #endif
 | #ifdef HAVE_SYS_STAT_H
 | # include <sys/stat.h>
 | #endif
 | #ifdef STDC_HEADERS
 | # include <stdlib.h>
 | # include <stddef.h>
 | #else
 | # ifdef HAVE_STDLIB_H
 | #  include <stdlib.h>
 | # endif
 | #endif
 | #ifdef HAVE_STRING_H
 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 | #  include <memory.h>
 | # endif
 | # include <string.h>
 | #endif
 | #ifdef HAVE_STRINGS_H
 | # include <strings.h>
 | #endif
 | #ifdef HAVE_INTTYPES_H
 | # include <inttypes.h>
 | #endif
 | #ifdef HAVE_STDINT_H
 | # include <stdint.h>
 | #endif
 | #ifdef HAVE_UNISTD_H
 | # include <unistd.h>
 | #endif
 | #include <lua/lua.h>
 configure:6720: result: no
 configure:6720: checking lua/lua.h presence
 configure:6720: gcc -E -I/usr/pkg/include -I$(top_srcdir)/libdnet-stripped/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -I/usr/include conftest.c
 conftest.c:33:21: fatal error: lua/lua.h: No such file or directory
  #include <lua/lua.h>
                      ^
 compilation terminated.
 configure:6720: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME ""
 | #define PACKAGE_TARNAME ""
 | #define PACKAGE_VERSION ""
 | #define PACKAGE_STRING ""
 | #define PACKAGE_BUGREPORT ""
 | #define PACKAGE_URL ""
 | #define NETBSD 1
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_PWD_H 1
 | #define HAVE_TERMIOS_H 1
 | #define HAVE_SYS_SOCKIO_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_SYS_SOCKET_H 1
 | #define HAVE_NET_IF_H 1
 | #define HAVE_OPENSSL 1
 | #define HAVE_SYS_IOCCOM_H 1
 | #define HAVE_SYS_TIME_H 1
 | #define HAVE_NET_BPF_H 1
 | #define HAVE_LIBPCAP 1
 | #define DNET_INCLUDED 1
 | #define HAVE_LUA_H 1
 | /* end confdefs.h.  */
 | #include <lua/lua.h>
 configure:6720: result: no
 configure:6720: checking for lua/lua.h
 configure:6720: result: no
 [...]


 >  matches `/^configure:5847/' RE)

 No matches to the above RE.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51715: net/nmap build fails
Date: Mon, 3 Apr 2017 11:29:33 -0500 (CDT)

 As of pkgsrc-2017Q1, the failure reported in this PR still occurs on
 NetBSD/i386-7.1_STABLE.

 $ uname -a
 NetBSD verthandi.technoskunk.fur 7.1_STABLE NetBSD 7.1_STABLE (VERTHANDI) #15: Mon Mar 27 16:02:01 CDT 2017  sysop@x3650.technoskunk.fur:/r1/build/netbsd-7/obj/i386/sys/arch/i386/compile/VERTHANDI i386

 [...]
 Compiling liblua
 gmake[1]: Entering directory '/d0/build/pkgsrc/net/nmap/work/nmap-7.40/liblua'
 gcc -O2 -Wall -Wextra -DLUA_COMPAT_5_2  -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -Wall   -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I/usr/pkg/include -I./liblua -I/usr/pkg/include -I./libdnet-stripped/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/include/lua-5.2 -I/usr/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"https://nmap.org\" -DNMAP_PLATFORM=\"i486--netbsdelf\" -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;
  ^
 <builtin>: recipe for target 'lapi.o' failed
 gmake[1]: *** [lapi.o] Error 1
 gmake[1]: Leaving directory '/d0/build/pkgsrc/net/nmap/work/nmap-7.40/liblua'
 Makefile:149: recipe for target 'build-lua' failed
 gmake: *** [build-lua] Error 2
 [...]

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51715: net/nmap build fails
Date: Mon, 3 Apr 2017 11:48:51 -0500 (CDT)

 On Mon, 3 Apr 2017, John D. Baker wrote:
 > As of pkgsrc-2017Q1, the failure reported in this PR still occurs on
 > NetBSD/i386-7.1_STABLE.

 It also still occurs on NetBSD/amd64-7.1_STABLE:

 $ uname -a
 NetBSD x3650.technoskunk.fur 7.1_STABLE NetBSD 7.1_STABLE (RACKMOUNT) #15: Mon Mar 27 17:13:43 CDT 2017  sysop@x3650.technoskunk.fur:/r1/build/netbsd-7/obj/amd64/sys/arch/amd64/compile/RACKMOUNT amd64


 Again, this is with the "lua" option.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

Responsible-Changed-From-To: pkg-manager->pettai
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 03 Apr 2017 20:41:32 +0000
Responsible-Changed-Why:
Over to maintainer


State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Tue, 18 Sep 2018 12:58:08 +0000
State-Changed-Why:
I think that this problem was later reported and fixed as PR pkg/52624
and the following commit fixes it (JFTR):

 cvs rdiff -u -r1.136 -r1.137 pkgsrc/net/nmap/Makefile
 cvs rdiff -u -r1.18 -r1.19 pkgsrc/net/nmap/options.mk

John, can you please let us know if it is now fixed?


Thank you!


Responsible-Changed-From-To: pettai->leot
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Tue, 18 Sep 2018 13:41:02 +0000
Responsible-Changed-Why:
Take (probably same problem of PR pkg/52624)


From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51715 (net/nmap build fails)
Date: Tue, 18 Sep 2018 09:02:23 -0500 (CDT)

 On Tue, 18 Sep 2018, leot@NetBSD.org wrote:

 > State-Changed-From-To: open->feedback
 > State-Changed-By: leot@NetBSD.org
 > State-Changed-When: Tue, 18 Sep 2018 12:58:08 +0000
 > State-Changed-Why:
 > I think that this problem was later reported and fixed as PR pkg/52624
 > and the following commit fixes it (JFTR):
 > 
 >  cvs rdiff -u -r1.136 -r1.137 pkgsrc/net/nmap/Makefile
 >  cvs rdiff -u -r1.18 -r1.19 pkgsrc/net/nmap/options.mk
 > 
 > John, can you please let us know if it is now fixed?

 I do not know if it is fixed.  It might have been, but I don't remember
 as I soon thereafter updated my remaining netbsd-7 systems to netbsd-8
 which never had the problem.

 Unless someone else builds nmap w/lua option on netbsd-7 and sees this,
 the PR can be closed.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

State-Changed-From-To: feedback->closed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Tue, 18 Sep 2018 14:46:25 +0000
State-Changed-Why:
This should be fixed by:

 cvs rdiff -u -r1.136 -r1.137 pkgsrc/net/nmap/Makefile
 cvs rdiff -u -r1.18 -r1.19 pkgsrc/net/nmap/options.mk

that were committed as part of a fix for PR pkg/52624.

Double-checking the error logs they failed in the same
way in PR pkg/52624 and the patch were tested on
NetBSD 7.1.

Thank you John for the PR and feedbacks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.