Operating System - HP-UX
1752798 Members
5851 Online
108789 Solutions
New Discussion юеВ

Re: Problem while compling libcma.sl on 64bit

 
SOLVED
Go to solution
LeoThe13th
Advisor

Problem while compling libcma.sl on 64bit

Hi,
I am porting my application from 32bit to 64bit. While compilation i am using /usr/lib/libcma.sl in 32bit.
When same is compiled on 64bit i am getting error
"ld: Mismatched ABI (not an ELF file) for /usr/lib/libcma.sl"
Can you please help in finding the 64bit version of same library.

/usr/lib/libcma.2:
HP DCE/9000 1.8 PHSS_29669 Module: libcma.2 Date: Sep 5 2003 23:21:29
/usr/lib/libcma.1:
HP DCE/9000 1.5 PHSS_29669 Module: libcma.1 (Export) Date: Sep 6 2003 01:40:48


Thanks
Bhushan
+919833575488
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Problem while compling libcma.sl on 64bit

Hi:

As you are undoubtedly awaare, you can't mix 32-bit and 64-bit objects when linking. A 'file' command applied to a binary will tell you the bitness. That said:

See:

http://docs.hp.com/en/5187-2255/ch14s04.html

Regards!

...JRF...

LeoThe13th
Advisor

Re: Problem while compling libcma.sl on 64bit

Hi Thanks for reply. I have undersatnd the lib is 32bit.
I am not able to finding the 64bit version of that lib. Can u please help in finding the 64bit version.

i have tried with /usr/lib/libpthread.sl
but same error.

Thanks
Bhushan
James R. Ferguson
Acclaimed Contributor

Re: Problem while compling libcma.sl on 64bit

Hi (again):

See the section titled "CMA Threads Obsolescence" in the link I posted above.

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor
Solution

Re: Problem while compling libcma.sl on 64bit

You should only be using libcma on 10.20. On 11.00 and on, you should be using libpthread. And not use -D_PTHREADS_DRAFT4.

You should first port your 32 bit app to use kernel threads, then think about going to 64 bit.

>I have tried with /usr/lib/libpthread.sl

You don't use absolute paths. You link with -lpthread and let the linker figure out the path.
LeoThe13th
Advisor

Re: Problem while compling libcma.sl on 64bit

Thanks u.
I am able to resolve the probelm.

Thanks u very much.
Bhushan