odnoklassniki / one-nio

Unconventional I/O library for Java
Apache License 2.0
648 stars 96 forks source link

undefined symbol: OPENSSL_init_ssl #45

Closed asurovenko closed 4 years ago

asurovenko commented 4 years ago

Hi! I built my app with one-nio 1.2.0 and it doesn't start. In logs I can see: /usr/bin/java: symbol lookup error: /tmp/libonenio.97307c0a.so: undefined symbol: OPENSSL_init_ssl Both servers: where I built and where I tryed to start, have openssl version 1.0.2k-fips What I should do?

avrecko commented 4 years ago

I had similar issue. I just compiled/built one-nio on my fedora box and deployed to internal maven repository. It works fine. Very happy with it.

On Tue, 24 Sep 2019 at 13:16, asurovenko notifications@github.com wrote:

Hi! I built my app with one-nio 1.2.0 and it doesn't start. In logs I can see: /usr/bin/java: symbol lookup error: /tmp/libonenio.97307c0a.so: undefined symbol: OPENSSL_init_ssl Both servers: where I built and where I tryed to start, have openssl version 1.0.2k-fips What I should do?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/odnoklassniki/one-nio/issues/45?email_source=notifications&email_token=AACRDOK4LU3UOBY2GQNK7H3QLHZJXA5CNFSM4IZ6IYLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HNJDYGQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AACRDOOTXWWWXGGFW27XFTDQLHZJXANCNFSM4IZ6IYLA .

apangin commented 4 years ago

Apparently, the maven artifact was built with OpenSSL 1.1.x and hence does not work on systems with OpenSSL 1.0.2.

The workaround is to use one-nio-1.2.0.jar from the releases page (it should work everywhere) or to build the .jar yourself.

@incubos can you please re-publish the artifact built against OpenSSL 1.0.2?

incubos commented 4 years ago

AFAIK, it is impossible to rewrite an artifact released to Maven Central, so we will have to release a new version. I will reach my laptop next week and will do it.

Best regards, Vadim Tsesko

On 24 Sep 2019, at 13:34, Andrei Pangin <notifications@githubmute the thread.com> wrote:

Apparently, the maven artifact was built with OpenSSL 1.1.x and hence does not work on systems with OpenSSL 1.0.2.

The workaround is to use one-nio-1.2.0.jar from the releases page or to build the .jar yourself.

@incubos can you please re-publish the artifact built against OpenSSL 1.0.2?

— You are receiving this because you were mentioned. Reply to this email directly,, or mute the thread.

asurovenko commented 4 years ago

incubos, it is still actual? I'm waiting :)

incubos commented 4 years ago

Unfortunately, I am not able to build a backwards compatible version of libonenio.so easily. @apangin released 1.2.1 to Maven Central using the dedicated build environment. The artifact should become accessible within a day.