NetBSD Problem Report #29056

From diro@nixsys.bz  Sun Jan 23 20:35:49 2005
Return-Path: <diro@nixsys.bz>
Received: from mail.nixsys.bz (mail.nixsys.bz [216.29.181.195])
	by narn.netbsd.org (Postfix) with ESMTP id 51E9363B843
	for <gnats-bugs@gnats.netbsd.org>; Sun, 23 Jan 2005 20:35:45 +0000 (UTC)
Message-Id: <20050123203409.B44DD27B583@mail.nixsys.bz>
Date: Sun, 23 Jan 2005 20:34:09 +0000 (UTC)
From: diro@nixsys.bz
Reply-To: diro@nixsys.bz
To: gnats-bugs@netbsd.org
Subject: firewalk's configure can't find libnet_build_ip with libnet11
X-Send-Pr-Version: 3.95

>Number:         29056
>Category:       pkg
>Synopsis:       firewalk's configure can't find libnet_build_ip with libnet11
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    adrianp
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 23 20:36:00 +0000 2005
>Closed-Date:    Mon Feb 07 08:24:49 +0000 2005
>Last-Modified:  Mon Feb 07 08:24:49 +0000 2005
>Originator:     diro@nixsys.bz
>Release:        NetBSD 1.6.2
>Organization:
>Environment:
System: NetBSD nixsys 1.6.2 NetBSD 1.6.2 (NIXSYS) #10: Thu Mar 4 22:20:38 EST 2004 root@nixsys:/usr/src/sys/arch/alpha/compile/NIXSYS alpha
Architecture: alpha
Machine: alpha
>Description:

checking for libnet_build_ip in -lnet... no
configure: error: No libnet?  No firewalk.

config.log:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:581: checking host system type
configure:602: checking target system type
configure:620: checking build system type
configure:663: checking for gcc
configure:776: checking whether the C compiler (cc -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib) works
configure:792: cc -o conftest -I/usr/pkg/include -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib conftest.c  1>&5
configure:818: checking whether the C compiler (cc -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib) is a cross-compiler
configure:823: checking whether we are using GNU C
configure:832: cc -E conftest.c
configure:851: checking whether cc accepts -g
configure:883: checking how to run the C preprocessor
configure:904: cc -E -I/usr/pkg/include conftest.c >/dev/null 2>conftest.out
configure:974: checking for a BSD compatible install
configure:1030: checking for libnet_build_ip in -lnet
configure:1049: cc -o conftest -I/usr/pkg/include -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib conftest.c -lnet   1>&5
/var/tmp/ccwquKsX.o(.text+0x18): In function `main':
: undefined reference to `libnet_build_ip'
/var/tmp/ccwquKsX.o(.text+0x1c): In function `main':
: undefined reference to `libnet_build_ip'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1038 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char libnet_build_ip();

int main() {
libnet_build_ip()
; return 0; }

>How-To-Repeat:
	make isic in pkgsrc-current, which requires libnet11. make update after building libnet11 and firewalk will attempt to build, then break. isic seems to work fine with libnet11.
>Fix:


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->adrianp
Responsible-Changed-By: adrianp@netbsd.org
Responsible-Changed-When: Mon, 24 Jan 2005 09:21:16 +0000
Responsible-Changed-Why:
I'll grab this as I did the libnet 1.1.x import


From: Adrian Portelli <adrianp@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/29056 CVS commit: pkgsrc
Date: Fri, 28 Jan 2005 23:35:59 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	adrianp
 Date:		Fri Jan 28 23:35:59 UTC 2005

 Modified Files:
 	pkgsrc/net/LaBrea: Makefile
 	pkgsrc/net/arping: Makefile
 	pkgsrc/net/cdpd: Makefile
 	pkgsrc/net/firewalk: Makefile
 	pkgsrc/net/firewalk-gtk: Makefile
 	pkgsrc/net/libnids: Makefile
 	pkgsrc/net/nemesis: Makefile
 	pkgsrc/net/scdp: Makefile
 	pkgsrc/net/tcptraceroute: Makefile
 	pkgsrc/net/xipdump: Makefile
 	pkgsrc/security/dsniff: Makefile
 	pkgsrc/security/pakemon: Makefile

 Log Message:
 Force all current packages using the libnet 1.0.x tree to use a
 verision of libnet <= 1.0.1b.  This will prevent the case where the user
 has installed the libnet 1.1.x branch and then tries to install an application
 that is not compatible with the 1.1.x tree.

 Over time the list of these applications that require the 1.0.x branch
 will be reduced as they are updated to later versions that support the
 libnet 1.1.x branch.

 This addresses PR# 29056 opened by diro (at) nixsys.bz, thanks for the PR !


 To generate a diff of this commit:
 cvs rdiff -r1.12 -r1.13 pkgsrc/net/LaBrea/Makefile
 cvs rdiff -r1.4 -r1.5 pkgsrc/net/arping/Makefile
 cvs rdiff -r1.7 -r1.8 pkgsrc/net/cdpd/Makefile
 cvs rdiff -r1.6 -r1.7 pkgsrc/net/firewalk/Makefile
 cvs rdiff -r1.9 -r1.10 pkgsrc/net/firewalk-gtk/Makefile
 cvs rdiff -r1.15 -r1.16 pkgsrc/net/libnids/Makefile
 cvs rdiff -r1.6 -r1.7 pkgsrc/net/nemesis/Makefile
 cvs rdiff -r1.2 -r1.3 pkgsrc/net/scdp/Makefile
 cvs rdiff -r1.6 -r1.7 pkgsrc/net/tcptraceroute/Makefile
 cvs rdiff -r1.13 -r1.14 pkgsrc/net/xipdump/Makefile
 cvs rdiff -r1.21 -r1.22 pkgsrc/security/dsniff/Makefile
 cvs rdiff -r1.17 -r1.18 pkgsrc/security/pakemon/Makefile

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

