Home » Developer & Programmer » Precompilers, OCI & OCCI » Compilation of C components following Oracle 9i upgrade
icon7.gif  Compilation of C components following Oracle 9i upgrade [message #125539] Mon, 27 June 2005 06:10
marcusg
Messages: 2
Registered: June 2005
Junior Member
Hi there,

I am trying to recompile some C components for an application, following an Oracle upgrade from 8.0.6 to 9i (9.2.0).

The components are compile using the following make statement -

make -ef Makefile $*


The Makefile in turn includes a Makefile.inc file as follows -

include $(PRJ_DIR)/Makefile.inc


On initial attempts the compilation failes with the following error, due to a reference in Makefile.inc to naldflgs which is not present under Oracle 9.2.0:

gcc -G chris.o ivoarray.o IvoJni.o -o libIvoJni.so -L/home/sustain/WVC/development/JRUN/source/IvoSharedObjects -lwebconfig -lcfgcomm -lcfgapi -lcfgopt -ldbpool -lsqlexec -llogging -lsecure -lecv -lval -ldmh -llog -lsql -lclntsh /u00/app/oracle/product/9.2.0/lib/nautab.o /u00/app/oracle/product/9o
cat: cannot open /u00/app/oracle/product/9.2.0/lib/naldflgs
*** Error code 2
make: Fatal error: Command failed for target `libIvoJni.so'


On changing the Makefile.inc file to include ldflags instead of naldflags, the following errors are generated:

gcc -G chris.o ivoarray.o IvoJni.o -o libIvoJni.so -L/home/sustain/WVC/development/JRUN/source/IvoSharedObjects -lwebconfig -lcfgcomm -lcfgapi -lcfgopt -ldbpool -lsqlexec -llogging -lsecure -lecv -lval -ldmh -llog -lsql -lclntsh /u00/app/oracle/product/9.2.0/lib/nautab.o /u00/app/oracle/product/9o
ld: warning: option -o appears more than once, first setting taken
ld: fatal: library -lsql: not found
ld: fatal: library -lnetv2: not found
ld: fatal: library -lnttcp: not found
ld: fatal: library -lnetwork: not found
ld: fatal: library -lncr: not found
ld: fatal: library -lnetv2: not found
ld: fatal: library -lnttcp: not found
ld: fatal: library -lnetwork: not found
ld: fatal: library -lclient: not found
ld: fatal: library -lvsn: not found
ld: fatal: library -lcommon: not found
ld: fatal: library -lgeneric: not found
ld: fatal: library -lnlsrtl3: not found
ld: fatal: library -lcore4: not found
ld: fatal: library -lnlsrtl3: not found
ld: fatal: library -lcore4: not found
ld: fatal: library -lnlsrtl3: not found
ld: fatal: library -lnetv2: not found
ld: fatal: library -lnttcp: not found
ld: fatal: library -lnetwork: not found
ld: fatal: library -lncr: not found
ld: fatal: library -lnetv2: not found
ld: fatal: library -lnttcp: not found
ld: fatal: library -lnetwork: not found
ld: fatal: library -lclient: not found
ld: fatal: library -lvsn: not found
ld: fatal: library -lcommon: not found
ld: fatal: library -lgeneric: not found
ld: fatal: library -lepc: not found
ld: fatal: library -lnlsrtl3: not found
ld: fatal: library -lcore4: not found
ld: fatal: library -lnlsrtl3: not found
ld: fatal: library -lcore4: not found
ld: fatal: library -lnlsrtl3: not found
ld: fatal: library -lclient: not found
ld: fatal: library -lvsn: not found
ld: fatal: library -lcommon: not found
ld: fatal: library -lgeneric: not found
ld: fatal: library -lnlsrtl3: not found
ld: fatal: library -lcore4: not found
ld: fatal: library -lnlsrtl3: not found
ld: fatal: library -lcore4: not found
ld: fatal: library -lnlsrtl3: not found
ld: fatal: File processing errors. No output written to libIvoJni.so
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `libIvoJni.so'



Does anyone have any advice or info on this?

Thanks!! Razz
Previous Topic: using OCI calls for the bind array
Next Topic: Linux OCCI C++ compile error
Goto Forum:
  


Current Time: Thu Nov 21 15:20:34 CST 2024