Operating System - HP-UX
1753562 Members
5824 Online
108796 Solutions
New Discussion

UX 11.31 ld: Can't find library or mismatched ABI for -lcurl

 
Carlos Dubon
Frequent Visitor

UX 11.31 ld: Can't find library or mismatched ABI for -lcurl

Good day gurus, please help me,

I have a problem in a RX26600 with UX 11.31

I´m compiling this script:

PATH=$PATH:/usr/local/lib:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib


c4gl /produccion/gestor/EJECUCION/4GL/eje_g1.4gl /produccion/gestor/EJECUCION/4G
L/libr_eje.4gl /produccion/gestor/EJECUCION/4GL/cons_fun.4gl /produccion/gestor/
EJECUCION/4GL/sd2.c -I `curl-config --cflags --libs` -o /produccion/gestor/EJECU
CION/4GL/eje_g2.4ge

The command curl-config --cflags --libs shows:

-I/usr/local/include/
-L/usr/local/lib -lcurl -Wl,+b -Wl,/usr/local/lib -L/opt/openssl/lib -lssl -lcrypto

When compile follows the next error:

ld: Can't find library or mismatched ABI for -lcurl
Fatal error.

Somebody can help me please?
Thanks.
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: UX 11.31 ld: Can't find library or mismatched ABI for -lcurl

Hi Carlos:

A "mismatched ABI" error means that your are trying to link 32-bit and 64-bit objects. All objects must be one or the other bitness. The first object found on the command line is used by the linker to determine what bitness the remaining objects must be.

Regards!

...JRF...
Jeeshan
Honored Contributor

Re: UX 11.31 ld: Can't find library or mismatched ABI for -lcurl

Carlos Dubon
Frequent Visitor

Re: UX 11.31 ld: Can't find library or mismatched ABI for -lcurl

James, thanks for your quick answer.

I understand that can´t exist a mix whith 32 and 64 bits libraries but i already use the chatr command to check curl libraries and all appears to be 32 bits, now the problem is how to identify all the libraries to check if they are 32 bits or 64 bits. or how can I set to only use only 32 bits libraries.

Thanks for your help again.
Dennis Handly
Acclaimed Contributor

Re: UX 11.31 ld: Can't find library or mismatched ABI for -lcurl

>Somebody can help me please?

It might be helpful to download the latest linker patch where there are two separate messages for "Can't find library" and "mismatched ABI".

As JRF said, you should use "file /usr/local/lib/libcurl.*" to see what architecture you have.

Typically for IPF the libs should be in /usr/local/lib/hpux32.
Carlos Dubon
Frequent Visitor

Re: UX 11.31 ld: Can't find library or mismatched ABI for -lcurl

Thanks, for all your help. The problem its solved. Was a problem with the library of mi aplication are of 32 bits and the compiler need librarys of 64 bits. The recompile mi aplication with de parameter +DD64 generate librarys for 64 bits. Then all work fine.

THANKS, I hope help somebody with the same problem.
James R. Ferguson
Acclaimed Contributor

Re: UX 11.31 ld: Can't find library or mismatched ABI for -lcurl

Hi (again):

You're welcome. Please also read:

http://forums11.itrc.hp.com/service/forums/helptips.do?#28

Regards!

...JRF...