From: Adrian Portelli <adrianp@netbsd.org>
To: 
Cc: gnats-bugs@netbsd.org, diro@nixsys.bz
Subject: Re: pkg/29056
Date: Sat, 29 Jan 2005 00:05:52 +0000

 Hi,

 Could you see if the latest update resolves your issue.  Please note 
 that this will _not_ cause the build of firewalk to work in your 
 specific case.  The current version of firewalk in pkgsrc is only 
 designed for the libnet 1.0.x branch and will not work against the 
 libnet 1.1.x branch.

 The latest changes I have made will cause the package to pull in the 
 libnet 1.0.x package which will ultimately result in a conflict as the 
 two packages (net/libnet with the 1.0.x branch and net/libnet11 with the 
 1.1.x branch) cannot co-exist on the system.

 We are currently in the process of updating a number of applications 
 (firewalk/firewalk-gtk included) to their latest versions which support 
 the libnet 1.1.x branch.

 regards,

 adrian.

From: Adrian Portelli <adrianp@netbsd.org>
To: Timothy Lee Roden <diro@nixsys.bz>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/29056
Date: Tue, 01 Feb 2005 18:04:44 +0000

 Timothy Lee Roden wrote:

 > 
 > 
 > isic pulls in libnet 1.1.x, so when I run `make update` that would nuke isic, rebuild it with the old libnet and start a vicious cycle. Should I just wait until pkgsrc is updated to use the new libnet?
 >  
 > !tr
 > 
 > 

 The issue here is that libnet 1.0.x and 1.1.x in the current incarnation 
 cannot co-exist on the same system at the same time.

 At this point in time the following packages need to be updated to 
 support libnet 1.1.x branch:
 LaBrea
 firewalk
 firewalk-gkt (now obsolete in latest version of libnet)
 tcptraceroute (beta supports 1.1.x)

 The following packages can support both and i'm planning on using the 
 options.mk framework to allow building with the 1.0.x branch or the 
 1.1.x branch:
 arping
 libnids

 The following package currently only work with the libnet 1.0.x branch:
 cdpd
 nemesis
 scdp
 xipdump
 dsniff

 I'll try and make the transition painless but at the end of the day it 
 will be necessary for users to make a choice between the two libnet 
 branches and this will in turn dictate which application can be installed.

 adrian.

From: Adrian Portelli <adrianp@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/29056 CVS commit: pkgsrc/net/firewalk
Date: Sat,  5 Feb 2005 16:57:03 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	adrianp
 Date:		Sat Feb  5 16:57:02 UTC 2005

 Modified Files:
 	pkgsrc/net/firewalk: Makefile PLIST distinfo
 Removed Files:
 	pkgsrc/net/firewalk/patches: patch-aa patch-ab patch-ac patch-ad

 Log Message:
 - Update from firewalk 1.0 to 5.0
 - Use libnet 1.1.x branch
 - No changelog available
 - Addresses PR# 29056


 To generate a diff of this commit:
 cvs rdiff -r1.7 -r1.8 pkgsrc/net/firewalk/Makefile
 cvs rdiff -r1.1 -r1.2 pkgsrc/net/firewalk/PLIST
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/net/firewalk/distinfo
 cvs rdiff -r1.1.1.1 -r0 pkgsrc/net/firewalk/patches/patch-aa \
     pkgsrc/net/firewalk/patches/patch-ab pkgsrc/net/firewalk/patches/patch-ac \
     pkgsrc/net/firewalk/patches/patch-ad

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

From: Adrian Portelli <adrianp@stindustries.net>
To: gnats-bugs@NetBSD.org
Cc: diro@nixsys.bz
Subject: Re: PR/29056 CVS commit: pkgsrc/net/firewalk
Date: Sat, 05 Feb 2005 17:21:47 +0000

 Hi,

 Could you please try updating you pkgsrc src and try to build firewalk 
 again ?

 I've make some updates to the libnet and firewalk packages that should 
 address your issue.

 thanks,

 adrian.

State-Changed-From-To: open->closed
State-Changed-By: adrianp@netbsd.org
State-Changed-When: Mon, 07 Feb 2005 08:24:49 +0000
State-Changed-Why:
With PR# 25955 now closed and the recent libnet changes the user has confirmed that firewalk now builds and installs fine.


>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.