[Zope] (no subject)

Alexandre A. Drummond Barroso alexandre@intelligenesis.net
Tue, 6 Jun 2000 09:44:31 -0300


This is a multi-part message in MIME format.

------=_NextPart_000_003D_01BFCF9B.D09A0AE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

You both had the same problem I have now: make Oracle 8i (in my case, Oracle
8.1.6) work with Zope.
DCOracle is working well (Makefile attached to this message) but ZOracle
isn't running yet.

We are posting e-mails about it on the list for a while and nobody answered,
so I must think that nobody on Zope universe is using Oracle 8i (neither NT
nor Linux Oracle 8i client).
There isn't any detailed documentation about it. The ZOracle installation
instructions are simple but, in my opinion, incomplete.

To solve this situation, I'm making a call to everybody that uses or wants
to use Zope with Oracle 8i. My goal is finally document the installation
process and make it work properly.

Please contact me ASAP.

Regards,

Alexandre A. Drummond Barroso.

------=_NextPart_000_003D_01BFCF9B.D09A0AE0
Content-Type: application/octet-stream;
	name="Makefile"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Makefile"

# Generated automatically from Makefile.pre by makesetup.=0A=
# Generated automatically from Makefile.pre.in by sedscript.=0A=
# Universal Unix Makefile for Python extensions=0A=
# =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
=0A=
# Short Instructions=0A=
# ------------------=0A=
=0A=
# 1. Build and install Python (1.5 or newer).=0A=
# 2. "make -f Makefile.pre.in boot"=0A=
# 3. "make"=0A=
# You should now have a shared library.=0A=
=0A=
# Long Instructions=0A=
# -----------------=0A=
=0A=
# Build *and install* the basic Python 1.5 distribution.  See the=0A=
# Python README for instructions.  (This version of Makefile.pre.in=0A=
# only withs with Python 1.5, alpha 3 or newer.)=0A=
=0A=
# Create a file Setup.in for your extension.  This file follows the=0A=
# format of the Modules/Setup.in file; see the instructions there.=0A=
# For a simple module called "spam" on file "spammodule.c", it can=0A=
# contain a single line:=0A=
#   spam spammodule.c=0A=
# You can build as many modules as you want in the same directory --=0A=
# just have a separate line for each of them in the Setup.in file.=0A=
=0A=
# If you want to build your extension as a shared library, insert a=0A=
# line containing just the string=0A=
#   *shared*=0A=
# at the top of your Setup.in file.=0A=
=0A=
# Note that the build process copies Setup.in to Setup, and then works=0A=
# with Setup.  It doesn't overwrite Setup when Setup.in is changed, so=0A=
# while you're in the process of debugging your Setup.in file, you may=0A=
# want to edit Setup instead, and copy it back to Setup.in later.=0A=
# (All this is done so you can distribute your extension easily and=0A=
# someone else can select the modules they actually want to build by=0A=
# commenting out lines in the Setup file, without editing the=0A=
# original.  Editing Setup is also used to specify nonstandard=0A=
# locations for include or library files.)=0A=
=0A=
# Copy this file (Misc/Makefile.pre.in) to the directory containing=0A=
# your extension.=0A=
=0A=
# Run "make -f Makefile.pre.in boot".  This creates Makefile=0A=
# (producing Makefile.pre and sedscript as intermediate files) and=0A=
# config.c, incorporating the values for sys.prefix, sys.exec_prefix=0A=
# and sys.version from the installed Python binary.  For this to work,=0A=
# the python binary must be on your path.  If this fails, try=0A=
#   make -f Makefile.pre.in Makefile VERSION=3D1.5 installdir=3D<prefix>=0A=
# where <prefix> is the prefix used to install Python for installdir=0A=
# (and possibly similar for exec_installdir=3D<exec_prefix>).=0A=
=0A=
# Note: "make boot" implies "make clobber" -- it assumes that when you=0A=
# bootstrap you may have changed platforms so it removes all previous=0A=
# output files.=0A=
=0A=
# If you are building your extension as a shared library (your=0A=
# Setup.in file starts with *shared*), run "make" or "make sharedmods"=0A=
# to build the shared library files.  If you are building a statically=0A=
# linked Python binary (the only solution of your platform doesn't=0A=
# support shared libraries, and sometimes handy if you want to=0A=
# distribute or install the resulting Python binary), run "make=0A=
# python".=0A=
=0A=
# Note: Each time you edit Makefile.pre.in or Setup, you must run=0A=
# "make Makefile" before running "make".=0A=
=0A=
# Hint: if you want to use VPATH, you can start in an empty=0A=
# subdirectory and say (e.g.):=0A=
#   make -f ../Makefile.pre.in boot srcdir=3D.. VPATH=3D..=0A=
=0A=
=0A=
# =3D=3D=3D Bootstrap variables (edited through "make boot") =3D=3D=3D=0A=
=0A=
# The prefix used by "make inclinstall libainstall" of core python=0A=
installdir=3D	/usr=0A=
=0A=
# The exec_prefix used by the same=0A=
exec_installdir=3D/usr=0A=
=0A=
# Source directory and VPATH in case you want to use VPATH.=0A=
# (You will have to edit these two lines yourself -- there is no=0A=
# automatic support as the Makefile is not generated by=0A=
# config.status.)=0A=
srcdir=3D		.=0A=
VPATH=3D		.=0A=
=0A=
# =3D=3D=3D Variables that you may want to customize (rarely) =3D=3D=3D=0A=
=0A=
# (Static) build target=0A=
TARGET=3D		python=0A=
=0A=
# Installed python binary (used only by boot target)=0A=
PYTHON=3D		python=0A=
=0A=
# Add more -I and -D options here=0A=
CFLAGS=3D		$(OPT) -I$(INCLUDEPY) -I$(EXECINCLUDEPY) $(DEFS)=0A=
=0A=
# These two variables can be set in Setup to merge extensions.=0A=
# See example[23].=0A=
BASELIB=3D	=0A=
BASESETUP=3D	=0A=
=0A=
# =3D=3D=3D Variables set by makesetup =3D=3D=3D=0A=
=0A=
MODOBJS=3D	=0A=
MODLIBS=3D	$(LOCALMODLIBS) $(BASEMODLIBS)=0A=
=0A=
# =3D=3D=3D Definitions added by makesetup =3D=3D=3D=0A=
=0A=
LOCALMODLIBS=3D=0A=
BASEMODLIBS=3D    =0A=
SHAREDMODS=3D oci_$(SO) Buffer$(SO)=0A=
TKPATH=3D:lib-tk=0A=
GLHACK=3D-Dclear=3D__GLclear=0A=
PYTHONPATH=3D$(COREPYTHONPATH)=0A=
COREPYTHONPATH=3D$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(STDWINP=
ATH)$(TKPATH)=0A=
MACHDEPPATH=3D:plat-$(MACHDEP)=0A=
TESTPATH=3D=0A=
SITEPATH=3D=0A=
DESTPATH=3D=0A=
MACHDESTLIB=3D$(BINLIBDEST)=0A=
DESTLIB=3D$(LIBDEST)=0A=
ORACLE_LIBS=3D$(ORACLE_HOME)/lib/ -L$(ORACLE_HOME)/rdbms/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)=0A=
ORACLE_L=3D-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=0A=
# -lsocket -lgen -ldl -lelf -laio -lposix4 -lsql -lm -lm=0A=
ORACLE_INCLUDES=3D$(ORACLE_HOME)/rdbms/demo =
-I$(ORACLE_HOME)/rdbms/public -I$(ORACLE_HOME)/network/public =
-I$(ORACLE_HOME)/plsql/public=0A=
=0A=
=0A=
# =3D=3D=3D Variables from configure (through sedscript) =3D=3D=3D=0A=
=0A=
VERSION=3D	1.5=0A=
CC=3D		gcc=0A=
LINKCC=3D		$(PURIFY) $(CC)=0A=
SGI_ABI=3D	@SGI_ABI@=0A=
OPT=3D		-g -O2=0A=
LDFLAGS=3D	=0A=
LDLAST=3D		@LDLAST@=0A=
DEFS=3D		-DHAVE_CONFIG_H=0A=
LIBS=3D		-lieee -ldl  -lpthread=0A=
LIBM=3D		-lm=0A=
LIBC=3D		=0A=
RANLIB=3D		ranlib=0A=
MACHDEP=3D	linux-i386=0A=
SO=3D		.so=0A=
LDSHARED=3D	gcc -shared=0A=
CCSHARED=3D	-fPIC=0A=
LINKFORSHARED=3D	-rdynamic=0A=
=0A=
# Install prefix for architecture-independent files=0A=
prefix=3D		/usr=0A=
=0A=
# Install prefix for architecture-dependent files=0A=
exec_prefix=3D	${prefix}=0A=
=0A=
# =3D=3D=3D Fixed definitions =3D=3D=3D=0A=
=0A=
# Shell used by make (some versions default to the login shell, which is =
bad)=0A=
SHELL=3D		/bin/sh=0A=
=0A=
# Expanded directories=0A=
BINDIR=3D		$(exec_installdir)/bin=0A=
LIBDIR=3D		$(exec_prefix)/lib=0A=
MANDIR=3D		$(installdir)/man=0A=
INCLUDEDIR=3D	$(installdir)/include=0A=
SCRIPTDIR=3D	$(prefix)/lib=0A=
=0A=
# Detailed destination directories=0A=
BINLIBDEST=3D	$(LIBDIR)/python$(VERSION)=0A=
LIBDEST=3D	$(SCRIPTDIR)/python$(VERSION)=0A=
INCLUDEPY=3D	$(INCLUDEDIR)/python$(VERSION)=0A=
EXECINCLUDEPY=3D	$(exec_installdir)/include/python$(VERSION)=0A=
LIBP=3D		$(exec_installdir)/lib/python$(VERSION)=0A=
DESTSHARED=3D	$(BINLIBDEST)/site-packages=0A=
=0A=
LIBPL=3D		$(LIBP)/config=0A=
=0A=
PYTHONLIBS=3D	$(LIBPL)/libpython$(VERSION).a=0A=
=0A=
MAKESETUP=3D	$(LIBPL)/makesetup=0A=
MAKEFILE=3D	$(LIBPL)/Makefile=0A=
CONFIGC=3D	$(LIBPL)/config.c=0A=
CONFIGCIN=3D	$(LIBPL)/config.c.in=0A=
SETUP=3D		$(LIBPL)/Setup=0A=
=0A=
SYSLIBS=3D	$(LIBM) $(LIBC)=0A=
=0A=
ADDOBJS=3D	$(LIBPL)/python.o config.o=0A=
=0A=
# Portable install script (configure doesn't always guess right)=0A=
INSTALL=3D	$(LIBPL)/install-sh -c=0A=
# Shared libraries must be installed with executable mode on some =
systems;=0A=
# rather than figuring out exactly which, we always give them executable =
mode.=0A=
# Also, making them read-only seems to be a good idea...=0A=
INSTALL_SHARED=3D	${INSTALL} -m 555=0A=
=0A=
# =3D=3D=3D Fixed rules =3D=3D=3D=0A=
=0A=
# Default target.  This builds shared libraries only=0A=
default:	sharedmods=0A=
=0A=
# Build everything=0A=
all:		static sharedmods=0A=
=0A=
# Build shared libraries from our extension modules=0A=
sharedmods:	$(SHAREDMODS)=0A=
=0A=
# Build a static Python binary containing our extension modules=0A=
static:		$(TARGET)=0A=
$(TARGET):	$(ADDOBJS) lib.a $(PYTHONLIBS) Makefile $(BASELIB)=0A=
		$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) \=0A=
		 $(ADDOBJS) lib.a $(PYTHONLIBS) \=0A=
		 $(LINKPATH) $(BASELIB) $(MODLIBS) $(LIBS) $(SYSLIBS) \=0A=
		 -o $(TARGET) $(LDLAST)=0A=
