Link errors during Static linking of OCCI/ OCI programs in Oracle 12c

1.2k views Asked by At

I am trying to develop statically linked OCi/OCCI application and I am getting lots of undefined errors like following.

Can somebody tell me which .a libs to be included at link line.

Thanks.

/u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxxmlidc.o): In function lxXmlIdConv': lxxmlidc.c:(.text+0x15d): undefined reference tolxuCvtToCtx' lxxmlidc.c:(.text+0x23f): undefined reference to lxu4TstClass' lxxmlidc.c:(.text+0x36f): undefined reference tolxu4TstClass' lxxmlidc.c:(.text+0x386): undefined reference to lxu4TstClass' lxxmlidc.c:(.text+0x39d): undefined reference tolxu4TstClass' lxxmlidc.c:(.text+0x3be): undefined reference to lxu4TstClass' /u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxxmlidc.o):lxxmlidc.c:(.text+0x7d4): more undefined references tolxu4TstClass' follow /u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxuca.o): In function lxucaFindLastNonCombiningChar': lxuca.c:(.text+0xc82): undefined reference tolxu4GCombiningClass' /u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxuca.o): In function lxucaFindTrimPosition': lxuca.c:(.text+0xfd6): undefined reference tolxuCvtToCtx' /u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxuca.o): In function lxucaGetKey': lxuca.c:(text.hot+0xb2c): undefined reference tolxuComposition' lxuca.c:(text.hot+0xe06): undefined reference to lxu4GCombiningClass' lxuca.c:(text.hot+0xeaa): undefined reference tolxu4GCombiningClass' lxuca.c:(text.hot+0x112b): undefined reference to lxu4GCombiningClass' /u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxuca.o): In functionlxucaConvertAndDecompose': lxuca.c:(text.hot+0x181a): undefined reference to lxuDecomposition' /u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxuca.o): In functionlxucaGetImplicitWeightBase': lxuca.c:(text.hot+0x1b16): undefined reference to lxu4GBlock' /u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxpisac.o): In functionlxpIsACollationElement': lxpisac.c:(.text+0x2fc): undefined reference to lxuCvtToCtx' /u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxpisac.o): In functionlxpNumOfUc4CollationElem': lxpisac.c:(.text+0x753): undefined reference to lxuCvtToCtx' lxpisac.c:(.text+0x91a): undefined reference tolxuComposition' /u01/home/oracle/product/12.1.0.2/lib/libcore12.a(lrmini.o): In function lrminiu': lrmini.c:(.text+0x5b6): undefined reference tolxuCvtToCtx' /u01/home/oracle/product/12.1.0.2/lib/libcore12.a(lrmpu.o): In function lrmpu16to8': lrmpu.c:(text.unlikely+0x57): undefined reference tolxuStrLen' /u01/home/oracle/product/12.1.0.2/lib/libcore12.a(lsf.o): In function lsfiniu': lsf.c:(.text+0x551): undefined reference tolxuCvtToCtx' /u01/home/oracle/product/12.1.0.2/lib/libcore12.a(lsfu.o): In function lsfu16to8': lsfu.c:(text.unlikely+0x65): undefined reference tolxuStrLen' /u01/home/oracle/product/12.1.0.2/lib/libcore12.a(lrmckv.o): In function lrmckv': lrmckv.c:(.text+0x54f): undefined reference tolxuCmpBinStr' /u01/home/oracle/product/12.1.0.2/lib/libcore12.a(lrmpatk.o): In function lrmpatk': lrmpatk.c:(text.unlikely+0x2f1): undefined reference tolxuCmpBinStr' /u01/home/oracle/product/12.1.0.2/lib/libcore12.a(lrmcvv.o): In function lrmcvv': lrmcvv.c:(.text+0x219): undefined reference tolxuCmpBinStr'

1

There are 1 answers

2
Chandu On

Thanks I have used nm command for all the symbols on all Oracle libraries and included them in link line. After trying some permutations and combinations it got linked