1753436 Members
4750 Online
108794 Solutions
New Discussion юеВ

Mismatch ABI

 
Praving5
Advisor

Mismatch ABI

Hi Guys,
I am trying to compile unixODBC and get below errors in config.log file...

conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
ld: Unsatisfied symbol "yywrap" in file /var/tmp//ccLbw8jc.o
1 errors.
ld: Can't find library or mismatched ABI for -lfl
Fatal error.
ld: Unsatisfied symbol "libiconv_open" in file /var/tmp//cckNFiFe.o
ld: Unsatisfied symbol "libiconv_close" in file /var/tmp//cckNFiFe.o
ld: Unsatisfied symbol "libiconv" in file /var/tmp//cckNFiFe.o
3 errors.
ld: Can't find library or mismatched ABI for -liconv
Fatal error.
ld: Can't find library or mismatched ABI for -lcrypt
Fatal error.
ld: Can't find library or mismatched ABI for -lreadline
Fatal error.
ld: Can't find library or mismatched ABI for -lreadline
Fatal error.
ld: Unsatisfied symbol "atoll" in file /var/tmp//ccQnuMLb.o
1 errors.
ld: Unsatisfied symbol "stricmp" in file /var/tmp//ccCTHr5c.o
1 errors.
ld: Unsatisfied symbol "strnicmp" in file /var/tmp//cc8nsDla.o
1 errors.
ld: Can't find library or mismatched ABI for -lthread
Fatal error.
conftest.c:55: error: storage size of 'semctl_arg' isn't known
ld: Can't find library or mismatched ABI for -lsocket
Fatal error.
/usr/include/machine/sys/getppdp.h:65: error: array type has incomplete element type
In file included from conftest.c:95:
/usr/local/lib/gcc/ia64-hp-hpux11.23/4.1.1/include/varargs.h:4:2: error: #error "GCC no longer implements ."
/usr/local/lib/gcc/ia64-hp-hpux11.23/4.1.1/include/varargs.h:5:2: error: #error "Revise your code to use ."
conftest.c:98:18: error: msql.h: No such file or directory
ld: Unsatisfied symbol "setenv" in file /var/tmp//ccET3thb.o
1 errors.

I am using IA-64 machine. Can anyone help me please? I am stuck from a weeek...

Thanks and regards,
Pravin Goyal
17 REPLIES 17
Shinji Teragaito_1
Respected Contributor

Re: Mismatch ABI

> ld: Can't find library or mismatched ABI for -lfl
> ld: Can't find library or mismatched ABI for -liconv
> ld: Can't find library or mismatched ABI for -lcrypt
> ld: Can't find library or mismatched ABI for -lreadline

I guess you are trying to link 64-bit object with 32-bit shared
library. If so, you should have 64-bit shared libraries.
Otherwise, you should remove +DD64 from your CFLAGS to generate
32-bit binaries.

Could you show us the configure script line when you invoke it ?

Thank you,
Praving5
Advisor

Re: Mismatch ABI

hi Shinji,
You are correct... There seems to be some issue with 32/64 bit.

How do i go about it?
Dennis Handly
Acclaimed Contributor

Re: Mismatch ABI

These all look like configure errors. You are not suppose to look at them.

Where is your real error?

>There seems to be some issue with 32/64 bit.

Why do you think that?
You should immediately install the latest linker patch, where the error message has been separated into to. You probably have the "Can't find library" error?

Otherwise what does file(1) show for your objects? What -L have you given the linker? Are you using the same +DD for both compiling and linking?
Praving5
Advisor

Re: Mismatch ABI


These errors are literally killing me.

I am not sure what is to be done.

where to look for all below
What -L have you given the linker? Are you using the same +DD for both compiling and linking?
Praving5
Advisor

Re: Mismatch ABI

please help. How to use -L option for linking and compiling. I have no clue at all.
Andre-Marcel Hellmund
Frequent Advisor

Re: Mismatch ABI

Hey Pravin,

you need to record the output of make which will then show you the compiler and linker options (e.g. -L and +DD64).

To record the output of make, do the following:

make > make.log 2>&1 (for bash)
make >& make.log (for csh)

You could then probably attach the make.log file to one of your next messages (together with the config.log file) ...

Andi
Dennis Handly
Acclaimed Contributor

Re: Mismatch ABI

>These errors are literally killing me

Why? The configure step is suppose to get errors. This checks the existence of various libs and features. There are the errors you get when it start compiling unixODBC?

>where to look for all below

If you had the latest linker patch, it would tell you it couldn't find the shlib, not that it was the wrong ABI.
Dennis Handly
Acclaimed Contributor

Re: Mismatch ABI

Here is an example of the new wrong ABI message:
ld: Mismatched ABI for -lclntsh, found /u01/dbclient/oracle/product/11.1.0/client_1/lib//libclntsh.so
Andre-Marcel Hellmund
Frequent Advisor

Re: Mismatch ABI

If you do not really know how to analyze the configure and make output, why don't you just post the output, so that we could check what is something wrong with your configuration/build process? Beside installing the new linker patch, this would probably accelerate finding your errors ...