Subject: pkg/28721: net/arping doesn't compile from pkgsrc
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Wouter Schoot <ascent@schoot.org>
List: pkgsrc-bugs
Date: 12/20/2004 09:24:00
>Number:         28721
>Category:       pkg
>Synopsis:       net/arping doesn't compile from pkgsrc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 20 09:24:00 +0000 2004
>Originator:     Wouter Schoot <ascent@schoot.org>
>Release:        NetBSD 2.0
>Organization:

>Environment:
	
	
System: NetBSD ascent 2.0 NetBSD 2.0 (ASCENT) #2: Tue Dec 14 11:46:48 CET 2004 root@ascent:/usr/obj/sys/arch/amd64/compile/ASCENT amd64
Architecture: x86_64
Machine: amd64
>Description:
arping doesn't compile, it misses some lnet thingie.

Script started on Mon Dec 20 10:21:42 2004
[root@ascent /usr/pkgsrc/net/arping]# make
===> Checking for vulnerabilities in arping-2.01nb1
=> Checksum OK for arping-2.01.tar.gz.
===> Extracting for arping-2.01nb1
===> Required installed package libnet>=1.0.1bnb4: libnet-1.0.1bnb4 found
===> Patching for arping-2.01nb1
===> Applying pkgsrc patches for arping-2.01nb1
===> Overriding tools for arping-2.01nb1
===> Creating toolchain wrappers for arping-2.01nb1
===> Building for arping-2.01nb1
/usr/bin/make OPENBSD=1 arping1-make
cc -Wall -I/include -L/lib -DFINDIF=1 -DUSE_NETIF=0 -DOPENBSD=1 -DLINUX=0 -DSOLARIS=0 -DFREEBSD=0 -DMACOSX=0 -c `libnet-config --defines` `libnet-config --cflags` arping.c
arping.c: In function `main':
arping.c:713: warning: assignment discards qualifiers from pointer target type
arping.c:715: warning: assignment discards qualifiers from pointer target type
cc -I/include -L/lib -DFINDIF=1 -DUSE_NETIF=0 -DOPENBSD=1 -DLINUX=0 -DSOLARIS=0 -DFREEBSD=0 -DMACOSX=0 -o arping arping.o `libnet-config --libs` -lpcap
ld: cannot find -lnet
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/arping/work/arping-2.01
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/arping/work/arping-2.01
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/arping
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/arping
[root@ascent /usr/pkgsrc/net/arping]# 
Script done on Mon Dec 20 10:21:46 2004

libnet is installed:
[ascent@ascent /home/ascent]$ pkg_info | grep libn
libnet-1.0.1bnb4    C library for portable packet creation and injection

>How-To-Repeat:
cd /usr/pkgsrc/net/arping; make
>Fix:
	

>Unformatted: