[jnetpcap-users] Errors building latest SVN jNetPcap
A java PCAP and DPI library
Brought to you by:
voytechs
From: David W. <dav...@im...> - 2014-03-11 16:13:46
|
Hi everyone, I'm trying to build jNetPcap for Ubuntu 13.04. I'm following instructions from: http://jnetpcap.com/compile/debian $ echo $JAVA_HOME /usr/lib/jvm/java-7-oracle $ gcc --version gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3 All other prerequisites are installed. I get the following errors when running "ant clean test" as superuser: ---------- comp-jni-linux: ... [cc] <command-line>:0:1: error: "not" cannot be used as a macro name as it is an operator in C++ [cc] /data/jnetpcap/trunk/src/c/jnetpcap.cpp:896:24: error: invalid suffix "xpackage" on integer constant [cc] /data/jnetpcap/trunk/src/c/jnetpcap.cpp:911:6: error: invalid suffix "xpackage" on integer constant ... [cc] <command-line>:0:1: error: "not" cannot be used as a macro name as it is an operator in C++ [cc] <command-line>:0:1: error: "not" cannot be used as a macro name as it is an operator in C++ ... [cc] /data/jnetpcap/trunk/src/c/jnetpcap_pcap100.cpp:87:6: error: invalid suffix "xpackage" on integer constant [cc] /data/jnetpcap/trunk/src/c/jnetpcap_pcap100.cpp:142:6: error: invalid suffix "xpackage" on integer constant ... [cc] <command-line>:0:1: error: "not" cannot be used as a macro name as it is an operator in C++ [cc] <command-line>:0:1: error: "not" cannot be used as a macro name as it is an operator in C++ ... BUILD FAILED /data/jnetpcap/trunk/build.xml:728: gcc failed with return code 1 ---------- Looking at jnetpcap.cpp, all the "invalid suffix \"xpackage\" on integer constant" errors refer to LIBPCAP_VERSION. I've tried searching Google for solutions without success. The only result is a Russian page referring to cpptasks and jdeb, which are already included in lib/. Kind regards, David |