Re: help !: problem with oracle 8.0.3 libraries

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: 1997/12/09
Message-ID: <34909545.17582362_at_inet16>#1/1


I'm assuming your using PROC and not OCI based on the libs you reference below. If you are using OCI, let me know -- the same sort of thing will apply just different makefiles/different symbolics.

I've found it easiest to just include the sample makefile included in the precompiler directory and use the symbolic in there to link with. For example, by including the proc sample .mk file, I can simply use " -L$(ORACLE_HOME)/lib $(PROLDLIBS)" in my link line to get the right oracle libs, regardless of version.

This is a makefile template I use alot. I set up the symbolics:

TARGET = name of program I want to create SOURCE = list of .pc files I need to precompile/compile

PROC_ENV_FLAGS = any settings I want to override at make time for ProC CC_ENV_FLAGS = any setting I want to override at make time for CC



$(TARGET): $(SOURCE) $(SOURCE:.pc=.c) $(SOURCE:.pc=.o)

    $(CC) $(LDFLAGS) -t -o $(TARGET) \

        $(SOURCE:.pc=.o) -L$(ORACLE_HOME)/lib $(PROLDLIBS)  

include $(ORACLE_PROC_MAKEFILE)  

PROCFLAGS= ireclen=255 lines=yes $(PROC_ENV_FLAGS) \

           include=$(ORACLE_HOME)/proc/lib PROFLAGS=$(PROCFLAGS)   CFLAGS=-I. -g $(CC_ENV_FLAGS)



With the exception that the makefile has been renamed/moved from version to version (hence the symbolic ORACLE_PROC_MAKEFILE), this makefile works with 7.x and 8.x. The various settings for the oracle_proc_makefile would be:
o70: setenv ORACLE_PROC_MAKEFILE $ORACLE_HOME/proc/demo/proc.mk
o71: setenv ORACLE_PROC_MAKEFILE $ORACLE_HOME/proc/demo/proc.mk
o72: setenv ORACLE_PROC_MAKEFILE $ORACLE_HOME/proc/demo/proc.mk
o73: setenv ORACLE_PROC_MAKEFILE $ORACLE_HOME/precomp/demo/proc/proc.mk
o8 : setenv ORACLE_PROC_MAKEFILE $ORACLE_HOME/precomp/demo/proc/demo_proc.mk
 


On Tue, 09 Dec 1997 10:36:26 -0500, Alberto Colomberti <colomal_at_mail.northgrum.com> wrote:

>Hello:
>
>We're in the middle of porting our GUI/database application from Oracle
>Release 7.2.2.3 to Oracle 8.0.3 and we're having some problems finding
>the right libraries to link with in the new release of Oracle.
>
>With the earlier release of the database software, our makefile included
>the following list of x window, motif, and oracle libraries for linking
>with the rest of our program:
>
> -lXpm -lMrm -lXm -lXt -lX11 $(ORACLE_HOME)/lib/osntab.o -lsql -lsqlnet
>-lora -lpls -lslqnet -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lc3v6 -lcore3
>-lsocket -lnsl -lm -ldl -laio -lposix4
>
>The oracle libraries used above include: -lsql -lsqlnet -lora -lpls
>-lsqlnet -lnlsrtl3 -lc3v6 -lcore3
>
>In the 8.0.3 release, we've discovered there is no longer a libora
>library and that its contents have been sprinkled throughout a number of
>new libraries: libclient, libcommon, libgeneric to name a few.
>
>
>I'm hoping someone else out there has had a similar inconvenience and
>can recommend set of 8.0.3 libraries that we can successfully use to
>link with our program.
>
>Your help would be greatly appreciated.
 

Thomas Kyte
tkyte_at_us.oracle.com
Oracle Government
Bethesda MD  

http://govt.us.oracle.com/ -- downloadable utilities  



Opinions are mine and do not necessarily reflect those of Oracle Corporation  

Anti-Anti Spam Msg: if you want an answer emailed to you, you have to make it easy to get email to you. Any bounced email will be treated the same way i treat SPAM-- I delete it. Received on Tue Dec 09 1997 - 00:00:00 CET

Original text of this message