=0A=
install:	sharedmods=0A=
		if test ! -d $(DESTSHARED) ; then \=0A=
			mkdir $(DESTSHARED) ; else true ; fi=0A=
		-for i in X $(SHAREDMODS); do \=0A=
			if test $$i !=3D X; \=0A=
			then $(INSTALL_SHARED) $$i $(DESTSHARED)/$$i; \=0A=
			fi; \=0A=
		done=0A=
=0A=
# Build the library containing our extension modules=0A=
lib.a:		$(MODOBJS)=0A=
		-rm -f lib.a=0A=
		ar cr lib.a $(MODOBJS)=0A=
		-$(RANLIB) lib.a =0A=
=0A=
# This runs makesetup *twice* to use the BASESETUP definition from Setup=0A=
config.c Makefile:	Makefile.pre Setup $(BASESETUP) $(MAKESETUP)=0A=
		$(MAKESETUP) \=0A=
		 -m Makefile.pre -c $(CONFIGCIN) Setup -n $(BASESETUP) $(SETUP)=0A=
		$(MAKE) -f Makefile do-it-again=0A=
=0A=
# Internal target to run makesetup for the second time=0A=
do-it-again:=0A=
		$(MAKESETUP) \=0A=
		 -m Makefile.pre -c $(CONFIGCIN) Setup -n $(BASESETUP) $(SETUP)=0A=
