New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load libbridj.so dependency on SunOs #452

Closed
AndreasSandberg opened this Issue Oct 4, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@AndreasSandberg

AndreasSandberg commented Oct 4, 2013

Hi!

We're trying to include our binaries in a single jar, however when we start up our application we're having problems with BridJ loading it's own dependencies (in this particularly case gcc_s). We have tried to include these dependencies into the "lib/sunos_x86/" directory but it seems like the extraction of these files happen to late.

Is there any way of including BridJ:s own dependencies into the jar so that they are loaded before BridJ starts up?

The error we get is:

Caused by: java.lang.UnsatisfiedLinkError: /var/tmp/BridJExtractedLibraries4468278197869084619/libbridj.so: ld.so.1: java: fatal: libgcc_s.so.1: open failed: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1003)
at org.bridj.Platform.initLibrary(Platform.java:420)
... 100 more

Resulting in a
java.lang.NoClassDefFoundError: Could not initialize class org.bridj.Platform

@AndreasSandberg

This comment has been minimized.

Show comment
Hide comment
@AndreasSandberg

AndreasSandberg Oct 4, 2013

Realized I forgot to mention our (old) OS version;
SunOS 5.10 Generic_147441-21 i86pc i386 i86pc

AndreasSandberg commented Oct 4, 2013

Realized I forgot to mention our (old) OS version;
SunOS 5.10 Generic_147441-21 i86pc i386 i86pc

@ochafik

This comment has been minimized.

Show comment
Hide comment
@ochafik

ochafik Oct 7, 2013

Member

Hi @AndreasSandberg ,

Thanks for your report!
I've updated the Solaris build in the latest snapshot (built it with -static-libgcc), can you let me know if it fixes the issue? (if not, I'll reopen the bug :-))

Cheers

Member

ochafik commented Oct 7, 2013

Hi @AndreasSandberg ,

Thanks for your report!
I've updated the Solaris build in the latest snapshot (built it with -static-libgcc), can you let me know if it fixes the issue? (if not, I'll reopen the bug :-))

Cheers

@ochafik ochafik closed this Oct 7, 2013

@AndreasSandberg

This comment has been minimized.

Show comment
Hide comment
@AndreasSandberg

AndreasSandberg Oct 8, 2013

Thanks a lot for your rapid response, the latest snapshot (bridj-0.7-20131007.003529-54.jar) resolved this issue.

Best regards!

AndreasSandberg commented Oct 8, 2013

Thanks a lot for your rapid response, the latest snapshot (bridj-0.7-20131007.003529-54.jar) resolved this issue.

Best regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment