DBD::Oracle 1.22 not compiling on AIX 5.3, Oracle 10g client

DBD::Oracle 1.22 not compiling on AIX 5.3, Oracle 10g client

Post by Zahid.Naqv » Fri, 22 Aug 2008 03:53:26


root @ server > make

cp Oracle.pm blib/lib/DBD/Oracle.pm

cp oraperl.ph blib/lib/oraperl.ph

cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h

cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h

cp Oraperl.pm blib/lib/Oraperl.pm

cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h

cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm

cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm

/usr/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME"
=> "DBD::Oracle", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" =>
[]);'

/usr/bin/perl -p -e "s/~DRIVER~/Oracle/g"
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI/Driver.xst

/usr/bin/perl /usr/opt/perl5/lib/5.8.2/ExtUtils/xsubpp -typemap
/usr/opt/perl5/lib/5.8.2/ExtUtils/typemap -typemap typemap Oracle.xs >
Oracle.xsc && mv Oracle.xsc Oracle.c

cc_r -c -I/u01/app/oracle/product/10g/rdbms/public
-I/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -O -DVERSION=\"1.22\"
-DXS_VERSION=\"1.22\"
"-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE" -DUTF8_SUPPORT
-DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.1.0.2\" Oracle.c

cc_r -c -I/u01/app/oracle/product/10g/rdbms/public
-I/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -O -DVERSION=\"1.22\"
-DXS_VERSION=\"1.22\"
"-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE" -DUTF8_SUPPORT
-DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.1.0.2\" dbdimp.c

cc_r -c -I/u01/app/oracle/product/10g/rdbms/public
-I/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -O -DVERSION=\"1.22\"
-DXS_VERSION=\"1.22\"
"-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE" -DUTF8_SUPPORT
-DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.1.0.2\" oci8.c

Running Mkbootstrap for DBD::Oracle ()

chmod 644 Oracle.bs

rm -f blib/arch/auto/DBD/Oracle/Oracle.so


LD_RUN_PATH="/u01/app/oracle/product/10g/lib32:/u01/app/oracle/product/1
0g/rdbms/lib32" ld -bhalt:4 -bM:SRE
-bI:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp
-bE:Oracle.exp -bnoentry -lpthreads -lc_r Oracle.o dbdimp.o oci8.o -o
blib/arch/auto/DBD/Oracle/Oracle.so -L/u01/app/oracle/product/10g
-lclntsh -ldl -lc -lm -lpthreads -lodm -lbsd_r -lld -lperfstat

ld: 0711-317 ERROR: Undefined symbol: .OCIBindByName

ld: 0711-317 ERROR: Undefined symbol: .OCIDescribeAny

ld: 0711-317 ERROR: Undefined symbol: .OCIHandleFree

ld: 0711-317 ERROR: Undefined symbol: .OCIAttrGet

ld: 0711-317 ERROR: Undefined symbol: .OCIParamGet

ld: 0711-317 ERROR: Undefined symbol: .OCIDescriptorFree

ld: 0711-317 ERROR: Undefined symbol: .OCIHandleAlloc

ld: 0711-317 ERROR: Undefined symbol: .OCIStmtPrepare

ld: 0711-317 ERROR: Undefined symbol: .OCIDescriptorAlloc

ld: 0711-317 ERROR: Undefined symbol: .OCIDefineByPos

ld: 0711-317 ERROR: Undefined symbol: .OCITypeByName

ld: 0711-317 ERROR: Undefined symbol: .OCIObjectPin

ld: 0711-317 ERROR: Undefined symbol: .OCIAttrSet

ld: 0711-317 ERROR: Undefined s