=0A=
# Make config.o from the config.c created by makesetup=0A=
config.o:	config.c=0A=
		$(CC) $(CFLAGS) -c config.c=0A=
=0A=
# Setup is copied from Setup.in *only* if it doesn't yet exist=0A=
Setup:=0A=
		cp $(srcdir)/Setup.in Setup=0A=
=0A=
# Make the intermediate Makefile.pre from Makefile.pre.in=0A=
Makefile.pre: Makefile.pre.in sedscript=0A=
		sed -f sedscript $(srcdir)/Makefile.pre.in >Makefile.pre=0A=
=0A=
# Shortcuts to make the sed arguments on one line=0A=
P=3Dprefix=0A=
E=3Dexec_prefix=0A=
H=3DGenerated automatically from Makefile.pre.in by sedscript.=0A=
L=3DLINKFORSHARED=0A=
=0A=
# Make the sed script used to create Makefile.pre from Makefile.pre.in=0A=
sedscript:	$(MAKEFILE)=0A=
	sed -n \=0A=
	 -e '1s/.*/1i\\/p' \=0A=
	 -e '2s%.*%# $H%p' \=0A=
	 -e '/^VERSION=3D/s/^VERSION=3D[ 	]*\(.*\)/s%@VERSION[@]%\1%/p' \=0A=
	 -e '/^CC=3D/s/^CC=3D[ 	]*\(.*\)/s%@CC[@]%\1%/p' \=0A=
	 -e '/^CCC=3D/s/^CCC=3D[ 	]*\(.*\)/s%#@SET_CCC[@]%CCC=3D\1%/p' \=0A=
	 -e '/^LINKCC=3D/s/^LINKCC=3D[ 	]*\(.*\)/s%@LINKCC[@]%\1%/p' \=0A=
	 -e '/^OPT=3D/s/^OPT=3D[ 	]*\(.*\)/s%@OPT[@]%\1%/p' \=0A=
	 -e '/^LDFLAGS=3D/s/^LDFLAGS=3D[ 	]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \=0A=
	 -e '/^DEFS=3D/s/^DEFS=3D[ 	]*\(.*\)/s%@DEFS[@]%\1%/p' \=0A=
	 -e '/^LIBS=3D/s/^LIBS=3D[ 	]*\(.*\)/s%@LIBS[@]%\1%/p' \=0A=
	 -e '/^LIBM=3D/s/^LIBM=3D[ 	]*\(.*\)/s%@LIBM[@]%\1%/p' \=0A=
	 -e '/^LIBC=3D/s/^LIBC=3D[ 	]*\(.*\)/s%@LIBC[@]%\1%/p' \=0A=
	 -e '/^RANLIB=3D/s/^RANLIB=3D[ 	]*\(.*\)/s%@RANLIB[@]%\1%/p' \=0A=
	 -e '/^MACHDEP=3D/s/^MACHDEP=3D[ 	]*\(.*\)/s%@MACHDEP[@]%\1%/p' \=0A=
	 -e '/^SO=3D/s/^SO=3D[ 	]*\(.*\)/s%@SO[@]%\1%/p' \=0A=
	 -e '/^LDSHARED=3D/s/^LDSHARED=3D[ 	]*\(.*\)/s%@LDSHARED[@]%\1%/p' \=0A=
	 -e '/^CCSHARED=3D/s/^CCSHARED=3D[ 	]*\(.*\)/s%@CCSHARED[@]%\1%/p' \=0A=
	 -e '/^$L=3D/s/^$L=3D[ 	]*\(.*\)/s%@$L[@]%\1%/p' \=0A=
	 -e '/^$P=3D/s/^$P=3D\(.*\)/s%^$P=3D.*%$P=3D\1%/p' \=0A=
	 -e '/^$E=3D/s/^$E=3D\(.*\)/s%^$E=3D.*%$E=3D\1%/p' \=0A=
	 $(MAKEFILE) >sedscript=0A=
	echo "/^#@SET_CCC@/d" >>sedscript=0A=
	echo "/^installdir=3D/s%=3D.*%=3D	$(installdir)%" >>sedscript=0A=
	echo "/^exec_installdir=3D/s%=3D.*%=3D$(exec_installdir)%" >>sedscript=0A=
	echo "/^srcdir=3D/s%=3D.*%=3D		$(srcdir)%" >>sedscript=0A=
	echo "/^VPATH=3D/s%=3D.*%=3D		$(VPATH)%" >>sedscript=0A=
	echo "/^LINKPATH=3D/s%=3D.*%=3D	$(LINKPATH)%" >>sedscript=0A=
	echo "/^BASELIB=3D/s%=3D.*%=3D	$(BASELIB)%" >>sedscript=0A=
	echo "/^BASESETUP=3D/s%=3D.*%=3D	$(BASESETUP)%" >>sedscript=0A=
