Ethereal-dev: [Ethereal-dev] Problems compiling pcap-util.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Michael Tuexen <Michael.Tuexen@xxxxxxxxxxxxxxxxx>
Date: Tue, 24 Feb 2004 00:56:27 +0100
Dear all,

I have problems compiling pcap-util.c in the current CVS on Mac OS X.

The output:

gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I./wiretap -I/usr/local/include -DINET6 -no-cpp-precomp -D_U_="__attribute__((unused))" -Wall -W -g -O2 -I/usr/local/include -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -c `test -f 'pcap-util.c' || echo './'`pcap-util.c
pcap-util.c: In function `get_interface_list_findalldevs':
pcap-util.c:195: error: `pcap_if_t' undeclared (first use in this function) pcap-util.c:195: error: (Each undeclared identifier is reported only once
pcap-util.c:195: error: for each function it appears in.)
pcap-util.c:195: error: `alldevs' undeclared (first use in this function)
pcap-util.c:195: error: `dev' undeclared (first use in this function)
pcap-util.c:195: warning: left-hand operand of comma expression has no effect pcap-util.c:198: warning: implicit declaration of function `pcap_findalldevs' pcap-util.c:215: warning: implicit declaration of function `pcap_freealldevs'
pcap-util.c: In function `create_data_link_info':
pcap-util.c:253: warning: implicit declaration of function `pcap_datalink_val_to_name' pcap-util.c:253: warning: assignment makes pointer from integer without a cast
pcap-util.c: In function `get_pcap_linktype_list':
pcap-util.c:298: warning: implicit declaration of function `pcap_list_datalinks'
pcap-util.c: In function `set_pcap_linktype':
pcap-util.c:348: warning: implicit declaration of function `pcap_set_datalink'
pcap-util.c:345: warning: unused parameter `devname'
make[2]: *** [pcap-util.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Any hints?

Best regards
Michael