<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/jnetpcap/patches/" rel="alternate"/><link href="https://sourceforge.net/p/jnetpcap/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/jnetpcap/patches/</id><updated>2010-01-24T16:37:56Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>Mac OS X port (universal binary for ppc,ppc64,i386,x86_64)</title><link href="https://sourceforge.net/p/jnetpcap/patches/2/" rel="alternate"/><published>2010-01-24T16:37:56Z</published><updated>2010-01-24T16:37:56Z</updated><author><name>Andreas Lohr</name><uri>https://sourceforge.net/u/alohr/</uri></author><id>https://sourceforge.netd5921120da7edce88ee4303c2b8845b219df36e8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;$ file jnetpcap.jnilib &lt;br /&gt;
libjnetpcap.jnilib: Mach-O universal binary with 4 architectures&lt;br /&gt;
libjnetpcap.jnilib (for architecture i386):   Mach-O dynamically linked shared library i386&lt;br /&gt;
libjnetpcap.jnilib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64&lt;br /&gt;
libjnetpcap.jnilib (for architecture ppc7400):        Mach-O dynamically linked shared library ppc&lt;br /&gt;
libjnetpcap.jnilib (for architecture ppc64):  Mach-O 64-bit dynamically linked shared library ppc64&lt;/p&gt;
&lt;p&gt;Here's what I changed:&lt;/p&gt;
&lt;p&gt;$ svn status&lt;br /&gt;
?      Mac OS X.properties&lt;br /&gt;
M      src/c/jnetpcap_utils.cpp&lt;br /&gt;
M      build.xml&lt;br /&gt;
?      lib/cpptasks-1.0b5-patched&lt;br /&gt;
?      lib/hyperic-sigar-1.6.3/libsigar-universal64-macosx.dylib&lt;br /&gt;
?      lib/hyperic-sigar-1.6.3/libsigar-universal-macosx.dylib&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;The libsigar files are needed in some unit tests.&lt;/p&gt;
&lt;p&gt;Apply both files in the root directory of the jnetpcap sources:&lt;/p&gt;
&lt;p&gt;unzip /tmp/missing.zip&lt;br /&gt;
patch -p0 /tmp/trunk.diff&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mac OS X port</title><link href="https://sourceforge.net/p/jnetpcap/patches/1/" rel="alternate"/><published>2009-01-29T19:12:33Z</published><updated>2009-01-29T19:12:33Z</updated><author><name>Michael Pigg</name><uri>https://sourceforge.net/u/michaelpigg/</uri></author><id>https://sourceforge.net2901ed125654a9de8d2b54087a9ef04554458608</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This patch modifies the code to compile on Mac OS X. The patch is based on revision 555 from SVN. The patch was created on a 10.5 system and has not been tested on other versions of OS X. Java 1.5 must be used to compile, at least with Apple JDKs.&lt;/p&gt;
&lt;p&gt;I have not extensively tested the build, but it appears to be working for me. I can capture packets, at least. :)&lt;/p&gt;
&lt;p&gt;There are a couple of test cases that fail when running the tests target from the build script, so some additional work needs to be done to resolve those errors.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>