Raised This Month: $51 Target: $400
 12% 

extension .so "not in executable format"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 11-12-2008 , 16:28   extension .so "not in executable format"
Reply With Quote #1

I'm compiling my extension on Debian Lenny (with GCC 4.1.2) and it works fine.

When I try to use it on CentOS (with GCC 4.1.2), srcds crashes. GDB shows me this error:
Code:
Program exited with code 01.
(gdb) "/home/duke/tf/orangebox/tf/addons/sourcemod/extensions/dukehacks.ext.so": not in executable format: File format not recognized.
Any ideas? I thought maybe it was a problem transferring it, so I used tar to compress and uncompress it before and after transferring. I also made sure to use a binary ftp transfer.
__________________
"Good grammar is essential, Robin."
- Batman

Last edited by L. Duke; 11-12-2008 at 16:30.
L. Duke is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 11-12-2008 , 17:25   Re: extension .so "not in executable format"
Reply With Quote #2

chmod +x dukehacks.ext.so?
bl4nk is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 11-12-2008 , 17:47   Re: extension .so "not in executable format"
Reply With Quote #3

One of the first things I checked.

Permissions are u=rwx just like the rest of the extensions.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 11-12-2008 , 18:11   Re: extension .so "not in executable format"
Reply With Quote #4

I figured it out. It's SELinux. Disabling SELinux fixes the problems. I'm trying to figure out how to set the permissions so that isn't necessary now.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 11-12-2008 , 18:12   Re: extension .so "not in executable format"
Reply With Quote #5

SELinux always gives me problems -.-

I just set it to "permissive" mode temporarily as a work around.
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 11-12-2008 , 18:35   Re: extension .so "not in executable format"
Reply With Quote #6

Funny thing is, I had it in permissive. It still wouldn't load until I disabled it completely.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 11-12-2008 , 18:38   Re: extension .so "not in executable format"
Reply With Quote #7

Wow.

Super strict, huh.
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
BAILOPAN
Join Date: Jan 2004
Old 11-21-2008 , 23:03   Re: extension .so "not in executable format"
Reply With Quote #8

SELinux is very strict. If you use pax or grsecurity you might have to paxctl (or chpax).
__________________
egg
BAILOPAN is offline
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 13:10.


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