Hi woolmilkporc,
I can find libclntsh.a file in lib and lib32 folder in the $ORACLE_HOME.
Previously makefile was designed for HP UX and CXXFLAGS was following:
CXXFLAGS = -L$(ORACLE_HOME)/lib32 -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/rdbms/lib
with this settings there is possible to compile program, but when I try to execute it I have received message:
Could not load program gnvprgrun:
Dependent module /oracle/product/home0/lib/
The module has an invalid magic number.
LIBPATH=/oracle/product/ho
settings is required by another application provided by vendor.
As I understand invalid magic number is connected with usage 64bit library placed in bin.
so I have changed
CXXFLAGS from -L$(ORACLE_HOME)/lib32 to -L$(ORACLE_HOME)/lib and
ld: 0711-317 ERROR: Undefined symbol: .sqlcxt
ld: 0711-317 ERROR: Undefined symbol: .sqlglm
has occured during compilation
Main Topics
Browse All Topics





by: woolmilkporcPosted on 2009-11-06 at 16:23:31ID: 25764291
Hi,
(using the oracle installation account).
could it be that youre missing libclntsh ?
If yes you need to create it using $ORACLE_HOME/bin/genclntsh
Check for existence of libclntsh.so and linclntsh.a in $ORACLE_HOME/lib !
Btw. SHLIB_PATH is only used on HPUX systems, LD_LIBRARY_PATH is for Solaris!
LIBPATH is for AIX, but is generally not needed (and sometimes even harmful) for compiling/linking.
wmp