Subject: pkg/29056: firewalk's configure can't find libnet_build_ip with libnet11
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <diro@nixsys.bz>
List: pkgsrc-bugs
Date: 01/23/2005 20:36:00
>Number:         29056
>Category:       pkg
>Synopsis:       firewalk's configure can't find libnet_build_ip with libnet11
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 23 20:36:00 +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: