How do I compile on linux to share with all distributions?

Posted by Andrew M on Stack Overflow See other posts from Stack Overflow or by Andrew M
Published on 2010-05-04T10:38:47Z Indexed on 2010/05/05 6:18 UTC
Read the original article Hit count: 211

Filed under:
|
|
|
|

I compiled a PHP extension on Fedora Core 12, but when I send it to someone using CentOS they get the error: "ELF file OS ABI invalid"

I'm not sure what causes this running file provides the following info: ELF 64-bit LSB shared object, AMD x86-64, version 1 (GNU/Linux), not stripped

An extension that loads fine provides the following from file: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped

So it seems I need to generate a SYSV type file for some distributions, instead of a GNU/LINUX file, no idea how though. Any pointers?

Also should I be statically linking?

© Stack Overflow or respective owner

Related posts about linux

Related posts about php