Hi, here's my attempt to port jnetpcap to the Mac. One difference to Michael's patch is that this builds the native shared library as a universal binary for both the powerpc and x86 architectures and builds for 32 and 64 bit.
$ file jnetpcap.jnilib
libjnetpcap.jnilib: Mach-O universal binary with 4 architectures
libjnetpcap.jnilib (for architecture i386): Mach-O dynamically linked shared library i386
libjnetpcap.jnilib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
libjnetpcap.jnilib (for architecture ppc7400): Mach-O dynamically linked shared library ppc
libjnetpcap.jnilib (for architecture ppc64): Mach-O 64-bit dynamically linked shared library ppc64
Here's what I changed:
$ svn status
? Mac OS X.properties
All additional files you need are in missing.zip and trunk.diff changes build.xml and jnetpcap_utils.cpp. I wasn't able to get linker to work without patching cpptasks. See my patch ID 2929327 in the Ant Contrib project.
The libsigar files are needed in some unit tests.
Apply both files in the root directory of the jnetpcap sources:
patch -p0 /tmp/trunk.diff
Log in to post a comment.