Raised This Month: $ Target: $400
 0% 

Extension requires glibc 2.4, but server have 2.3 [SOLVED]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 07-18-2009 , 14:03   Extension requires glibc 2.4, but server have 2.3 [SOLVED]
Reply With Quote #1

First, I assume everyone know that this is linux related.

I have an extension that works fine on newer servers, but when I try to use it on a older server it cannot load because its glibc version is older.

Updating glibc on that server is out of the question since it's risky and I don't have root access. Instead there must be a way to compile the extension for older versions, since other SourceMod 1.2.x extenstions already works.

I run Ubuntu 9.04 in a virtual machine, with gcc 4.1. The extension compiles and runs fine on updated servers. The old server currently have glibc 2.3.6 installed.

I guess I need to install an older glibc on my VM and compile again, that's ok, but I don't know the package name or where I can find it.

Otherwise, what can I do to make the extension work on that server?

Code:
L 07/18/2009 - 10:51:26: [SM] Unable to load extension "zrtools.ext.so": /lib32/libc.so.6: version `GLIBC_2.4' not found (required by /(...)/cstrike/addons/sourcemod/extensions/zrtools.ext.so)
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)

Last edited by rhelgeby; 07-20-2009 at 14:24.
rhelgeby is offline
Send a message via MSN to rhelgeby
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 07-20-2009 , 14:23   Re: Extension requires glibc 2.4, but server have 2.3 [SOLVED]
Reply With Quote #2

I fixed this by adding this to the gcc compile options:
Code:
-fno-stack-protector
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode