Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't static link demo OCI program

Status
Not open for further replies.

Clairvoyant1332

Programmer
May 21, 2003
147
0
0
US
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:

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top