Clairvoyant1332
Programmer
I'm looking to create a staticly linked OCI program, and I'm having trouble just getting the demo programs to work correctly. I'm running Oracle9i on a Solaris 8 system. Here's the output of the make command:
Compiler version:
WorkShop Compilers 5.0 98/12/15 C 5.0
I would think that something like this would work right out of the box.
I tried rerunning the cc command like this:
cc -L/oracle/product/9.2.0/lib/ -L/oracle/product/9.2.0/rdbms/lib/ -o cdemo81 cdemo81.o -lclntst9 -lnls9 -lnro9 `cat /oracle/product/9.2.0/lib/sysliblist` -R/oracle/product/9.2.0/lib -laio -lposix4 -lkstat -lm -lthread
Now it links, but it behaves strangely when moved to a Solaris 8 system not running Oracle.
Any ideas?
Dennis
Code:
# make -f demo_rdbms.mk build_static OBJS=cdemo81.o EXE=cdemo81
cc -L/oracle/product/9.2.0/lib/ -L/oracle/product/9.2.0/rdbms/lib/ -o cdemo81 cdemo81.o -lclntst9 `cat /oracle/product/9.2.0/lib/sysliblist` -R/oracle/product/9.2.0/lib -laio -lposix4 -lkstat -lm -lthread
Undefined first referenced
symbol in file
slxlcbk /oracle/product/9.2.0/lib//libclntst9.a(lxinitc.o)
slxlobc /oracle/product/9.2.0/lib//libclntst9.a(lxinitc.o)
slxlobj /oracle/product/9.2.0/lib//libclntst9.a(lxinitc.o)
ncrfgext /oracle/product/9.2.0/lib//libclntst9.a(ncrfigbl.o)
ncrfgbls /oracle/product/9.2.0/lib//libclntst9.a(ncrfigbl.o)
ld: fatal: Symbol referencing errors. No output written to cdemo81
*** Error code 1
make: Fatal error: Command failed for target `build_static'
Compiler version:
WorkShop Compilers 5.0 98/12/15 C 5.0
I would think that something like this would work right out of the box.
I tried rerunning the cc command like this:
cc -L/oracle/product/9.2.0/lib/ -L/oracle/product/9.2.0/rdbms/lib/ -o cdemo81 cdemo81.o -lclntst9 -lnls9 -lnro9 `cat /oracle/product/9.2.0/lib/sysliblist` -R/oracle/product/9.2.0/lib -laio -lposix4 -lkstat -lm -lthread
Now it links, but it behaves strangely when moved to a Solaris 8 system not running Oracle.
Any ideas?
Dennis