Subject: pkg/32332: net/sniffit doesn't build on amd64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Wouter Schoot <ascent@schoot.org>
List: pkgsrc-bugs
Date: 12/18/2005 21:05:00
>Number:         32332
>Category:       pkg
>Synopsis:       net/sniffit doesn't build on amd64
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 18 21:05:00 +0000 2005
>Originator:     Wouter Schoot <ascent@schoot.org>
>Release:        NetBSD 2.0
>Organization:

>Environment:
	
	
System: NetBSD ascent.student.utwente.nl 2.0 NetBSD 2.0 (ASCENT) #5: Tue May 3 00:13:56 CEST 2005 root@ascent:/usr/obj/sys/arch/amd64/compile/ASCENT amd64
Architecture: x86_64
Machine: amd64
>Description:
	

Script started on Sun Dec 18 22:01:29 2005
ascent# make
===> Checking for vulnerabilities in sniffit-0.3.5nb2
=> Checksum SHA1 OK for sniffit.0.3.5.tar.gz.
=> Checksum RMD160 OK for sniffit.0.3.5.tar.gz.
===> Extracting for sniffit-0.3.5nb2
===> Patching for sniffit-0.3.5nb2
===> Applying pkgsrc patches for sniffit-0.3.5nb2
===> Overriding tools for sniffit-0.3.5nb2
===> Creating toolchain wrappers for sniffit-0.3.5nb2
===> Configuring for sniffit-0.3.5nb2
creating cache ./config.cache
checking for gcc... cc
checking whether the C compiler (cc -O2 -I/usr/include -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib) works... yes
checking whether the C compiler (cc -O2 -I/usr/include -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for main in -lncurses... yes
checking for ncurses.h... no
checking for shmget... yes
checking for atexit... yes
checking size of unsigned short int... 2
checking size of unsigned long int... 8
checking host system type... x86_64--netbsd
checking target system type... x86_64--netbsd
checking build system type... x86_64--netbsd
updating cache ./config.cache
creating ./config.status
creating Makefile
configuring in libpcap-0.3
running /bin/sh ./configure  --prefix=/usr/pkg --host=x86_64--netbsd --mandir=/usr/pkg/man --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking host system type... x86_64--netbsd
checking target system type... x86_64--netbsd
checking build system type... x86_64--netbsd
checking for gcc... (cached) cc
checking whether the C compiler (cc -O2 -I/usr/include -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib) works... yes
checking whether the C compiler (cc -O2 -I/usr/include -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether cc accepts -g... (cached) yes
checking gcc version... 
test: 1: unexpected operator
checking how to run the C preprocessor... cc -E
checking for malloc.h... yes
checking for sys/ioccom.h... yes
checking for sys/sockio.h... yes
checking if fixincludes is needed... yes
checking for ether_hostton... yes
checking for strerror... yes
checking packet capture type... bpf
checking for flex... flex
checking for flex 2.4 or higher... yes
checking for bison... bison
checking for ranlib... ranlib
checking if sockaddr struct has sa_len member... yes
checking if unaligned accesses fail... no
rm: net: is a directory
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
updating cache .././config.cache
creating ./config.status
creating Makefile
===> Building for sniffit-0.3.5nb2
cc -w -O2 -c  sn_packets.c  -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DNETBSD=1
cc -w -O2 -c  sn_generation.c  -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DNETBSD=1
cc -w -O2 -c  sn_interface.c  -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DNETBSD=1
cc -w -O2 -c sn_cfgfile.c  -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DNETBSD=1
cc -w -O2 -c  sn_logfile.c  -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DNETBSD=1
cc -w -O2 -o sniffit sniffit.0.3.5.c sn_packets.o sn_generation.o sn_interface.o sn_cfgfile.o  sn_logfile.o -lpcap -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -lncurses -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DNETBSD=1 
In file included from sniffit.0.3.5.c:28:
sn_data.h:58:2: #error Unknown network devices for this NetBSD architecture.
sniffit.0.3.5.c: In function `main':
sniffit.0.3.5.c:1497: error: `ETH_DEV_NR' undeclared (first use in this function)
sniffit.0.3.5.c:1497: error: (Each undeclared identifier is reported only once
sniffit.0.3.5.c:1497: error: for each function it appears in.)
sniffit.0.3.5.c:1499: error: `ETH_DEV' undeclared (first use in this function)
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/sniffit/work/sniffit.0.3.5
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/sniffit
===> 
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkgsrc/net/sniffit/work/.work.log
===> 
*** Error code 1

ifconfig -a gives: 
ex0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
        enabled=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
        address: 00:01:02:af:4a:b4
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 130.89.162.142 netmask 0xffffe000 broadcast 130.89.191.255
        inet alias 130.89.169.130 netmask 0xffffe000 broadcast 130.89.191.255
        inet alias 130.89.168.155 netmask 0xffffe000 broadcast 130.89.191.255
        inet6 fe80::201:2ff:feaf:4ab4%ex0 prefixlen 64 scopeid 0x1
        inet6 2001:610:1908:8000:201:2ff:feaf:4ab4 prefixlen 64
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:90:27:fd:73:dc
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
        inet alias 10.0.0.138 netmask 0xffffff00 broadcast 10.0.0.255
        inet6 fe80::290:27ff:fefd:73dc%fxp0 prefixlen 64 scopeid 0x2
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33648
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
sl1: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296


Stop.
make: stopped in /usr/pkgsrc/net/sniffit
ascent# 
Script done on Sun Dec 18 22:01:38 2005
>How-To-Repeat:
	
>Fix:
	
Sorry, none.

>Unformatted: