problem compiling c (pro*c) program - problem with oracle shared library

From: Daud <daud11_at_hotmail.com>
Date: 27 May 2005 23:43:35 -0700
Message-ID: <1117262615.426052.32690_at_g44g2000cwa.googlegroups.com>



HPUX 11iv2 (11.23)
HP Itanium2
8 Gig RAM
Oracle9i (9.2.0.6.0)

I got this error below that I have not been able to solve. Can someone help? I am not a really a programmer .. more like a dba.

$ Make_idbicms

ld: Can't find library or mismatched ABI for -llibclntsh.so Fatal error.
collect2: ld returned 1 exit status

$ more Make_idbicms

gcc -DPRINT -DLOG idba1Mainsend.c idba1ReadTransmit.c idba1AssembleMsg.c idba1UtilMQ.c idba1LogError.c idba1ReadConfig.c  idba1UpdateReceive.c idba1DecodeMsg.c -ansi -I../INCLUDE -I/u01/app/oracle/9.2.0/precomp/public -L/opt/mqm/lib -lmqic - L/u01/app/oracle/9.2.0/lib -l:libclntsh.so idba1EnableSignal.o -o idbicms

libclntsh.so is there in $ORACLEHOME/lib.

'Oracle Programmer' has been installed. But in $ORACLE_HOME/precomp/demo I only see these directories:

$ cd $ORACLE_HOME/precomp/demo
$ ls -l

total 6

drwxrwxr-x   2 oracle     dba           1024 May 11 10:55 procob
drwxrwxr-x   2 oracle     dba           1024 May 11 10:55 procob2
drwxr-xr-x   2 oracle     dba           1024 May 10 14:02 sql

The environment variables are as follows:

        ORACLE_BASE=/u01/app/oracle
        export ORACLE_BASE

        ORACLE_HOME=$ORACLE_BASE/9.2.0
        export ORACLE_HOME


[Quoted] LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:$ORACLE_HOME/rdbms/lib
        export LD_LIBRARY_PATH

        SHLIB_PATH=$ORACLE_HOME/lib32:/usr/lib:$ORACLE_HOME/rdbms/lib32
        export SHLIB_PATH

        PATH=$PATH:$ORACLE_HOME/bin:/opt/java1.4/bin
        export PATH

        ORACLE_SID=IDBP1
        export ORACLE_SID


CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib
        export CLASSPATH

        TNS_ADMIN=$ORACLE_HOME/network/admin
        export TNS_ADMIN

        PATH=/usr/ccs/bin:/etc:/usr/bin:/usr/local/bin:$PATH
        export PATH

Anything wrong?

regards
Daud Received on Sat May 28 2005 - 08:43:35 CEST

Original text of this message