Subject: pkg/37111: "libpcap" package can't be built under NetBSD 4.0_RC1
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <tron@zhadum.org.uk>
List: pkgsrc-bugs
Date: 10/12/2007 09:10:00
>Number:         37111
>Category:       pkg
>Synopsis:       "libpcap" package can't be built under NetBSD 4.0_RC1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 12 09:10:00 +0000 2007
>Originator:     Matthias Scheler
>Release:        NetBSD 4.0_RC1
>Organization:
Matthias Scheler                                  http://zhadum.org.uk/
>Environment:
System: NetBSD colwyn.zhadum.org.uk 4.0_RC1 NetBSD 4.0_RC1 (COLWYN) #0: Sat Sep 1 17:11:12 BST 2007 tron@colwyn.zhadum.org.uk:/export/home/tron/obj/sys/arch/i386/compile/COLWYN i386
Architecture: i386
Machine: i386
>Description:
Building the latest version of the "libpcap" package fails under
at least NetBSD 4.0_RC1:

===> Building for libpcap-0.9.8
[...]
libtool  --mode=compile cc -O2 -O2 -march=pentium3 -I. -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./gencode.c
 cc -O2 -O2 -march=pentium3 -I. -DHAVE_CONFIG_H "-D_U_=__attribute__((unused))" -c ./gencode.c  -fPIC -DPIC -o .libs/gencode.o
./gencode.c:80:26: error: net/if_pflog.h: No such file or directory
./gencode.c: In function 'init_linktype':
./gencode.c:1186: error: 'PFLOG_HDRLEN' undeclared (first use in this function)
./gencode.c:1186: error: (Each undeclared identifier is reported only once
./gencode.c:1186: error: for each function it appears in.)
./gencode.c: In function 'gen_linktype':
./gencode.c:2442: error: dereferencing pointer to incomplete type
./gencode.c:2446: error: dereferencing pointer to incomplete type
./gencode.c: In function 'gen_inbound':
./gencode.c:6387: error: dereferencing pointer to incomplete type
./gencode.c: In function 'gen_pf_ifname':
./gencode.c:6447: error: dereferencing pointer to incomplete type
./gencode.c:6448: error: dereferencing pointer to incomplete type
./gencode.c: In function 'gen_pf_ruleset':
./gencode.c:6472: error: dereferencing pointer to incomplete type
./gencode.c:6474: error: dereferencing pointer to incomplete type
./gencode.c:6477: error: dereferencing pointer to incomplete type
./gencode.c: In function 'gen_pf_rnr':
./gencode.c:6489: error: dereferencing pointer to incomplete type
./gencode.c: In function 'gen_pf_srnr':
./gencode.c:6510: error: dereferencing pointer to incomplete type
./gencode.c: In function 'gen_pf_reason':
./gencode.c:6522: error: dereferencing pointer to incomplete type
./gencode.c: In function 'gen_pf_action':
./gencode.c:6539: error: dereferencing pointer to incomplete type
*** Error code 1

Stop.

The reason is that NetBSD 4.0_RC2 doesn't install "net/if_pflog.h"
while NetBSD-current does.

>How-To-Repeat:
cd pkgsrc/net/libpcap
make

>Fix:
None provided.