bad library specification for libpcap.so in build.xml comp-jni-sunos task
A java PCAP and DPI library
Brought to you by:
voytechs
As with many of the linux variants, when libpcap.so is installed as a system library on Solaris/SunOS, then the two mentions of it in the comp-jni-sunos task should be... (this diff includes fixes for previous reports as well).
--- build.xml (revision 1457)
+++ build.xml (working copy)
@@ -912,7 +912,7 @@
<!-- =================================================================== -->
<!-- Generates shared JNI library file from C++ sources -->
<!-- =================================================================== -->
- <target name="comp-jni-sunos" depends="check-libpcap-version,prep-checks,prep-jni,prep-lib,comp-javah,prep-libpcap" if="platform.sunox">
+ <target name="comp-jni-sunos" depends="check-libpcap-version,prep-checks,prep-jni,prep-lib,comp-javah,prep-libpcap" if="platform.sunos">
<!-- Not supplying "outtype", disables the LINKER in CC tag
outtype="shared"
@@ -934,13 +934,13 @@
<includepath location="${build.include.dir}" />
<includepath location="${src.c.dir}" />
<sysincludepath location="${java.sdk.include.dir}" />
- <sysincludepath location="${java.sdk.include.dir}/solarisq" />
+ <sysincludepath location="${java.sdk.include.dir}/solaris" />
<defineset define="LIBPCAP_VERSION=0x${compiler.LIBPCAP_VERSION}" if="compiler.LIBPCAP_VERSION" />
<defineset define="DEBUG" if="DEBUG" />
<linker name="${compiler.ld.cmd}">
- <syslibset libs=":../lib/libpcap.so" />
+ <syslibset libs="pcap" />
<linkerarg value="-Wl,-soname,lib${lib.pcap.basename}.so" />
@@ -966,7 +966,7 @@
<linker name="${compiler.ld.cmd}">
- <syslibset libs="jnetpcap,:../lib/libpcap.so" />
+ <syslibset libs="jnetpcap,pcap" />
<libset dir="${build.lib.dir}" libs="jnetpcap" />
<linkerarg value="-Wl,-soname,${jni.pcap100.file}" />
Thanks Nick, for the patch.
Cheers,
mark..
mark [at] slytechs.com