![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| shared library not found | JCR | High Level Programming | 12 | 12-29-2007 12:03 AM |
| Shared memory in shared library | DreamWarrior | High Level Programming | 12 | 05-30-2007 04:33 PM |
| shared library | areef4u | UNIX for Advanced & Expert Users | 1 | 08-01-2006 02:14 AM |
| Shared Library Problem | vinz | HP-UX | 1 | 08-27-2004 10:57 AM |
| Shared Library | rajashekaran | High Level Programming | 2 | 08-03-2002 01:59 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
ELF format shared library?
HP Unix v 11. I have a shared library that I think I need to make ELF compatible because when I link it with my main pgm and a vendor's library I get this error:
ld: Mismatched ABI (not an ELF file) I can't find any info on how solve this. Is this a linkedit option or something to my c program I need to modify or a cc option??? Thanks. Matt |
|
||||
|
You say HPUX 11, but running on what?
There are basically five different runtimes, as follows.... CPU width Packaging PA-RISC1.1, 32 bit mode, SOM PA-RISC2.0, 32 bit mode, SOM PA-RISC2.0, 64 bit mode, ELF Itanium-2, 32 bit mode, ELF Itanium-2, 64 bit mode, ELF The immediate giveaway is if the library is of the form "lib*.so[.major[.minor]]" then it's ELF, if it's "lib*.sl" or "lib*.major[.minor]" then it's PA-RISC, if it's 32 bit then it's SOM. You can only link like with like. Last edited by porter; 11-14-2007 at 05:56 PM.. |
|
||||
|
Thanks, Now how to create an ELF shared library?
Porter:
Thanks for the the info. I can't answer the hardware question, but I'll find out if it makes a difference for my problem. I have to link in a vendor's library, which is ELF format, with one of our own shared library which is not. Understand all libs then have to be ELF. So, how do I get my shared library to be in ELF format? Thanks, Matt |
|
||||
|
This is a PA-RISC platform and should be using SOM for 32 bit or ELF for 64 bit. Are you building a 32bit or 64 bit application?
What is the library compiled for? Do "elfdump" on the library to determine the format of it and post the results. Last edited by porter; 11-14-2007 at 05:56 PM.. |
|
||||
|
What elfdump option?
What elfdump option?
|
| Sponsored Links | ||
|
|