Mismatch ABI (559 Views)
Reply
Advisor
Praving5
Posts: 24
Registered: ‎11-11-2008
Message 1 of 18 (559 Views)

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
Respected Contributor
Shinji Teragaito_1
Posts: 212
Registered: ‎12-20-2007
Message 2 of 18 (559 Views)

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,
Advisor
Praving5
Posts: 24
Registered: ‎11-11-2008
Message 3 of 18 (559 Views)

Re: Mismatch ABI

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

How do i go about it?
Acclaimed Contributor
Dennis Handly
Posts: 25,089
Registered: ‎03-06-2006
Message 4 of 18 (559 Views)

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?
Advisor
Praving5
Posts: 24
Registered: ‎11-11-2008
Message 5 of 18 (559 Views)

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?
Advisor
Praving5
Posts: 24
Registered: ‎11-11-2008
Message 6 of 18 (559 Views)

Re: Mismatch ABI

please help. How to use -L option for linking and compiling. I have no clue at all.
Frequent Advisor
Andre-Marcel Hellmund
Posts: 27
Registered: ‎03-16-2009
Message 7 of 18 (559 Views)

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
Acclaimed Contributor
Dennis Handly
Posts: 25,089
Registered: ‎03-06-2006
Message 8 of 18 (559 Views)

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.
Acclaimed Contributor
Dennis Handly
Posts: 25,089
Registered: ‎03-06-2006
Message 9 of 18 (559 Views)

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
Frequent Advisor
Andre-Marcel Hellmund
Posts: 27
Registered: ‎03-16-2009
Message 10 of 18 (559 Views)

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 ...
Advisor
Praving5
Posts: 24
Registered: ‎11-11-2008
Message 11 of 18 (559 Views)

Re: Mismatch ABI


Hi Guys,
Let me explain everything in detail:

My Requirement:
===============

I am working on connecting to SQL server 2005 hosted on Windows 2003 server from a HP-UX machine using unixODBC and freetds. Please refer below links:

http://www.unixodbc.org/
http://www.freetds.org/

So, I first need to compile unixODBC and then Freetds using unixODBC as the driver. This is my requirement.

What have I done so far:
========================

1. First (2 weeks back), I started to work on the above requirement.

2. I downloaded the source codes for unixODBC and Freetds and tried compiling on HP-UX IA-64 11.23 machine.

3. First, I ignored all the errors and went ahead on installing unixODBC and Freetds.

4. Then I used isql command to connect to SQL server. The connection succeeds as I can confirm from SQL server logs.

5. But, the issue is that I dont get SQL prompt on HP-UX machine as I should have got in ideal case. The isql command just hangs without giving me an SQL prompt.

6. Then it triggered me that might be due to some errors (that I ignored earlier) I am not getting the command prompt. And this is when I opened the config.log file for the first time and saw those errors and posted in forums.

What I want to do now:
======================

Today, I have got another machine which is HP-UX 11.31, IA-64 machine. I want to try from this machine this week if I can configure it.

So, far unixODBC compilation and installation succeeds on HP-UX 11.31 IA-64 machine but Freetds compilation is giving lots of erros.

Please find attached config.log and make.log file for Freetds.

Help Required:
==============

1. Please help me to resolve these errors on HP-UX 11.31 IA-64 machine
2. Alternatively, we can also look into the issues on hp-ux 11.23 IA-64 machine.

Please let me know any more information as required.
Advisor
Praving5
Posts: 24
Registered: ‎11-11-2008
Message 12 of 18 (559 Views)

Re: Mismatch ABI

Attaching make.log in this reply and config.log was in previous reply
Advisor
Praving5
Posts: 24
Registered: ‎11-11-2008
Message 13 of 18 (559 Views)

Re: Mismatch ABI

Guys,
I am sorry. I think the make.log and config.log file for freetds for hp-ux 11.31 IA-64 contained nothing..

i have just attached them again..
Advisor
Praving5
Posts: 24
Registered: ‎11-11-2008
Message 14 of 18 (559 Views)

Re: Mismatch ABI

Hi Guys,
Please find attached
config.log
make.log
make_check.log files on HP-UX 11.23 IA-64 machine
Advisor
Praving5
Posts: 24
Registered: ‎11-11-2008
Message 15 of 18 (559 Views)

Re: Mismatch ABI

Hi All,
I installed below patches on IA 11.23 machine...

PHSS_36347 assembler patch
PHSS_38140 aC++ Runtime (IA: A.06.20, PA: A.03.85)
PHSS_39093 linker + fdp cumulative patch
PHSS_39101 Integrity Unwind Library
PHSS_39293 Aries cumulative patch
PHSS_39823 HP C/aC++ Compiler (A.06.23)
PHSS_39825 u2comp/be/plugin (C.06.23)
PHSS_39828 Math Library Cumulative Patch


But, still i get lots of errors when making and doing make check. I have zipped them all. Please find them attached here:

Advisor
Praving5
Posts: 24
Registered: ‎11-11-2008
Message 16 of 18 (559 Views)

Re: Mismatch ABI

Today I didnt work on 11.31 IA because it didnt have C compiler. I am in process of installing it. May be tomorrow I will work on it.

but, Please help me to fix the issues on 11.23 IA as described above...
Acclaimed Contributor
Dennis Handly
Posts: 25,089
Registered: ‎03-06-2006
Message 17 of 18 (559 Views)

Re: Mismatch ABI

Your original config.log shows you using the bundled C compiler. Same with your make.log. cc_bundled is not for developing applications.

-mthreads
(Bundled) cc: warning 901: unknown option: `-hreads'

This should be "-mt".

>static inline void

The inline keyword is only supported in C99 (-AC99) or C++ modes.

>PHSS_39823 HP C/aC++ Compiler (A.06.23)

There is no evidence that you used this compiler??
Advisor
Praving5
Posts: 24
Registered: ‎11-11-2008
Message 18 of 18 (559 Views)

Re: Mismatch ABI

Thanks guys for all your help.

My special thanks to Shinji to come a long way with me and resolve it.

i used tsql command instead of isql and it worked after compiling freetds with some command line parameters.

anyways,
Thanks All and Shinji.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.