Re: Q:How to build OCI client on AIX 3.2
Date: 1996/09/22
Message-ID: <AE6ACC049668174965C_at_158.152.97.30>#1/1
The only way we have successfully ported OCI code from machine to machine is as follows:
We have a shell script which build a Makefile in our source code directory. This does the following:
- Copies $ORACLE_HOME/rdbms/lib/oracle.mk to ./Makefile
- Appends our own rules, dependancies, etc to the end of ./Makefile
- Ensures that our OCI compile statement is of the form:
MAKEOCI= $(ECHO) $(CC) $(LDFLAGS) -o $_at_ $? $(OCILDLIBS) $(CLIBS)
The sybmols CLIBS LDFLAGS OCILDLIBS and CLIBS are picked up by the Oracle Makefile. This works just find on all platforms except
(sound of tumpets please) AIX
And this is because Oralce make a mistake in the original Makefile. The define the OCILDLIBS twice. The first one is correct and works, the second, about three or four lines below, is incorrecnt and forces the error you have discovered. We get the technical person to edit the Makefile and insert a # on the start of the line for the second OCILDLIBS define.
Hope that helps.
Adrian
Adrian P Challinor +44-181-852-1605 Osiris Consultants Ltd 0860-290883
I know money talks. I heard it. It said "Goodbye!" Received on Sun Sep 22 1996 - 00:00:00 CEST