=0A=
# Bootstrap target=0A=
boot:	clobber=0A=
	VERSION=3D`$(PYTHON) -c "import sys; print sys.version[:3]"`; \=0A=
	installdir=3D`$(PYTHON) -c "import sys; print sys.prefix"`; \=0A=
	exec_installdir=3D`$(PYTHON) -c "import sys; print sys.exec_prefix"`; \=0A=
	$(MAKE) -f $(srcdir)/Makefile.pre.in VPATH=3D$(VPATH) =
srcdir=3D$(srcdir) \=0A=
		VERSION=3D$$VERSION \=0A=
		installdir=3D$$installdir \=0A=
		exec_installdir=3D$$exec_installdir \=0A=
		Makefile=0A=
=0A=
# Handy target to remove intermediate files and backups=0A=
clean:=0A=
		-rm -f *.o *~=0A=
=0A=
# Handy target to remove everything that is easily regenerated=0A=
clobber:	clean=0A=
		-rm -f *.a tags TAGS config.c Makefile.pre $(TARGET) sedscript=0A=
		-rm -f *.so *.sl so_locations=0A=
=0A=
=0A=
# Handy target to remove everything you don't want to distribute=0A=
distclean:	clobber=0A=
		-rm -f Makefile Setup=0A=
=0A=
# Rules appended by makedepend=0A=
=0A=
oci_.o: $(srcdir)/oci_.c; $(CC) $(CCSHARED)  -I$(ORACLE_INCLUDES) =
-DDCORACLE8 $(CFLAGS) -c $(srcdir)/oci_.c=0A=
oci_$(SO):  oci_.o; $(LDSHARED)  oci_.o  -L$(ORACLE_LIBS) -o oci_$(SO)=0A=
Buffer.o: $(srcdir)/Buffer.c; $(CC) $(CCSHARED)  $(CFLAGS) -c =
$(srcdir)/Buffer.c=0A=
Buffer$(SO):  Buffer.o; $(LDSHARED)  Buffer.o  -o Buffer$(SO)=0A=

------=_NextPart_000_003D_01BFCF9B.D09A0AE0--