The pcap.h that comes with OS X 10.3.5 does not include the definition of pcap_addr_t. The version of libpcap listed in package.provided is net-libs/libpcap-0.8. I don't know why pcap_addr_t is missing from /usr/include/pcap.h, since it's present in every libpcap I checked since 0.7.1, but it seems to be missing from the OS X version. This is causing the compile to fail on pcal-util.c: if gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I./wiretap -I/usr/local/include -DINET6 -no-cpp-precomp -D_U_="__attribute__((unused))" -Wall -W -O -pipe -I/usr/local/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -MT pcap-util.o -MD -MP -MF ".deps/pcap-util.Tpo" \ -c -o pcap-util.o `test -f 'pcap-util.c' || echo './'`pcap-util.c; \ then mv -f ".deps/pcap-util.Tpo" ".deps/pcap-util.Po"; \ else rm -f ".deps/pcap-util.Tpo"; exit 1; \ fi pcap-util.c: In function `if_info_ip': pcap-util.c:239: error: `pcap_addr_t' undeclared (first use in this function) pcap-util.c:239: error: (Each undeclared identifier is reported only once pcap-util.c:239: error: for each function it appears in.) . . . make[2]: *** [pcap-util.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Installing libpcap to replace the one provided by OS X *might* solve this, but libpcap has its own issues on macos: see bug 61599. Reproducible: Always Steps to Reproduce: 1. emerge -av ethereal 2. 3. Actual Results: Compile fails. Expected Results: It should compile. Portage 2.0.51_pre20 (default-macos-10.3, gcc-3.3, libsystem-7.1-r0, 7.5.0 Power Macintosh powerpc) ================================================================= System uname: 7.5.0 Power Macintosh powerpc macos-20040726 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] Autoconf: Automake: Binutils: Headers: Libtools: ACCEPT_KEYWORDS="macos" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache collision-protect cvs keepwork userpriv" GENTOO_MIRRORS="http://gentoo.osuosl.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="macos gdbm jpeg ncurses png python readline slang ssl"
Once I installed libpcap-0.8.3 over the OS X libpcap, ethereal compiled and worked. So the only problem left is getting a libpcap whose pcap.h defines pcap_addr_t -- once that's solved, ethereal compiles on macos.
Invalid now as package gone