Operating System - HP-UX
1748183 Members
3548 Online
108759 Solutions
New Discussion юеВ

Hi, ld: Mismatched ABI for -lstd_v2, found /usr/lib/hpux32/libstd_v2.so

 
dnboy
Occasional Advisor

Hi, ld: Mismatched ABI for -lstd_v2, found /usr/lib/hpux32/libstd_v2.so

Hi,
I compile a program with 32bit on HPUX, when I link it with -lstd_v2(link flag: aCC +DD32 -AA -b -mt ), It tell me this message:
ld: Mismatched ABI for -lstd_v2, found /usr/lib/hpux32/libstd_v2.so
Fatal error.
*** Error exit code 1

this share lib obj information is :
$file /usr/lib/hpux32/libstd_v2.so
/usr/lib/hpux32/libstd_v2.so: ELF-32 shared object file - IA64

$chatr /usr/lib/hpux32/libstd_v2.so
/usr/lib/hpux32/libstd_v2.so:
32-bit ELF shared library
shared library dynamic path search:
LD_LIBRARY_PATH enabled first
SHLIB_PATH enabled second
embedded path enabled third /usr/lib/hpux32:/opt/langtools/lib/hpux32
internal name:
libstd_v2.so.1
shared library mapped private disabled
shared vtable support disabled
explicit unloading enabled
linkage table protection disabled
segments:
index type address flags size
7 text 04000000 z---c- D (default)
8 data 40010000 ---m-- D (default)
kernel assisted branch prediction enabled
lazy swap allocation for dynamic segments disabled
nulptr dereferences trap disabled
address space model: default
caliper dynamic instrumentation disabled
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: Hi, ld: Mismatched ABI for -lstd_v2, found /usr/lib/hpux32/libstd_v2.so

>I compile a program with 32bit on HP-UX

Since the linker insists that 32 bit is wrong, you need to check one of the object files using file(1).
dnboy
Occasional Advisor

Re: Hi, ld: Mismatched ABI for -lstd_v2, found /usr/lib/hpux32/libstd_v2.so

Thanks very much, I found I used 64 bit informix lib, haha, thanks again!
Dennis Handly
Acclaimed Contributor

Re: Hi, ld: Mismatched ABI for -lstd_v2, found /usr/lib/hpux32/libstd_v2.so

>Thanks very much

If you are happy with the answers you were given, please read the following about how to assign points:
http://forums.itrc.hp.com/service/forums/helptips.do?#33