HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mismatched ABI. 64-bit PA object file found in...
Operating System - HP-UX
1838108
Members
3487
Online
110124
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
06-25-2007 08:06 AM
06-25-2007 08:06 AM
I've added env pointing to the library:
LD_LIBRARY_PATH=/usr/lib/pa20_64
export LD_LIBRARY_PATH
I've added +DD64 to my compilation, and the direct path to the 64bit libraries, but still can't get around the above error during linking:
/usr/bin/cc -DUNIX -DSUN -DACE -DAPG -DMCE -DNDEBUG +DD64 -c cntldll.c
/usr/bin/cc -DUNIX -DSUN -DACE -DAPG -DMCE -DNDEBUG +DD64 -c dbcntrl.c
/usr/bin/cc -DUNIX -DSUN -DACE -DAPG -DMCE -DNDEBUG +DD64 -c optdll.c
/usr/bin/cc -DUNIX -DSUN -DACE -DAPG -DMCE -DNDEBUG +DD64 -c tohipaa.c
/usr/bin/cc -DUNIX -DSUN -DACE -DAPG -DMCE -DNDEBUG +DD64 -c -DDYNAMIC
inptest.c
/usr/bin/cc -o dintest cntldll.o dbcntrl.o inptest.o optdll.o tohipaa.o -L /usr/lib/pa20_64 -ldl -lm
/usr/ccs/bin/ld: cntldll.o: Mismatched ABI. 64-bit PA object file found in 32-bit link
The object files are all 64bit:
/diamond/shhsd/rjd/opt0606: file cntldll.o
cntldll.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
/diamond/shhsd/rjd/opt0606: file dbcntrl.o
dbcntrl.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
/diamond/shhsd/rjd/opt0606: file inptest.o
inptest.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
/diamond/shhsd/rjd/opt0606: file optdll.o
optdll.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
/diamond/shhsd/rjd/opt0606: file tohipaa.o
tohipaa.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
The library files appear to be 64bit:
/usr/lib/pa20_64: ls -l libdl*
-r-xr-xr-x 1 bin bin 73240 Feb 9 06:32 libdl.1
lrwxr-xr-x 1 root sys 9 Jan 8 2005 libdl.sl -> ./libdl.1
/usr/lib/pa20_64: file libdl.sl
libdl.sl: ELF-64 shared object file - PA-RISC 2.0 (LP64)
/usr/lib/pa20_64: ls -l libm*
-r-xr-xr-x 1 bin bin 274664 Jun 4 2001 libm.2
lrwxr-xr-x 1 root sys 8 Jan 8 2005 libm.sl -> ./libm.2
/usr/lib/pa20_64: file libm.2
libm.2: ELF-64 shared object file - PA-RISC 2.0 (LP64)
Please help. The only thought I have is that maybe the cc and ld need to be 64bit versions? I've seen documentation that wasn't necessary:
PA-RISC1.1 shared executable dynamically linked -not stripped
LD_LIBRARY_PATH=/usr/lib/pa20_64
export LD_LIBRARY_PATH
I've added +DD64 to my compilation, and the direct path to the 64bit libraries, but still can't get around the above error during linking:
/usr/bin/cc -DUNIX -DSUN -DACE -DAPG -DMCE -DNDEBUG +DD64 -c cntldll.c
/usr/bin/cc -DUNIX -DSUN -DACE -DAPG -DMCE -DNDEBUG +DD64 -c dbcntrl.c
/usr/bin/cc -DUNIX -DSUN -DACE -DAPG -DMCE -DNDEBUG +DD64 -c optdll.c
/usr/bin/cc -DUNIX -DSUN -DACE -DAPG -DMCE -DNDEBUG +DD64 -c tohipaa.c
/usr/bin/cc -DUNIX -DSUN -DACE -DAPG -DMCE -DNDEBUG +DD64 -c -DDYNAMIC
inptest.c
/usr/bin/cc -o dintest cntldll.o dbcntrl.o inptest.o optdll.o tohipaa.o -L /usr/lib/pa20_64 -ldl -lm
/usr/ccs/bin/ld: cntldll.o: Mismatched ABI. 64-bit PA object file found in 32-bit link
The object files are all 64bit:
/diamond/shhsd/rjd/opt0606: file cntldll.o
cntldll.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
/diamond/shhsd/rjd/opt0606: file dbcntrl.o
dbcntrl.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
/diamond/shhsd/rjd/opt0606: file inptest.o
inptest.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
/diamond/shhsd/rjd/opt0606: file optdll.o
optdll.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
/diamond/shhsd/rjd/opt0606: file tohipaa.o
tohipaa.o: ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
The library files appear to be 64bit:
/usr/lib/pa20_64: ls -l libdl*
-r-xr-xr-x 1 bin bin 73240 Feb 9 06:32 libdl.1
lrwxr-xr-x 1 root sys 9 Jan 8 2005 libdl.sl -> ./libdl.1
/usr/lib/pa20_64: file libdl.sl
libdl.sl: ELF-64 shared object file - PA-RISC 2.0 (LP64)
/usr/lib/pa20_64: ls -l libm*
-r-xr-xr-x 1 bin bin 274664 Jun 4 2001 libm.2
lrwxr-xr-x 1 root sys 8 Jan 8 2005 libm.sl -> ./libm.2
/usr/lib/pa20_64: file libm.2
libm.2: ELF-64 shared object file - PA-RISC 2.0 (LP64)
Please help. The only thought I have is that maybe the cc and ld need to be 64bit versions? I've seen documentation that wasn't necessary:
PA-RISC1.1 shared executable dynamically linked -not stripped
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2007 01:34 PM
06-25-2007 01:34 PM
Solution
> LD_LIBRARY_PATH=/usr/lib/pa20_64
> [...] -L /usr/lib/pa20_64 [...]
I know nothing, but rather than trying to
mess with the minds of the compiler and
linker, have you tried asking the compiler to
do the link with the same exotic options as
you specified for the compilation? Perhaps
something like:
/usr/bin/cc -o dintest cntldll.o dbcntrl.o
inptest.o optdll.o tohipaa.o +DD64 -ldl -lm
> The object files are all 64bit:
And without the "+DD64", what makes the link
"64-bit"? If you turn on enough verbosity,
you may be able to see all the fancy stuff
which "+DD64" does. (I assume that there is
some, and that you haven't specified all of
it (or even enough of it).)
> [...] -L /usr/lib/pa20_64 [...]
I know nothing, but rather than trying to
mess with the minds of the compiler and
linker, have you tried asking the compiler to
do the link with the same exotic options as
you specified for the compilation? Perhaps
something like:
/usr/bin/cc -o dintest cntldll.o dbcntrl.o
inptest.o optdll.o tohipaa.o +DD64 -ldl -lm
> The object files are all 64bit:
And without the "+DD64", what makes the link
"64-bit"? If you turn on enough verbosity,
you may be able to see all the fancy stuff
which "+DD64" does. (I assume that there is
some, and that you haven't specified all of
it (or even enough of it).)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2007 02:50 PM
06-25-2007 02:50 PM
Re: Mismatched ABI. 64-bit PA object file found in 32-bit link
That worked!
Thanks much...
Thanks much...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2007 02:53 PM
06-25-2007 02:53 PM
Re: Mismatched ABI. 64-bit PA object file found in 32-bit link
the +DD64 with the linker as well as the compiler was needed
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP