Linking error

 
SOLVED
Go to solution
Raghav_5
New Member

Linking error

Hi,
The server is HP-UX B.11.23 U ia64. I am trying to compile my proc program and link it.

This is the script which i am using to compile and link the binaries.

/usr/bin/cc -DHPUNX -DHPUX -DHPUX_SOURCE -c -V $1.c -I/usr/include -I$ORACLE_HOME
-I$ORACLE_HOME/lib -I$ORACLE_HOME/precomp/public

/usr/bin/cc -o $1 $1.o -L$ORACLE_HOME/lib `cat $ORACLE_HOME/lib/sysli
blist` $ORACLE_HOME/lib/libclntsh.so.9.0 $ORACLE_HOME/lib/libclient9.a $ORACLE_H
OME/lib/libsql9.a $ORACLE_HOME/lib/scorept.o $ORACLE_HOME/lib/sscoreed.o $ORACLE
_HOME/rdbms/lib/kpudfo.o $ORACLE_HOME/lib/libnsslb9.a $ORACLE_HOME/lib/libnoname
9.a $ORACLE_HOME/lib/libntcp9.a $ORACLE_HOME/lib/libntcps9.a $ORACLE_HOME/lib/li
bntns9.a $ORACLE_HOME/lib/libn9.a $ORACLE_HOME/lib/libnl9.a $ORACLE_HOME/lib/lib
nro9.a $ORACLE_HOME/lib/libnbeq9.a $ORACLE_HOME/lib/libvsn9.a $ORACLE_HOME/lib/l
ibcommon9.a $ORACLE_HOME/lib/libskgxp9.a $ORACLE_HOME/lib/libgeneric9.a $ORACLE_
HOME/lib/libpls9.a $ORACLE_HOME/lib/libplp9.a $ORACLE_HOME/lib/libtrace9.a $ORAC
LE_HOME/lib/libnls9.a $ORACLE_HOME/lib/libcore9.a $ORACLE_HOME/lib/libmm.a

Note: I have made implicit library calls instead of using -lclntsh9, -lclient9 etc as the previous error i got was path not
found or mismatched data ABI.

But now i am getting the following error

cc: HP aC++/ANSI C B3910B A.06.00 [Aug 25 2004]
ld: Mismatched Data ABI. Expected None but found EF_IA_64_ABI64 in file /doracle/app/oracle/product/9.2.0.2.0/lib/libclntsh.so.9.0
Fatal error.

can anyone suggest What linking option should i use?
4 REPLIES 4
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Linking error

I think the other libraires that you are using call that library.

That's why its giving that error.
Vibhor Kumar Agarwal
Alessandro Pilati
Esteemed Contributor
Solution

Re: Linking error

Raghav,
check this past forum:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=126837

Regards,
Alex
if you don't try, you'll never know if you are able to
Alessandro Pilati
Esteemed Contributor

Re: Linking error

Raghav,
in this pdf there is a small description of generic "Mismatched ABI" error:

http://us-support3.external.hp.com/iv/data/documents/DE_SW_UX_swrec_EN_01_E/SW-Development.pdf

Hope it can be a minimal help.

Cheers,
Alex
if you don't try, you'll never know if you are able to
Raghav_5
New Member

Re: Linking error

Thanks for your suggestions. I have chosen to use the 32 bit libraries and i was able to link the libraries. Thanks for your time and response.

Note :
The 32 bit shared libraries was in $ORACLE_HOME/lib32 directory