Ethereal-dev: Re: [Ethereal-dev] 0.10.2 build failure on Mac OS X: this is really weird ...

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

Date: Mon, 1 Mar 2004 01:55:59 -0800

Okay ... sorry to response to my own post, but the issue seems to be that 0.10.2 assumes you have pcap_if_t if you have pcap_findalldevs, a sane assumption from my reading of the libpcap-0.8.1 headers. However, OS X 10.3.2 ships with a weird version of libpcap that includes pcap_findalldevs, but no definition for pcap_if_t.

Does anybody have a favorite workaround? I've reported this to the darwin-development list.

-peter

On Mar 1, 2004, at 1:01 AM, downtime@xxxxxxxxxxxx wrote:
... I'm not missing anything I know of, but the build fails during pcap-util.c, because pcap_if_t is undefined.

source='pcap-util.c' object='pcap-util.o' libtool=no \
depfile='.deps/pcap-util.Po' tmpdepfile='.deps/pcap-util.TPo' \
depmode=gcc3 /bin/sh ./depcomp \
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 -I/usr/X11R6/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)
... /* many more useless error messages */
make[2]: *** [pcap-util.o] Error 1
make[1]: *** [all-recursive] Error 1

Moreover, I can't find the pcap_if_t definition, in /usr/include, in Apple's libpcap sources, or in the tcpdump.org tcpdump-0.6.2 tarball (this is the version OS X 10.3.2 uses) or in the ethereal soures.

Where can I find pcap_if_t?

Please pardon any possible operator error, and please don't hesitate to let me know if this sort of traffic should be on another list.

-peter

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev