grip icon indicating copy to clipboard operation
grip copied to clipboard

Module failed to load (version `GLIBC_2.17' not found)

Open GiovaniFerraroTrivelli opened this issue 6 years ago • 11 comments

Hello!

I was trying to upload the module on my server but I get the following error:

L 07/12/2019 - 16:04:59: [AMXX] Module "cstrike/addons/amxmodx/modules/grip_amxx_i386.so" failed to load (/lib/libc.so.6: version `GLIBC_2.17' not found (required by cstrike/addons/amxmodx/modules/grip_amxx_i386.so))
L 07/12/2019 - 16:04:59: Error:
L 07/12/2019 - 16:04:59: [AMXX] Module is not a valid library (file "cstrike/addons/amxmodx/modules/grip_amxx_i386.so")

I know this is because the OS that my server is running is too old, but I don't have any way to update it because I am using a shared hosting. I had the same problem with an old AmxxCurl version but the project owner fixed that.

I tried to recompile using an old GLIBC but I give up without results :( Is there a way to fix this without problems?

Thanks!

GiovaniFerraroTrivelli avatar Jul 12 '19 19:07 GiovaniFerraroTrivelli

Hi. I will investigate possible solution with MUSL libc, but I don't really know whether it will work out.

In-line avatar Jul 13 '19 16:07 In-line

Last release lowers requirement to GLIBC 2.4. Test it out.

In-line avatar Jul 13 '19 17:07 In-line

Tested but I have the same problem.

L 07/13/2019 - 15:41:57: [AMXX] Module "cstrike/addons/amxmodx/modules/grip_amxx_i386.so" failed to load (/lib/libc.so.6: version `GLIBC_2.17' not found (required by cstrike/addons/amxmodx/modules/grip_amxx_i386.so))
L 07/13/2019 - 15:41:57: Error:
L 07/13/2019 - 15:41:57: [AMXX] Module is not a valid library (file "cstrike/addons/amxmodx/modules/grip_amxx_i386.so")
L 07/13/2019 - 15:41:57: [AMXX] Plugin "testgrip.amxx" failed to load: Module/Library "grip" required for plugin.  Check modules.ini.

It seems strange that you recompiled it for glibc 2.4 and it still doesn't work anyway. AmxxCurl works with 2.12 so grip should work too. Sorry for the inconveniences.

GiovaniFerraroTrivelli avatar Jul 13 '19 18:07 GiovaniFerraroTrivelli

@GiovaniFerraroTrivelli I think static compiling with MUSL libc is the only option. I will do it in my free time. Anyway. AmxxCurl and GRIP are very different projects.

GRIP isn't tested or developed for ancient systems. Glibc 2.4 was released 13 years ago. I can't recompile it for glibc 2.4, because underlying Rust standard library seems to use the newest available APIs.

I just removed OpenSSL dependency in the hope, that it will help with issue. It seems to be easy to use MUSL libc with Rust, because there are already tested Docker images which compile it for you. Such as https://github.com/emk/rust-musl-builder

But I think it will anyway consume time to integrate it in existing CMake script and configure build caching.

In-line avatar Jul 13 '19 19:07 In-line

After many hours of testing, finally I could compile GRIP and run it into my server, but different errors appeared after that (which is logic).

Never mind. I think I will change to another hosting in the next year (if it's possible, to a dedicated server) so I will be able to install GRIP. It is sad that all of my ideas with REST will have to wait. haha.

Thanks and sorry for all the problems!

GiovaniFerraroTrivelli avatar Jul 14 '19 04:07 GiovaniFerraroTrivelli

@GiovaniFerraroTrivelli Try this out, from #131 I didn't tested it, but should work.

grip_amxx_i386.zip

In-line avatar Jul 23 '19 11:07 In-line

Yes! It works perfectly!! Great job, thanks!

GiovaniFerraroTrivelli avatar Jul 23 '19 18:07 GiovaniFerraroTrivelli

Are you sure? It's the first rule of programming that nothing works on the first try :D.

Maybe your hosting updated their libc or something like that?

On Tue, Jul 23, 2019, 22:39 Giovi [email protected] wrote:

Yes! It works perfectly!! Great job, thanks!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/In-line/grip/issues/127?email_source=notifications&email_token=AETPTKC2JXGXOTVAKCCBNRLQA5F7TA5CNFSM4ICPTQL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2UBRLY#issuecomment-514332847, or mute the thread https://github.com/notifications/unsubscribe-auth/AETPTKGAG5KWHIWFPORUL7TQA5F7TANCNFSM4ICPTQLQ .

In-line avatar Jul 23 '19 22:07 In-line

I know that haha, but you are lucky 😁 I have been testing since I commented 4 hours ago and no problem has occurred.

My hosting is horrible (but it's the only one from my country), so this isn't an option.

GiovaniFerraroTrivelli avatar Jul 23 '19 22:07 GiovaniFerraroTrivelli

And now I have a problem 😥

I restarted the server where I was testing and this appeared on console:

L 07/24/2019 - 01:43:29: [AMXX] Module "cstrike/addons/amxmodx/modules/grip_amxx_i386.so" failed to load (/lib/libc.so.6: version `GLIBC_2.18' not found (required by cstrike/addons/amxmodx/modules/grip_amxx_i386.so))
L 07/24/2019 - 01:43:29: Error:
L 07/24/2019 - 01:43:29: [AMXX] Module is not a valid library (file "cstrike/addons/amxmodx/modules/grip_amxx_i386.so")

The most curious thing is that until a few minutes ago all worked excellent, I restarted the server and this happens :(

(I was testing all the day... I think I'm not crazy... 😟)

GiovaniFerraroTrivelli avatar Jul 24 '19 04:07 GiovaniFerraroTrivelli

Updating.

I migrated to another hosting (now a dedicated server) and now I can use grip. Sorry for not updating this before, but it was a lot of work to migrate 20 servers 😁

I am very happy for this. Again, thanks for all your hard work!

GiovaniFerraroTrivelli avatar Oct 19 '19 23:10 GiovaniFerraroTrivelli