Subject: Error compiling iftop on OS X
To: None <pkgsrc-users@NetBSD.org>
From: Philipp Riegger <lists@anderedomain.de>
List: pkgsrc-users
Date: 03/06/2006 14:31:02
Hi there.

I got an error compiling iftop on OSX:

<quote>
===> Checking for vulnerabilities in iftop-0.16nb1
=> Checksum SHA1 OK for iftop-0.16.tar.gz.
=> Checksum RMD160 OK for iftop-0.16.tar.gz.
===> Extracting for iftop-0.16nb1
===> Patching for iftop-0.16nb1
===> Overriding tools for iftop-0.16nb1
===> Creating toolchain wrappers for iftop-0.16nb1
===> Configuring for iftop-0.16nb1
configure: WARNING: If you wanted to set the --build type, don't use  
--host.
     If a cross compiler is detected then cross compile mode will be  
used.
checking build system type... powerpc-apple-darwin8.5.0
checking host system type... powerpc-apple-darwin
checking target system type... powerpc-apple-darwin
checking for a BSD-compatible install... /usr/bin/install -c -o root - 
g wheel
checking whether build environment is sane... yes
checking for gawk... /usr/bin/awk
checking whether make sets ${MAKE}... yes
checking for powerpc-apple-darwin-strip... no
checking for strip... strip
checking for powerpc-apple-darwin-gcc... gcc -pipe
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -pipe accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc -pipe... gcc3
checking how to run the C preprocessor... gcc -pipe -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking for unistd.h... (cached) yes
checking for gcc -pipe option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking sys/dlpi.h usability... no
checking sys/dlpi.h presence... no
checking for sys/dlpi.h... no
checking for regcomp... yes
checking for select... yes
checking for strdup... yes
checking for strerror... yes
checking for strspn... yes
checking for library containing socket... none required
checking for library containing log... none required
checking for gethostbyname... yes
checking for library containing inet_aton... none required
checking for library containing inet_pton... none required
checking for inet_aton... yes
checking for inet_pton... yes
checking size of u_int8_t... 1
checking size of u_int16_t... 2
checking size of u_int32_t... 4
checking for library containing getnameinfo... none required
checking for library containing gethostbyaddr_r... no
checking for library containing gethostbyaddr... none required
checking where to find pcap.h... /include
checking for pcap_open_live in -lpcap... yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for a curses library containing mvchgat... -lcurses
checking how to compile a working program with POSIX threads...
checking if we need to enable promiscuous mode by default... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config.h
config.status: executing depfiles commands
===> Building for iftop-0.16nb1
/usr/pkg/bin/bmake  all-recursive
Making all in config
source='addr_hash.c' object='addr_hash.o' libtool=no  depfile='.deps/ 
addr_hash.Po' tmpdepfile='.deps/addr_hash.TPo'  depmode=gcc3 /bin/ 
sh ./config/depcomp  gcc -pipe -DHAVE_CONFIG_H -I. -I. -I.    -no-cpp- 
precomp -I/usr/include  -mcpu=7450 -O2 -pipe -maltivec -mabi=altivec - 
mpowerpc-gfxopt -I/usr/pkg/include -I/usr/X11R6/include -I/usr/ 
include -c `test -f 'addr_hash.c' || echo './'`addr_hash.c
source='edline.c' object='edline.o' libtool=no  depfile='.deps/ 
edline.Po' tmpdepfile='.deps/edline.TPo'  depmode=gcc3 /bin/sh ./ 
config/depcomp  gcc -pipe -DHAVE_CONFIG_H -I. -I. -I.    -no-cpp- 
precomp -I/usr/include  -mcpu=7450 -O2 -pipe -maltivec -mabi=altivec - 
mpowerpc-gfxopt -I/usr/pkg/include -I/usr/X11R6/include -I/usr/ 
include -c `test -f 'edline.c' || echo './'`edline.c
source='hash.c' object='hash.o' libtool=no  depfile='.deps/hash.Po'  
tmpdepfile='.deps/hash.TPo'  depmode=gcc3 /bin/sh ./config/depcomp   
gcc -pipe -DHAVE_CONFIG_H -I. -I. -I.    -no-cpp-precomp -I/usr/ 
include  -mcpu=7450 -O2 -pipe -maltivec -mabi=altivec -mpowerpc- 
gfxopt -I/usr/pkg/include -I/usr/X11R6/include -I/usr/include -c  
`test -f 'hash.c' || echo './'`hash.c
source='iftop.c' object='iftop.o' libtool=no  depfile='.deps/ 
iftop.Po' tmpdepfile='.deps/iftop.TPo'  depmode=gcc3 /bin/sh ./config/ 
depcomp  gcc -pipe -DHAVE_CONFIG_H -I. -I. -I.    -no-cpp-precomp -I/ 
usr/include  -mcpu=7450 -O2 -pipe -maltivec -mabi=altivec -mpowerpc- 
gfxopt -I/usr/pkg/include -I/usr/X11R6/include -I/usr/include -c  
`test -f 'iftop.c' || echo './'`iftop.c
source='ns_hash.c' object='ns_hash.o' libtool=no  depfile='.deps/ 
ns_hash.Po' tmpdepfile='.deps/ns_hash.TPo'  depmode=gcc3 /bin/sh ./ 
config/depcomp  gcc -pipe -DHAVE_CONFIG_H -I. -I. -I.    -no-cpp- 
precomp -I/usr/include  -mcpu=7450 -O2 -pipe -maltivec -mabi=altivec - 
mpowerpc-gfxopt -I/usr/pkg/include -I/usr/X11R6/include -I/usr/ 
include -c `test -f 'ns_hash.c' || echo './'`ns_hash.c
source='options.c' object='options.o' libtool=no  depfile='.deps/ 
options.Po' tmpdepfile='.deps/options.TPo'  depmode=gcc3 /bin/sh ./ 
config/depcomp  gcc -pipe -DHAVE_CONFIG_H -I. -I. -I.    -no-cpp- 
precomp -I/usr/include  -mcpu=7450 -O2 -pipe -maltivec -mabi=altivec - 
mpowerpc-gfxopt -I/usr/pkg/include -I/usr/X11R6/include -I/usr/ 
include -c `test -f 'options.c' || echo './'`options.c
source='resolver.c' object='resolver.o' libtool=no  depfile='.deps/ 
resolver.Po' tmpdepfile='.deps/resolver.TPo'  depmode=gcc3 /bin/sh ./ 
config/depcomp  gcc -pipe -DHAVE_CONFIG_H -I. -I. -I.    -no-cpp- 
precomp -I/usr/include  -mcpu=7450 -O2 -pipe -maltivec -mabi=altivec - 
mpowerpc-gfxopt -I/usr/pkg/include -I/usr/X11R6/include -I/usr/ 
include -c `test -f 'resolver.c' || echo './'`resolver.c
resolver.c: In function 'do_resolve':
resolver.c:327: warning: incompatible implicit declaration of built- 
in function '_exit'
resolver.c:344: error: too few arguments to function 'wait'
*** Error code 1

Stop.
bmake: stopped in /tmp/pkgsrc/net/iftop/work/iftop-0.16
*** Error code 1

Stop.
bmake: stopped in /tmp/pkgsrc/net/iftop/work/iftop-0.16
*** Error code 1

Stop.
bmake: stopped in /tmp/pkgsrc/net/iftop/work/iftop-0.16
*** Error code 1

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

Stop.
bmake: stopped in /usr/pkgsrc/net/iftop
</quote>

What can i do?

Philipp