dbTalk Databases Forums  

Oracle, Solaris 8 and ensuring dynamic linking

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss Oracle, Solaris 8 and ensuring dynamic linking in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Phill W.
 
Posts: n/a

Default Oracle, Solaris 8 and ensuring dynamic linking - 10-13-2008 , 04:37 AM






(Apologies if I'm in the wrong place; please feel free to point a Newbie
in the right direction).

We're starting to migrate a swathe of Solaris 8-hosted, embedded SQL,
'C' programs from Ingres to Oracle.

In the past we've "suffered" with having to statically link the Ingres
client libraries into each and every Executable, which I'd like to
avoid, going forward.

What compiler (cc)/linker (ld) options do we need to specify to use to
ensure that the Oracle client libraries are loaded /dynamically/?


We're currently "getting things to work" using:

[makefile]
ORACLE_ORACLE=*-L $(ORACLE_HOME)/lib32 -l clntsh*
OTHER_LIBS= . . .
PROC_C=lines=yes

....then...

$(NAME).c : $(NAME).pc
proc $(PROC_C) $(NAME).pc

$(NAME).o : $(NAME).c
$(CC) -g -c $(NAME).c -o $(NAME).o

$(NAME).exe : $(NAME).o $(OTHER_LIBS)
$(CC) -g $(ORACLE_LIBS) $(OTHER_LIBS) \
-o $(NAME).exe

but I have a nasty feeling that will statically link the run-time.

TIA,
Phill W.

Reply With Quote
  #2  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Oracle, Solaris 8 and ensuring dynamic linking - 10-15-2008 , 01:15 PM






On Mon, 13 Oct 2008 10:37:19 +0100, "Phill W."
<p-.-a-.-w-a-r-d-@-o-p-e-n-.-a-c-.-u-k> wrote:

Quote:
but I have a nasty feeling that will statically link the run-time.
There are no such things like nasty feelings. If there are nasty
feelings they should be corroborated by evidence, gotten from the nm
command.
AFAIK Oracle libraries have always been linked dynamically.

--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
  #3  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Oracle, Solaris 8 and ensuring dynamic linking - 10-15-2008 , 01:15 PM



On Mon, 13 Oct 2008 10:37:19 +0100, "Phill W."
<p-.-a-.-w-a-r-d-@-o-p-e-n-.-a-c-.-u-k> wrote:

Quote:
but I have a nasty feeling that will statically link the run-time.
There are no such things like nasty feelings. If there are nasty
feelings they should be corroborated by evidence, gotten from the nm
command.
AFAIK Oracle libraries have always been linked dynamically.

--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
  #4  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Oracle, Solaris 8 and ensuring dynamic linking - 10-15-2008 , 01:15 PM



On Mon, 13 Oct 2008 10:37:19 +0100, "Phill W."
<p-.-a-.-w-a-r-d-@-o-p-e-n-.-a-c-.-u-k> wrote:

Quote:
but I have a nasty feeling that will statically link the run-time.
There are no such things like nasty feelings. If there are nasty
feelings they should be corroborated by evidence, gotten from the nm
command.
AFAIK Oracle libraries have always been linked dynamically.

--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
  #5  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Oracle, Solaris 8 and ensuring dynamic linking - 10-15-2008 , 01:15 PM



On Mon, 13 Oct 2008 10:37:19 +0100, "Phill W."
<p-.-a-.-w-a-r-d-@-o-p-e-n-.-a-c-.-u-k> wrote:

Quote:
but I have a nasty feeling that will statically link the run-time.
There are no such things like nasty feelings. If there are nasty
feelings they should be corroborated by evidence, gotten from the nm
command.
AFAIK Oracle libraries have always been linked dynamically.

--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
  #6  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Oracle, Solaris 8 and ensuring dynamic linking - 10-15-2008 , 01:15 PM



On Mon, 13 Oct 2008 10:37:19 +0100, "Phill W."
<p-.-a-.-w-a-r-d-@-o-p-e-n-.-a-c-.-u-k> wrote:

Quote:
but I have a nasty feeling that will statically link the run-time.
There are no such things like nasty feelings. If there are nasty
feelings they should be corroborated by evidence, gotten from the nm
command.
AFAIK Oracle libraries have always been linked dynamically.

--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
  #7  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Oracle, Solaris 8 and ensuring dynamic linking - 10-15-2008 , 01:15 PM



On Mon, 13 Oct 2008 10:37:19 +0100, "Phill W."
<p-.-a-.-w-a-r-d-@-o-p-e-n-.-a-c-.-u-k> wrote:

Quote:
but I have a nasty feeling that will statically link the run-time.
There are no such things like nasty feelings. If there are nasty
feelings they should be corroborated by evidence, gotten from the nm
command.
AFAIK Oracle libraries have always been linked dynamically.

--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
  #8  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Oracle, Solaris 8 and ensuring dynamic linking - 10-15-2008 , 01:15 PM



On Mon, 13 Oct 2008 10:37:19 +0100, "Phill W."
<p-.-a-.-w-a-r-d-@-o-p-e-n-.-a-c-.-u-k> wrote:

Quote:
but I have a nasty feeling that will statically link the run-time.
There are no such things like nasty feelings. If there are nasty
feelings they should be corroborated by evidence, gotten from the nm
command.
AFAIK Oracle libraries have always been linked dynamically.

--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
  #9  
Old   
Phill W.
 
Posts: n/a

Default Re: Oracle, Solaris 8 and ensuring dynamic linking - 10-16-2008 , 07:06 AM



sybrandb (AT) hccnet (DOT) nl wrote:

Quote:
. . . they should be corroborated by evidence, gotten from the nm
command.
Agreed - if only I had the /faintest/ idea where to look for these
definitions; I'm *painfully* new to Oracle.

Quote:
AFAIK Oracle libraries have always been linked dynamically.
That's mighty good to know!

Many Thanks,
Phill W.


Reply With Quote
  #10  
Old   
Phill W.
 
Posts: n/a

Default Re: Oracle, Solaris 8 and ensuring dynamic linking - 10-16-2008 , 07:06 AM



sybrandb (AT) hccnet (DOT) nl wrote:

Quote:
. . . they should be corroborated by evidence, gotten from the nm
command.
Agreed - if only I had the /faintest/ idea where to look for these
definitions; I'm *painfully* new to Oracle.

Quote:
AFAIK Oracle libraries have always been linked dynamically.
That's mighty good to know!

Many Thanks,
Phill W.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.