Post Reply 
Wow. I'm really impressed! Freenas?
09-02-2015, 23:04
Post: #20
RE: Wow. I'm really impressed! Freenas?
(09-02-2015 09:00)simoncn Wrote:  From this stack trace, this is happening when MinimServer tries to load the libohNet.so library (not the libohNetJni.so library). I suspect something has gone wrong when you modified or replaced the .zip file. Please upload your modified .zip file to my FTP server and I will take a look at it. I will PM you the server details.

Thanks to your hint I could find out what the problem with the zip-file was. All the files were in it, but inside a folder, which shouldn't be there. I corrected that and now the next error-message points to libohNetJni.so, which I haven't compiled yet.

Code:
java.lang.UnsatisfiedLinkError: /usr/local/share/minimserver/data/tmp/native/libohNetJni.so: Shared object "libm.so.6" not found, required by "libohNetJni.so"

So I have to compile libohNetJni.so too for FreeBSD. Before I tried that, I compiled and installed openjdk8 successfully (because you mentioned that an java-SDK is needed). Unluckily, compilation of libohNetJni.so fails with the following message:

Code:
gcc -o Build/Obj/Posix/Release/JniAction.o -c -fexceptions -Wall   -Werror -pipe -D_GNU_SOURCE -D_REENTRANT -DDEFINE_LITTLE_ENDIAN -DDEFINE_TRACE -g -O2   -fPIC -IBuild/Include/  -I/include -I/include/linux OpenHome/Net/Bindings/Java/Action.c
OpenHome/Net/Bindings/Java/Action.c:1:17: error: jni.h: No such file or directory
In file included from OpenHome/Net/Bindings/Java/Action.c:2:
OpenHome/Net/Bindings/Java/Action.h:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jlong'
OpenHome/Net/Bindings/Java/Action.h:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
OpenHome/Net/Bindings/Java/Action.h:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
OpenHome/Net/Bindings/Java/Action.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
OpenHome/Net/Bindings/Java/Action.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jstring'
OpenHome/Net/Bindings/Java/Action.c:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jlong'
OpenHome/Net/Bindings/Java/Action.c:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
OpenHome/Net/Bindings/Java/Action.c:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
OpenHome/Net/Bindings/Java/Action.c:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
OpenHome/Net/Bindings/Java/Action.c:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jstring'
Common.mak:992: recipe for target 'Build/Obj/Posix/Release/JniAction.o' failed
gmake: *** [Build/Obj/Posix/Release/JniAction.o] Error 1

Should I ask the other Simon in the OpenHome-forum for support or do you have an idea already? For your information, I chose openjdk8 for the Java-SDK. I would also have linux-sun-jdk17. Should I try that instead?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Wow. I'm really impressed! Freenas? - airflow - 09-02-2015 23:04

Forum Jump:


User(s) browsing this thread: 1 Guest(s)