The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



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 05:33 PM
shared library areef4u UNIX for Advanced & Expert Users 1 08-01-2006 03:14 AM
Shared Library Problem vinz HP-UX 1 08-27-2004 11:57 AM
Shared Library rajashekaran High Level Programming 2 08-03-2002 02:59 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-01-2007
wntrmead wntrmead is offline
Registered User
  
 

Join Date: Nov 2007
Location: NY
Posts: 7
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
  #2 (permalink)  
Old 11-01-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
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..
  #3 (permalink)  
Old 11-02-2007
wntrmead wntrmead is offline
Registered User
  
 

Join Date: Nov 2007
Location: NY
Posts: 7
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
  #4 (permalink)  
Old 11-02-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Post the results of

Code:
uname -a
Which compiler are you using?
  #5 (permalink)  
Old 11-05-2007
wntrmead wntrmead is offline
Registered User
  
 

Join Date: Nov 2007
Location: NY
Posts: 7
uname -a
HP-UX ga001hds B.11.11 U 9000/800 1882221739 unlimited-user license

c compiler
cc: HP-UX c compiler
  #6 (permalink)  
Old 11-05-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
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..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0