[DB-SIG] ORACLE d/b API ...

Jim Fulton jim.fulton@digicool.com
Mon, 23 Jun 1997 11:07:29 -0400


The 1.3 Makefile assumes that you have made some changes to 
Python 1.3's Makefile (Modules/Makefile.pre.in).  Unfortunately,
we forgot to tell you what these changes were. :-(

In Modules/Makefile.pre.in, you need to add:

# ------ begin lines to add --------------
asharedmodule:	$(ASHAREDMODULE)$(SO)

$(ASHAREDMODULE)$(SO): $(ASHAREDMODULESOBS)
	$(LDSHARED) -o $(ASHAREDMODULE)$(SO) \
        $(ASHAREDMODULESOBS) \
	$(ASHAREDMODULESEXTRA)
# ------- end lines to add ---------------



after the line that looks like:

all:		$(LIB) ../python sharedmods


Jim

Lee Elms, (ORACLE UK Response Centre Manager) wrote:
> 
> Can anybody help ... I am attempting to 'make' the 'oracledb-0.1.2' module on
> HP/UX v9 against python v1.3.  After making the edits to the Makefile, I get
> the following error:
> 
> 
> make
>         if [ "oracledb" != your-module ]; then \
>           make -f /usr/rc/pms/python/lib/python/lib/Makefile
> 'INCLDIR=/usr/rc/pms/python/include/Py -I.'
> CONFIGINCLDIR=/usr/rc/pms/python/lib/python/lib \
>                 ASHAREDMODULE=oracledb \
>                 'ASHAREDMODULESOBS=oradbmodule.o dbi.o ' \
>                 'ASHAREDMODULESEXTRA=-lm /usr/infosrv/v714/lib/libocic.a
> /usr/infosrv/v714/lib/libora.a /usr/infosrv/v714/lib/libnlsrtl3.a
> /usr/infosrv/v714/lib/libsqlnet.a /usr/infosrv/v714/lib/libora.a
> /usr/infosrv/v714/lib/libcore3.a /usr/infosrv/v714/lib/osntab.o
> /usr/infosrv/v714/lib/libsqlnet.a /usr/infosrv/v714/lib/libc3v6.a
> /usr/infosrv/v714/lib/libnlsrtl3.a /usr/infosrv/v714/lib/libcore3.a' \
>                 'OPT=-I./ ' \
>                 asharedmodule; \
>         fi
> Make:  Don't know how to make asharedmodule.  Stop.
> *** Error code 1
> 
> 
> My knowledge of 'make' is limited ... I don't understand the significance of
> 'asharedmodule' ... I expect there is some 'obvious' stage that I have missed
> ...
> 
> 
> 
>   -- Lee Elms
> 
> _______________
> DB-SIG  - SIG on Tabular Databases in Python
> 
> send messages to: db-sig@python.org
> administrivia to: db-sig-request@python.org
> _______________
 

-- 
Jim Fulton         Digital Creations
jim@digicool.com   540.371.6909
## Python is my favorite language ##
##     http://www.python.org/     ##

_______________
DB-SIG  - SIG on Tabular Databases in Python

send messages to: db-sig@python.org
administrivia to: db-sig-request@python.org
_______________