NetBSD Problem Report #61049

From tyto@farpointstation.net  Mon Nov 23 02:37:11 2026
Return-Path: <tyto@farpointstation.net>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 7847C1A923B
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 23 Nov 2026 02:37:11 +0000 (UTC)
Message-Id: <20261123023707.41AE210AA2C9@persephone.farpointstation.net>
Date: Sun, 22 Nov 2026 21:37:07 -0500 (EST)
From: tyto@farpointstation.net
Reply-To: tyto@farpointstation.net
To: gnats-bugs@NetBSD.org
Subject: arp-scan fails to build with fix
X-Send-Pr-Version: 3.95
X-From4GNATS: "tyto@farpointstation.net via gnats" <gnats-admin@NetBSD.org>

>Number:         61049
>Category:       pkg
>Synopsis:       initial build fails for missing lib and ints
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 23 02:40:00 +0000 2026
>Closed-Date:    Mon Nov 23 08:10:56 +0000 2026
>Last-Modified:  Mon Nov 23 08:15:01 +0000 2026
>Originator:     Tyto Strix
>Release:        NetBSD 11.99.11
>Organization:
just a user
>Environment:
System: NetBSD persephone.farpointstation.net 11.99.11 NetBSD 11.99.11 (PERSEPHONE) #2: Wed Nov 11 18:02:22 EST 2026 tyto@persephone.farpointstation.net:/usr/obj/sys/arch/amd64/compile/PERSEPHONE amd64
Architecture: x86_64
Machine: amd64
>Description:
The generated configure script does not specify stdlib.h inclusion 
for two tests using the exit() function, and has several implicit 
ints as well.  There was an existing patch file already, I appended 
my fix to that, hope that's ok.
>How-To-Repeat:
cd /usr/pkgsrc/net/arp-scan && bmake
>Fix:
patch-configure_new:

--- configure-p1	2026-11-22 18:26:29.029707232 -0500
+++ configure	2026-11-22 18:50:31.754278675 -0500
@@ -3830,7 +3830,7 @@ else
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     echo $ssp_cc
-    if test "X$ssp_cc" = "Xno"; then
+    if true; then
       CFLAGS="$ssp_old_cflags"
     else

@@ -4914,6 +4914,8 @@
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
+#include <stdlib.h>
+
 typedef long int int64;

 /*
@@ -4937,7 +4939,7 @@
     return 0;
   return 1;
 }
-main() {
+int main() {
   exit(! does_int64_work());
 }
 _ACEOF
@@ -4997,6 +4999,8 @@
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
+#include <stdlib.h>
+
 typedef long long int int64;

 /*
@@ -5020,7 +5024,7 @@
     return 0;
   return 1;
 }
-main() {
+int main() {
   exit(! does_int64_work());
 }
 _ACEOF
@@ -5096,7 +5100,7 @@
     return 0;			/* either multiply or snprintf is busted */
   return 1;
 }
-main() {
+int main() {
   exit(! does_int64_snprintf_work());
 }
 _ACEOF

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Mon, 23 Nov 2026 08:10:56 +0000
State-Changed-Why:
Fixed, thanks!


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/61049 CVS commit: pkgsrc/net/arp-scan
Date: Mon, 23 Nov 2026 08:10:37 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Mon Nov 23 08:10:37 UTC 2026

 Modified Files:
 	pkgsrc/net/arp-scan: distinfo
 	pkgsrc/net/arp-scan/patches: patch-configure

 Log Message:
 arp-scan: fix build with on -current

 From Tyto Strix in PR 61049.


 To generate a diff of this commit:
 cvs rdiff -u -r1.7 -r1.8 pkgsrc/net/arp-scan/distinfo
 cvs rdiff -u -r1.3 -r1.4 pkgsrc/net/arp-scan/patches/patch-configure

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.