Opened 15 years ago

Closed 14 years ago

#23135 closed defect (worksforme)

iftop-0.17 Configure error - build failure

Reported by: joel@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: configure pcap pcap_open_live Cc:
Port: iftop

Description

When I try to install the "iftop" port I get the following error:

mymac:~$ sudo port install iftop
--->  Computing dependencies for iftop
--->  Configuring iftop
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_iftop/work/iftop-0.17" && ./configure --prefix=/opt/local --with-libpcap=/opt/local --mandir=/opt/local/share/man " returned error 1
Command output: 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
configure: WARNING: using single-threaded resolver with gethostbyaddr
  Consider obtaining ARES or a machine with a working gethostbyaddr_r.
checking where to find pcap.h... /include
checking for pcap_open_live in -lpcap... no
configure: error: can't find libpcap
  You're not going to get very far without libpcap.

Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.
mymac:~$ 

If I manually run the shell commands shown in the error above:

--->  Configuring iftop
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_iftop/work/iftop-0.17" && ./configure --prefix=/opt/local --with-libpcap=/opt/local --mandir=/opt/local/share/man " returned error 1

1- cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_iftop/work/iftop-0.17"
2- ./configure --prefix=/opt/local --with-libpcap=/opt/local --mandir=/opt/local/share/man

There are no errors:

mymac:~$  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_iftop/work/iftop-0.17"
mymac:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_iftop/work/iftop-0.17$ sudo ./configure --prefix=/opt/local --with-libpcap=/opt/local --mandir=/opt/local/share/man 
checking build system type... i386-apple-darwin10.2.0
checking host system type... i386-apple-darwin10.2.0
checking target system type... i386-apple-darwin10.2.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
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 accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -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 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
configure: WARNING: using single-threaded resolver with gethostbyaddr
  Consider obtaining ARES or a machine with a working gethostbyaddr_r.
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... -lncurses
checking POSIX threads compilation... CFLAGS= and LIBS=
checking POSIX threads usability... yes
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: config.h is unchanged
config.status: executing depfiles commands
mymac:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_iftop/work/iftop-0.17$ 

Am I doing anything wrong? Maybe I'm missing something...? Why doesn't it build?

Change History (1)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

Can't reproduce this.

Note: See TracTickets for help on using tickets.