Help: linker reports undefined symbols in libserver.a of oracle 8.0.4

Help: linker reports undefined symbols in libserver.a of oracle 8.0.4

Post by Bo X » Sun, 31 Dec 1899 09:00:00



On SunOS 5.5.1, I tried to link to oracle 8.0.4 libraries,
but the linker reports there are many symbols undefined in libserver.a.  

The relevant environment variables were set up as follows:
LIBPATH += -L$(ORACLE_HOME)/lib
LIBS += -lclient -lnetwork -lserver -lcore4  ...

Any suggestions will be appreciated.

Bo

 
 
 

1. HELP: undefined symbol: dlclose, dlsym, dlopen !!!

Hi !

Any Unix C++ makefile experts out there ? :-)

I use CC under Solaris and trying to compile two
*.cc files. (bench.cc = main program) and
querytest.cc (= just a function) I tries also
to include the CT-LIB/C for Sybase.

My makefile produce both the bench.o and querytest.o
but not my bench program. hmmmm

Any clues what my makefile miss with this error
message:

<unix prompt>make
CC -c bench.cc  +w -I. -I/sybase/include -Bstatic -pg -L/sybase/lib -lct
-lcs -lcomn -lintl -ltcl -ltli -lnsl -lblk -o bench.o
CC -c querytest.cc  +w -I. -I/sybase/include -Bstatic -pg -L/sybase/lib
-lct -lcs -lcomn -lintl -ltcl -ltli -lnsl -lblk -o querytest.o
CC -o bench bench.o querytest.o +w -I. -I/sybase/include -Bstatic -pg
-L/sybase/lib -lct -lcs -lcomn -lintl -ltcl -ltli -lnsl -lblk  
#/sybase/lib/libtcl.a /sybase/lib/libtli.a -lnsl
Undefined             first referenced
 symbol                   in file
dlclose                   /usr/lib/libc.a(nss_deffinder.o)
dlsym                     /usr/lib/libc.a(nss_deffinder.o)
dlopen                    /usr/lib/libc.a(nss_deffinder.o)
ld: fatal: Symbol referencing errors. No output written to bench
*** Error code 1
make: Fatal error: Command failed for target `bench'

------------------------

????????? hmmmmmmmm If I exclude the querytest.cc file
it works .... hmmmm

bench.cc:
#include <iostream.h>
#include <iomanip.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctpublic.h>

querytest.cc:
#include <stdio.h>
#include <ctpublic.h>

The example makefile:

http://www.ifi.uib.no/student/hf/erlend/makefile/makefile

Any help would be great ! :-) Thanks ! :-)

Erlend :-)
--------------
http://www.ifi.uib.no/student/hf/erlend/

2. Dbase 5 need help please

3. Undefined symbol nauzaoss at Oracle 8.1.5

4. ADO command object timing out scenario

5. psql: relocation error: psql: undefined symbol: PQgetssl

6. Y2K Solution

7. MemoryContextFree - CREATE FUNCTION gives "undefined symbol"

8. How to control transaction using ADODB and Xorasession

9. undefined symbol in create new function

10. (blowfish in Postgres) Undefined symbol -- YAY!

11. Undefined symbol

12. unable to use pgSQL due to undefined symbol

13. DriverManager undefined symbols