Home » Developer & Programmer » Precompilers, OCI & OCCI » static linking with oracle oci
static linking with oracle oci [message #134568] Thu, 25 August 2005 10:08 Go to next message
sujarc
Messages: 1
Registered: August 2005
Junior Member
Hi,

I'm linking the Oracle 9I OCI library (32 bit) statically to my package, by specifying '-lclntst9' option in the make file, for HP Itanium version. But I'm getting the following errors:

/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'lxdobl' in load module './pkgoci.sl'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'nstrcarray' in load module './pkgoci.sl'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'ncrov' in load module './pkgoci.sl'.
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'nlhthteq' in load module './pkgoci.sl'.
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'nlhthskey' in load module './pkgoci.sl'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'lxdobl' in load module './pkgoci.sl'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'nstrcarray' in load module './pkgoci.sl'.
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'ncrov' in load module './pkgoci.sl'.
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'nlhthteq' in load module './pkgoci.sl'.
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'nlhthskey' in load module './pkgoci.sl'.
warning: error while loading pkgoci.sl: couldn't load file "./pkgoci.sl": unresolved symbol name

If I do dynamic linking instead of static linking, the problem goes away. But I need to do static linking. Will anybody please help me by advising what other options I have to specify other than '-lclntst9', for statically linking with Oracle 9i OCI.

Thanks,
Suja
Re: static linking with oracle oci [message #136020 is a reply to message #134568] Mon, 05 September 2005 07:49 Go to previous message
kmohan
Messages: 28
Registered: July 2005
Junior Member
Did you try using the rdbms/demo/demo_rdbms.mk? It has some instructions on how to build different demos in different modes.
eg: make -f demo_rdbms.mk build_static EXE=demo OBJS=demo.o
The above works on Linux & Solaris. Check on HP too.
Previous Topic: question regarding flushing buffer, checkpointing
Next Topic: Potential memory leaks in OCCI application.
Goto Forum:
  


Current Time: Fri Apr 19 17:01:46 CDT 2024