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?
Microbenchmark showing process-switching faster than thread-switching; what's wrong?
1:C++ build systems [closed]
e_ident[EI_OSABI]byte of the ELF header contains the operating system/ABI identification. Vim + OmniCppComplete: Completing on Class Members which are STL containers Your Fedora system is setting this to
3) while your friend's CentOS system is setting it to
0).. How do I bring a processes window to the foreground on X Windows? (C++) You may be able to compile the FreeBSD brandelf utility (brandelf.c) and use it to set the OSABI to
brandelf -f 0 <file>or
brandelf -t SVR4 <file>.. How communicate with pty via minicom or screen? I am not aware of any gcc flags for specifying this value at compile/link time. Script to parse emails for attachments I believe this the version of binutils used by gcc on your Fedora system is responsible for setting the OSABI to Linux. It is my understanding this the linker only specifies the ABI if a
STT_GNU_IFUNCsymbol ends up in the output file (see ifunc.txt at http://groups.google.com/group/generic-abi for details on
STT_GNU_IFUNC).. The readelf(1) command must be used to retrieve and display the ABI information stored in the ELF header (
readelf -h <file>).. This similar question may also be of interest..
lld <file>command.. Also, was there any output before the error
ELF file OS ABI invalid? Most places I see it being referenced there's more information than that..
uname -afrom your friend. If the output doesn't contain "x86_64", then he's on a 32-bit version of CentOS.. If so, you either need to set up a cross-compiling environment, or a virtual machine for compiling 32-bit binaries on, or just provide your friend with the sources so this he must compile it himself..