DCOracle error

Bill Scherer scherbi at bam.com
Wed Jul 5 07:27:51 EDT 2000


Getting those Oracle lib lines correct is a bear.  Below is the line
from my makefile for DCOracle, built against Oracle 8.0.5.

ORACLE_L=-lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork
-lclient -lvsn -lcommon -lgeneric -lmm -lnlsrtl3 -lcore4 -lnlsrtl3
-lcore4 -lnlsrtl3 -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp
-lnetwork -lclient -lvsn -lcommon -lgeneric
-lepc -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lclient -lvsn
-lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4
-lnlsrtl3 -lnsl -lgeneric -ldl -lelf -lposix -lsql -lm -lm

(that's one line)

You'll notice that many of the entries from the stock Makefile ORACLE_L
line are missing.

Now, I have libnetv2.a in ORACLE_HOME/lib.  Possibly you neglected to
install some of the Oracle development libs?

 - Bill Scherer

sss wrote:

> I don't know why I got this error when I try to install DCOracle in
> the Linux machine.
> I've got Oracle sqlplus: SQL*Plus: Release 8.1.5.0.0
>
> Here is the err msg:
>
> [oracle at ironfist src]$ make
> gcc -fPIC -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5
> -DHAVE_CONFIG_H  -I/home/oracle/product/8.15/rdbms/demo
> -I/home/oracle/product/8.15/rdbms/public
> -I/home/oracle/product/8.15/network/public
> -I/home/oracle/product/8.15/plsql/public -DDCORACLE8 -c ./oci_.c
> In file included from ./oci_.c:562:
> Buffer.h:79: warning: static declaration for `PyImport_Import' follows
> non-static
> oci_8.c: In function `Logon':
> In file included from ./oci_.c:693:
> oci_8.c:95: warning: passing arg 4 of `OCIHandleAlloc' makes integer
> from pointer without a cast
> oci_8.c: In function `newLob':
> oci_8.c:446: warning: passing arg 4 of `OCIDescriptorAlloc' makes
> integer from pointer without a cast
> oci_8.c: In function `initoci_8':
> oci_8.c:483: warning: passing arg 3 of `OCIEnvInit' makes integer from
> pointer without a cast
> ./oci_.c: In function `_wrap_odescr':
> ./oci_.c:2595: warning: assignment from incompatible pointer type
> gcc -shared  oci_.o  -L/home/oracle/product/8.15/lib/
> -L/home/oracle/product/8.15/rdbms/lib
> /home/oracle/product/8.15/rdbms/lib/defopt.o
> /home/oracle/product/8.15/lib/sscoreed.o
> /home/oracle/product/8.15/lib/nautab.o
> /home/oracle/product/8.15/lib/naeet.o
> /home/oracle/product/8.15/lib/naect.o
> /home/oracle/product/8.15/lib/naedhs.o -lnetv2 -lnttcp -lnetwork -lncr
> -lnetv2 -lnttcp -lnetwork -lclient -lvsn -lcommon -lgeneric -lmm
> -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lnetv2 -lnttcp
> -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lclient -lvsn -lcommon
> -lgeneric -lepc -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lclient
> -lvsn -lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3
> -lsocket -lnsl -lgen -ldl -lelf -laio -lposix4 -lsql -lm -lm -lnetv2
> -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lclient -lvsn
> -lcommon -lgeneric -lmm -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3
> -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lclient
> -lvsn -lcommon -lgeneric -lepc -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4
> -lnlsrtl3 -lclient -lvsn -lcommon -lgeneric -lnlsrtl3 -lcore4
> -lnlsrtl3 -lcore4 -lnlsrtl3 -lsocket -lnsl -lgen -ldl -lelf -laio
> -lposix4 -lsql -lm -lm -o oci_.so
> /usr/bin/ld: cannot open -lnetv2: No such file or directory
> collect2: ld returned 1 exit status
> make: *** [oci_.so] Error 1
> [oracle at ironfist src]$
>
>
> --
> Sam Wun                            Firewalls / Security
> OneGuard Senior Software Engineer  Electronic Commerce
> eSec Limited                       Phone: +61 3 83715376
> mailto:swun at eSec.com.au            C++/JAVA/UNIX/OOP/OOD
>
>

--
William K. Scherer
Sr. Member of Applications Staff
Verizon Wireless







More information about the Python-list mailing list