- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- ld: Mismatched ABI (not an ELF file) for -lgd
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
тАО02-14-2008 04:36 AM
тАО02-14-2008 04:36 AM
ld: Mismatched ABI (not an ELF file) for -lgd
I'm trying to compile the perl module GD-2.35 but I' getting this error:
Running Mkbootstrap for GD ()
chmod 644 GD.bs
rm -f blib/arch/auto/GD/GD.sl
LD_RUN_PATH="/usr/local/lib:/usr/local/pa20_64/lib:/usr/lib" /usr/bin/ld -b -L/usr/local/pa20_64/lib -L/lib/pa20_64 GD.o -o blib/arch/auto/GD/GD.sl \
-L/usr/local/lib -L/usr/lib/X11 -L/usr/lib -lgd -lfreetype -ljpeg -lpng -lz -lm -lX11 -lXpm \
ld: Mismatched ABI (not an ELF file) for -lgd, found /usr/local/lib/libgd.sl
Fatal error.
*** Error exit code 1
Any idei fo what might be the problem?
Thks!
- Tags:
- ABI mismatch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2008 05:22 AM
тАО02-14-2008 05:22 AM
Re: ld: Mismatched ABI (not an ELF file) for -lgd
The error indicates that you are trying to mix 32-bit and 64-bit objects in your linking. This is illegal. '/usr/local/lib/libgd.sl' appears to be a 32-bit object.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2008 05:34 AM
тАО02-14-2008 05:34 AM
Re: ld: Mismatched ABI (not an ELF file) for -lgd
I think libgd.sl is 64bits:
root@porsx013:/tmp/GD-2.35# file /usr/local/lib/libgd.sl
/usr/local/lib/libgd.sl: PA-RISC2.0 shared library -not stripped
PA-RISC2.0 is 64bits, isn't it?
Thks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2008 06:05 AM
тАО02-14-2008 06:05 AM
Re: ld: Mismatched ABI (not an ELF file) for -lgd
Your file is 32-bit. A 64-bit object will be reported by 'file' with the string "ELF" like:
ELF-64 shared object file - PA-RISC 2.0 (LP64)
A 32-bit object would simply say:
PA-RISC2.0 shared library
Another (crude) way to tell the difference is to run 'odump' on the object. This will only work for 32-bit ones. You use 'elfdump' for 64-bit objects.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2008 07:14 AM
тАО02-14-2008 07:14 AM