- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: ld: Mismatched ABI (not an ELF file) for -lc
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2007 08:44 PM
тАО05-07-2007 08:44 PM
We are upgrading our system from HP-UX 11o to HP-UX 11i. While compiling the C codes, we get the following error.
ld: Mismatched ABI (not an ELF file) for -lc
Fatal error.
The following is the entry that we have in the make file and while compiling this part, we get the above said error.
../bin/odlcomp: odlcomp.c $(HDRS)
$(LPATH) cc $(CFLAGS) odlcomp.c $(CCLIBS) -ldld -Wl,+s -o $@
Any help in this regard will be appreciated.
Please let me know if any more details are needed.
Thanks
Solved! Go to Solution.
- Tags:
- ABI mismatch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2007 09:39 PM
тАО05-07-2007 09:39 PM
Re: ld: Mismatched ABI (not an ELF file) for -lc
I know nothing about the error, but please readon.
Important:not an ELF file
This is a PA-RISC system.
So:
1) You may not want to compile an ELF program on this system.
2) If you did it on the previous system you probably had special software installed to do the job. I'm guessing its not installed on the 11i v1 system.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2007 11:18 PM
тАО05-07-2007 11:18 PM
Re: ld: Mismatched ABI (not an ELF file) for -lc
What does LPATH have in it? It better have /usr/lib/pa20_64 in it and not /usr/lib.
Note: You should NOT be using LPATH. This should be reserved for the driver. Use -L instead.
>SEP: 1) You may not want to compile an ELF program on this system.
64 bit mode files are ELF on PA.
- Tags:
- LPATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 01:17 AM
тАО05-08-2007 01:17 AM
Re: ld: Mismatched ABI (not an ELF file) for -lc
Thanks for the information. Again i tried compiling the scripts by including the /usr/lib/pa20_64 path in the LPATH. I get the same error as before. LPATH now contains LPATH=../bin:/lib:/usr/lib/pa20_64:/usr/lib:/pkg1/sybase_base/lib
We tried executing the same program in this machine. But while compiling it, we got the above said error.
Please advice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 01:30 AM
тАО05-08-2007 01:30 AM
Re: ld: Mismatched ABI (not an ELF file) for -lc
Do NOT use LPATH. Use the appropriate -L paths.
In your case, illegally using /lib and /usr/lib will give you this error. (Note /lib and /usr/lib are the same, don't use both.)
Using ../bin doesn't make sense since libs should be in lib and not bin. Remove /usr/lib/pa20_64 since the default.
So remove the LPATH macro and create:
LIBS=-L../bin -L/pkg1/sybase_base/lib
(Assuming you really want bin?)
Then add $(LIBS) to the end of your link line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 02:38 AM
тАО05-08-2007 02:38 AM
Re: ld: Mismatched ABI (not an ELF file) for -lc
When i tried to make the file with the instructions said by you, we got the following error.
sh: ../bin: Execute permission denied.
*** Error exit code 126
The bin directory actually has full execution permission. i.e it has 777 permission.
Could you please help us in solving this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 09:58 AM
тАО05-08-2007 09:58 AM
Solution>sh: ../bin: Execute permission denied.
It appears you are putting $(LIBS) on the beginning of the line. These are not env vars but driver options. I said:
Then add $(LIBS) to the END of your link line.