[Zope-DB] Problems compilliing DCOracle2 Redhat ES3 u5 Oracle 10g
10.1.0.3
Jet Wilda
jet.wilda at kobie.com
Thu Jul 7 12:29:32 EDT 2005
Hi,
Has anyone gotten DCOracle2 to compile and work with Zope 2.7.6
python 2.3.5 and Oracle 10g? I seem to be unable to get it to compile.
I got DCOracle2 from
http://cvs.zope.org/Products/DCOracle2/DCOracle2.tar.gz?tarball=1
I noticed a few things and here is what I've tried:
In DCOracle2/setup.py
INCL_DIR= map(lambda x: os.path.join(OH,x) ,
["rdbms/demo","network/public","plsql/public","rdbms/public"])
$ORACLE_HOME/network/public doesn't exist (network does but public isn't
there)
$ORACLE_HOME/plsql/public doesn't exist so I changed it to
$ORACLE_HOME/plsql/include
$ORACLE_HOME/rdbms/demo only has: aqxml.conf demo_rdbms32.mk
demo_rdbms64.mk demo_rdbms.mk (all the h files are in public)
So I changed it to:
INCL_DIR= map(lambda x: os.path.join(OH,x) ,
["rdbms/public","precomp/public","plsql/include"])
In DCOracle2/src/testora I changed
if [ ! -f "$ORACLE_HOME/rdbms/demo/xa.h" ]; then
to
if [ ! -f "$ORACLE_HOME/rdbms/public/xa.h" ]; then
In DCOracle2/src/Setup.in.dco I changed
ORACLE_INCLUDES=$(ORACLE_HOME)/rdbms/demo
-I$(ORACLE_HOME)/network/public -I$(ORACLE_HOME)/plsql/public
-I$(ORACLE_HOME)/rdbms/public -DCONFIGDEFINES
to
ORACLE_INCLUDES=$(ORACLE_HOME)/rdbms/public
-I$(ORACLE_HOME)/precomp/public -I$(ORACLE_HOME)/plsql/include
-DCONFIGDEFINES
However here is what I get when I try to make it:
[zope at DevZope DCOracle2]$ make
(cd src; \
./testora /home/zope/py2-3-5/bin/python)
Checking ORACLE_HOME...passed.
Checking for Oracle version...Oracle 9i found.
(cd src; \
cp -p Setup.in Setup )
(cd src; \
make -f Makefile.pre.in boot PYTHON=/home/zope/py2-3-5/bin/python ||
./setuperrors; \
make dummy || ./setuperrors)
make[1]: Entering directory
`/home/zope/zope/276client0/Products/DCOracle2/src'
rm -f *.o *~
rm -f *.a tags TAGS config.c Makefile.pre python sedscript
rm -f *.so *.sl so_locations
VERSION=`/home/zope/py2-3-5/bin/python -c "import sys; print
sys.version[:3]"`; \
installdir=`/home/zope/py2-3-5/bin/python -c "import sys; print
sys.prefix"`; \
exec_installdir=`/home/zope/py2-3-5/bin/python -c "import sys; print
sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=. srcdir=. \
VERSION=$VERSION \
installdir=$installdir \
exec_installdir=$exec_installdir \
Makefile
make[2]: Entering directory
`/home/zope/zope/276client0/Products/DCOracle2/src'
sed -n \
-e '1s/.*/1i\\/p' \
-e '2s%.*%# Generated automatically from Makefile.pre.in by
sedscript.%p' \
-e '/^VERSION=/s/^VERSION=[ ]*\(.*\)/s%@VERSION[@]%\1%/p' \
-e '/^CC=/s/^CC=[ ]*\(.*\)/s%@CC[@]%\1%/p' \
-e '/^CCC=/s/^CCC=[ ]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \
-e '/^LINKCC=/s/^LINKCC=[ ]*\(.*\)/s%@LINKCC[@]%\1%/p' \
-e '/^OPT=/s/^OPT=[ ]*\(.*\)/s%@OPT[@]%\1%/p' \
-e '/^LDFLAGS=/s/^LDFLAGS=[ ]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \
-e '/^DEFS=/s/^DEFS=[ ]*\(.*\)/s%@DEFS[@]%\1%/p' \
-e '/^LIBS=/s/^LIBS=[ ]*\(.*\)/s%@LIBS[@]%\1%/p' \
-e '/^LIBM=/s/^LIBM=[ ]*\(.*\)/s%@LIBM[@]%\1%/p' \
-e '/^LIBC=/s/^LIBC=[ ]*\(.*\)/s%@LIBC[@]%\1%/p' \
-e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/s%@RANLIB[@]%\1%/p' \
-e '/^MACHDEP=/s/^MACHDEP=[ ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \
-e '/^SO=/s/^SO=[ ]*\(.*\)/s%@SO[@]%\1%/p' \
-e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \
-e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \
-e '/^LINKFORSHARED=/s/^LINKFORSHARED=[
]*\(.*\)/s%@LINKFORSHARED[@]%\1%/p' \
-e '/^prefix=/s/^prefix=\(.*\)/s%^prefix=.*%prefix=\1%/p' \
-e
'/^exec_prefix=/s/^exec_prefix=\(.*\)/s%^exec_prefix=.*%exec_prefix=\1%/
p' \
/home/zope/py2-3-5/lib/python2.3/config/Makefile >sedscript
echo "/^#@SET_CCC@/d" >>sedscript
echo "/^installdir=/s%=.*%= /home/zope/py2-3-5%" >>sedscript
echo "/^exec_installdir=/s%=.*%=/home/zope/py2-3-5%" >>sedscript
echo "/^srcdir=/s%=.*%= .%" >>sedscript
echo "/^VPATH=/s%=.*%= .%" >>sedscript
echo "/^LINKPATH=/s%=.*%= %" >>sedscript
echo "/^BASELIB=/s%=.*%= %" >>sedscript
echo "/^BASESETUP=/s%=.*%= %" >>sedscript
sed -f sedscript ./Makefile.pre.in >Makefile.pre
/home/zope/py2-3-5/lib/python2.3/config/makesetup \
-m Makefile.pre -c
/home/zope/py2-3-5/lib/python2.3/config/config.c.in Setup -n
/home/zope/py2-3-5/lib/python2.3/config/Setup
make -f Makefile do-it-again
make[3]: Entering directory
`/home/zope/zope/276client0/Products/DCOracle2/src'
/home/zope/py2-3-5/lib/python2.3/config/makesetup \
-m Makefile.pre -c
/home/zope/py2-3-5/lib/python2.3/config/config.c.in Setup -n
/home/zope/py2-3-5/lib/python2.3/config/Setup
make[3]: Leaving directory
`/home/zope/zope/276client0/Products/DCOracle2/src'
make[2]: Leaving directory
`/home/zope/zope/276client0/Products/DCOracle2/src'
make[1]: Leaving directory
`/home/zope/zope/276client0/Products/DCOracle2/src'
make[1]: Entering directory
`/home/zope/zope/276client0/Products/DCOracle2/src'
make[1]: `dummy' is up to date.
make[1]: Leaving directory
`/home/zope/zope/276client0/Products/DCOracle2/src'
( cd src; \
make || ./builderrors)
make[1]: Entering directory
`/home/zope/zope/276client0/Products/DCOracle2/src'
gcc -pthread -fPIC -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-I/home/zope/py2-3-5/include/python2.3
-I/home/zope/py2-3-5/include/python2.3 @DEFS@
-I/u01/app/oracle/OraHome_1/rdbms/public
-I/u01/app/oracle/OraHome_1/precomp/public
-I/u01/app/oracle/OraHome_1/plsql/include -DORACLE9i -c ././dco2.c -o
./dco2.o
gcc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [dco2.o] Error 1
make[1]: Leaving directory
`/home/zope/zope/276client0/Products/DCOracle2/src'
---------------------------------------
There were errors building the dco2 module. This could be because of a
coding error in the dco2 module, or because your Oracle environment is
not set up properly. Please double check that your Oracle environment
is
properly established, and that the proper header files exist (e.g.
$ORACLE_HOME/rdbms/demo/*.h).
If you still have problems, check for updates to DCOracle2 on
http://www.zope.org
or check out the mailing list archives. You may also try inquiring on
the mailing list "zope at zope.org".
Please note that the support address "support at digicool.com" is for
Digital Creation's paid support customers only. Information about
obtaining
paid support is available at
http://www.digicool.com/Solutions/Support/
---------------------------------------
make: *** [src/dco2.so] Error 1
Any and all help would be greatly apreciated.
TIA
Jet
More information about the Zope-DB
mailing list