[Zope] DCOracle Compile Problem

Andrew andrew@eventera.com
Sun, 12 Sep 1999 10:11:19 -0400


When trying to compile the DCOracle package, I get the error below.

I am using Oracle8i, version 8.1.5.0.0. I have checked ORACLE_HOME,
LD_LIBRARY_PATH. I can connect with sqlplus.  ProC is installed and
configured. I know I am missing something simple, but its going
right past me.

TIA
Drew

gcc -fPIC  -I/usr/local/oracle/product/8.1.5/rdbms/demo
-I/usr/local/oracle/product/8.1.5/rdbms/public
-I/usr/local/oracle/product/8.1.5/network/public
-I/usr/local/oracle/product/8.1.5/plsql/public -DDCORACLE8 -g -O2
-I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -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/usr/local/oracle/product/8.1.5/lib/
-L/usr/local/oracle/product/8.1.5/rdbms/lib
/usr/local/oracle/product/8.1.5/rdbms/lib/defopt.o
/usr/local/oracle/product/8.1.5/lib/sscoreed.o
/usr/local/oracle/product/8.1.5/lib/nautab.o
/usr/local/oracle/product/8.1.5/lib/naeet.o
/usr/local/oracle/product/8.1.5/lib/naect.o
/usr/local/oracle/product/8.1.5/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




$ cat Setup
*shared*

# Setup file for Oracle 8.0.4 (Tested for Solarus on Intel and Sparc).

# Unfortunately, the libraries needed to link Oracle change from
revision
# to revision.

# Oracle provides a make file for building "demo" programs in
# $ORACLE_HOME/rdbms/demo/demo_rdbms.mk.  I have been unable to
# use this make file to build Python extensions. Adapting it is
# not adequate, because it may change for new Oracle revs.
# My approach is to use demo_rdbms.mk to build one of the
# demo programs, look at the libraries linked, and start from there. :-(




ORACLE_INCLUDES=$(ORACLE_HOME)/rdbms/demo -I$(ORACLE_HOME)/rdbms/public
-I$(ORACLE_HOME)/network/public -I$(ORACLE_HOME)/plsql/public
-I$(ORACLE_HOME)/precomp/demo

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 -lsocket -lnsl -lgen -ldl -lelf
-laio -lposix4 -lsql -lm -lm

ORACLE_LIBS=$(ORACLE_HOME)/lib/ -L$(ORACLE_HOME)/rdbms/lib
-L$(ORACLE_HOME)/network/lib $(ORACLE_HOME)/rdbms/lib/defopt.o
$(ORACLE_HOME)/lib/sscoreed.o $(ORACLE_HOME)/lib/nautab.o
$(ORACLE_HOME)/lib/naeet.o $(ORACLE_HOME)/lib/naect.o
$(ORACLE_HOME)/lib/naedhs.o $(ORACLE_L) $(ORACLE_L)

oci_ oci_.c -I$(ORACLE_INCLUDES) -L$(ORACLE_LIBS) -DDCORACLE8

Buffer Buffer.c