<div dir="ltr"><div>Hello,<br>As an author of app_java, I'll take a look to this problem.<br></div>Thank you for report.<br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/11 Carsten Bock <span dir="ltr"><<a href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
either the build-depends are incorrect or otherwise the rules file for<br>
Debian Wheezy is incorrect.<br>
<br>
Is app_java actually part of any generated deb-package? I could not find it...<br>
<br>
This is the way, i build the packages:<br>
- ln -s pkg/kamailio/deb/wheezy/ debian<br>
- make deb<br>
(this worked before, i've been building my packages like this for years...)<br>
<br>
Yesterday, i ran into the following issue for current master:<br>
<br>
Building the Java-Modules fails on my build machine:<br>
<br>
[...]<br>
LD (gcc) [M app_java.so] app_java.so<br>
/usr/bin/ld: cannot find -ljvm<br>
collect2: error: ld returned 1 exit status<br>
<br>
For the moment, i solved it for me by removing the Java-Module for my<br>
build. However, this is not a valid solution....<br>
I thought, it may be related to me having an Oracle Java installed<br>
instead of the bundled OpenJDK, which comes with Debian. Actually,<br>
since the build-depends is satisfied, i would never expect such error.<br>
<br>
Today, to narrow the error more down, i took a clean Debian, where i<br>
installed the necessary Debian Packages. However, still i cannot build<br>
Debian Packages:<br>
<br>
make[2]: Leaving directory `/root/k41/kamailio'<br>
/usr/bin/make every-module group_include="kjava"<br>
make[2]: Entering directory `/root/k41/kamailio'<br>
Package libgcj-4.7 was not found in the pkg-config search path.<br>
Perhaps you should add the directory containing `libgcj-4.7.pc'<br>
to the PKG_CONFIG_PATH environment variable<br>
No package 'libgcj-4.7' found<br>
[...]<br>
CC (gcc) [M app_java.so] java_iface.o<br>
java_iface.c:29:17: fatal error: jni.h: No such file or directory<br>
compilation terminated.<br>
make[3]: *** [java_iface.o] Error 1<br>
make[2]: *** [modules] Error 1<br>
make[2]: Leaving directory `/root/k41/kamailio'<br>
make[1]: *** [build-stamp] Error 2<br>
make[1]: Leaving directory `/root/k41/kamailio'<br>
<br>
I think we should either<br>
a) Fix this error (probably best from someone who knows the app_java-module) or<br>
b) remove app_java from the Debian-Packaging (similar to e.g.<br>
db_cassandra) due to unclear dependencies....<br>
<br>
Just my $0,02,<br>
Carsten<br>
<br>
<br>
--<br>
Carsten Bock<br>
CEO (Geschäftsführer)<br>
<br>
ng-voice GmbH<br>
Schomburgstr. 80<br>
D-22767 Hamburg / Germany<br>
<br>
<a href="http://www.ng-voice.com" target="_blank">http://www.ng-voice.com</a><br>
mailto:<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a><br>
<br>
Office <a href="tel:%2B49%2040%2034927219" value="+494034927219">+49 40 34927219</a><br>
Fax <a href="tel:%2B49%2040%2034927220" value="+494034927220">+49 40 34927220</a><br>
<br>
Sitz der Gesellschaft: Hamburg<br>
Registergericht: Amtsgericht Hamburg, HRB 120189<br>
Geschäftsführer: Carsten Bock<br>
Ust-ID: DE279344284<br>
<br>
Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br>
<a href="http://www.ng-voice.com/imprint/" target="_blank">http://www.ng-voice.com/imprint/</a><br>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</blockquote></div><br></div></div>