Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: mod_java
-
Labels:None
-
Platform:Linux x86_64/gcc
-
CPU Info:Athlon 64
-
FreeSWITCH GIT Revision:HEAD
-
Reproduced with GIT HEAD?:Yes
Description
I am getting the following error trying to build mod_java.
making all mod_java
make[4]: Entering directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src/mod/languages/mod_java'
make[5]: Entering directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src/mod/languages/mod_java'
mkdir -p classes
javac -sourcepath src -d classes src/org/freeswitch/Launcher.java src/org/freeswitch/HangupHook.java src/org/freeswitch/DTMFCallback.java src/org/freeswitch/FreeswitchScript.java src/org/freeswitch/Event.java src/org/freeswitch/swig/*
Note: src/org/freeswitch/Launcher.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
jar cf freeswitch.jar -C classes org
Compiling freeswitch_java.cpp...
g++ -fno-strict-aliasing -I/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/libs/curl/include -I/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src/include -I/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src/include -I/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/libs/libteletone/src -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -D_GNU_SOURCE -DHAVE_CONFIG_H -c -o freeswitch_java.o freeswitch_java.cpp
In file included from freeswitch_java.cpp:1:0:
freeswitch_java.h:5:17: fatal error: jni.h: No such file or directory
compilation terminated.
make[5]: *** [freeswitch_java.o] Error 1
make[5]: Leaving directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src/mod/languages/mod_java'
make[4]: *** [all] Error 1
make[4]: Leaving directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src/mod/languages/mod_java'
make[3]: *** [languages/mod_java-all] Error 1
make[3]: Leaving directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src/mod'
make[3]: Entering directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.BKDXXB (%build)
jni.h is installed by the java-1_6_0-openjdk-devel package in /usr/lib64/java-1.6.0-openjdk-1.6/include directory.
making all mod_java
make[4]: Entering directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src/mod/languages/mod_java'
make[5]: Entering directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src/mod/languages/mod_java'
mkdir -p classes
javac -sourcepath src -d classes src/org/freeswitch/Launcher.java src/org/freeswitch/HangupHook.java src/org/freeswitch/DTMFCallback.java src/org/freeswitch/FreeswitchScript.java src/org/freeswitch/Event.java src/org/freeswitch/swig/*
Note: src/org/freeswitch/Launcher.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
jar cf freeswitch.jar -C classes org
Compiling freeswitch_java.cpp...
g++ -fno-strict-aliasing -I/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/libs/curl/include -I/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src/include -I/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src/include -I/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/libs/libteletone/src -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -D_GNU_SOURCE -DHAVE_CONFIG_H -c -o freeswitch_java.o freeswitch_java.cpp
In file included from freeswitch_java.cpp:1:0:
freeswitch_java.h:5:17: fatal error: jni.h: No such file or directory
compilation terminated.
make[5]: *** [freeswitch_java.o] Error 1
make[5]: Leaving directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src/mod/languages/mod_java'
make[4]: *** [all] Error 1
make[4]: Leaving directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src/mod/languages/mod_java'
make[3]: *** [languages/mod_java-all] Error 1
make[3]: Leaving directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src/mod'
make[3]: Entering directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/freeswitch-1325050505'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.BKDXXB (%build)
jni.h is installed by the java-1_6_0-openjdk-devel package in /usr/lib64/java-1.6.0-openjdk-1.6/include directory.
have you tried something like ./configure --with-java=/usr/lib64/java-1.6.0-openjdk-1.6/include
this is from the wiki btw.
If you would like to help maintain this module i'm sure it would be welcomed. :)