frostwire / frostwire-jlibtorrent

A swig Java interface for libtorrent by the makers of FrostWire. Develop libtorrent based apps with the joy of coding in Java.
http://www.frostwire.com
MIT License
444 stars 137 forks source link

LinkageError - GLIBC_2.27 not found #260

Closed rpithadia25 closed 2 years ago

rpithadia25 commented 2 years ago

Hey @aldenml,

I was trying to run the 1.2.11.0 version on Linux and saw the following exception: java.lang.UnsatisfiedLinkError: libjlibtorrent-1.2.11.0.so: /lib64/libm.so.6: version `GLIBC_2.27' not found.

I'm running the Oracle Linux Server 7.7 x86_64 Its running GLIBC 2.17

Is there a particular version of jlibtorrent I can use?

aldenml commented 2 years ago

Hi @rpithadia25 I don't maintain binaries in this project (fyi I work in a fork at https://github.com/aldenml/libtorrent4j)

rpithadia25 commented 2 years ago

Thanks for the response @aldenml.

Hey @gubatron, Could you please advice on what version I can use?

gubatron commented 2 years ago

try 1.2.13, it should be built with an older glibc on a Docker image we now provide. https://github.com/frostwire/frostwire-jlibtorrent/releases/tag/release%2F1.2.13.0

rpithadia25 commented 2 years ago

Hey @gubatron,

Thanks for getting back :) I was going through the docker file and couldnt find a way to provide the glibc version. I'm assuming its part of g++? (Sorry I have limited knowledge of C/C++ :) ) Could you please let me know which version needs to be changed while building?

Appreciate your help!

gubatron commented 2 years ago

The Dockerfile uses an old instance of ubuntu 18.x so that the g++ and glibc libraries are old enough to not break compatibility with most old Linux versions out there.

On Mon, Jul 19, 2021, 1:15 PM Rakshit Pithadia @.***> wrote:

Hey @gubatron https://github.com/gubatron,

Thanks for getting back :) I was going through the docker file and couldnt find a way to provide the glibc version. I'm assuming its part of g++? (Sorry I have limited knowledge of C/C++ :) ) Could you please let me know which version needs to be changed while building?

Appreciate your help!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/frostwire/frostwire-jlibtorrent/issues/260#issuecomment-882793526, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABIBCOYD3KKBVFS6K65GYLTYR2TTANCNFSM5AL3TXUA .