Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62880 - Porting: net-analyzer/ethereal-0.10.6
Summary: Porting: net-analyzer/ethereal-0.10.6
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC All
: High normal (vote)
Assignee: osx porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-04 19:19 UTC by Robin Munn
Modified: 2007-06-09 20:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Munn 2004-09-04 19:19:53 UTC
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"
Comment 1 Robin Munn 2004-09-05 14:33:52 UTC
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.
Comment 2 Markus Ullmann (RETIRED) gentoo-dev 2007-06-09 20:48:02 UTC
Invalid now as package gone