* Library overwriting
@ 1999-05-17 4:00 Kim Jae Yeol
1999-05-17 4:00 ` Peter da Silva
1999-05-17 4:00 ` David Burgess
0 siblings, 2 replies; 10+ messages in thread
From: Kim Jae Yeol @ 1999-05-17 4:00 UTC (permalink / raw)
Hi, all.
I have question about software installation.
After installing base OS, solaris, digital unix or whatever, then gcc
and other gnu stuff are installed. I am curious about if installing
softwares like gcc and components required by gcc overwrites any
previous shared runtime library ?
And if libraries are overwritten does this effect other running programs
which were not recompiled after such components are installed.
One more question.
Can an application load the shared libraries in unix dynamically ? Wanna
know if the shared library in unix is similar to DLL in windows.
Thanks in advance
spacedye@hanmail.net
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Library overwriting
1999-05-17 4:00 Library overwriting Kim Jae Yeol
1999-05-17 4:00 ` Peter da Silva
@ 1999-05-17 4:00 ` David Burgess
1999-05-22 4:00 ` Kim Jae Yeol
1 sibling, 1 reply; 10+ messages in thread
From: David Burgess @ 1999-05-17 4:00 UTC (permalink / raw)
Kim Jae Yeol wrote:
> Hi, all.
>
> I have question about software installation.
>
> After installing base OS, solaris, digital unix or whatever, then gcc
> and other gnu stuff are installed. I am curious about if installing
> softwares like gcc and components required by gcc overwrites any
> previous shared runtime library ?
It's not supposed to, but it can happen.
>
>
> And if libraries are overwritten does this effect other running programs
> which were not recompiled after such components are installed.
>
If shared libraries are overwritten, the functionality of the new libraries
should completely duplicate the functionality of the original library
(assuming overwriting a system library was the intended activity). If they
are static libraries, the programs should continue to operate without a
hitch.
>
> One more question.
> Can an application load the shared libraries in unix dynamically ? Wanna
> know if the shared library in unix is similar to DLL in windows.
>
I'm not sure I understand that question, since you answer the one you ask.
The thing that makes a 'shared library' shared is the dynamic loading.
In general, any read-only page in memory can be shared amongst various
programs. Describing a shared library in Unix as 'like a Windows DLL' makes
me want to go wash my hands, but I suppose you could say 'Yes'. The shared
library loader will manage that sharing of these Unix libraries so that
there is a minimum of overhead.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Library overwriting
1999-05-17 4:00 Library overwriting Kim Jae Yeol
@ 1999-05-17 4:00 ` Peter da Silva
1999-05-17 4:00 ` David Burgess
1 sibling, 0 replies; 10+ messages in thread
From: Peter da Silva @ 1999-05-17 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]
In article <373FD311.7F0D7931@hanmail.net>,
Kim Jae Yeol <spacedye@hanmail.net> wrote:
>After installing base OS, solaris, digital unix or whatever, then gcc
>and other gnu stuff are installed. I am curious about if installing
>softwares like gcc and components required by gcc overwrites any
>previous shared runtime library ?
No. The UNIX shared library models don't require a lot of namespace
overloading like the Windows model does: shared libraries are associated
with a file and the file name includes version information. Applications
do not forcibly update critical system components during installation the
way they do in Windows.
>One more question.
>Can an application load the shared libraries in unix dynamically ?
Yes.
>Wanna know if the shared library in unix is similar to DLL in windows.
DLL is simply a Microsoft marketing acronym for "shared library".
--
In hoc signo hack, Peter da Silva <peter@baileynm.com>
`-_-' Ar rug t� barr�g ar do mhact�re inniu?
'U` "Twenty-two points, plus triple-word-score, plus fifty points for
using all my letters. Game's over. I'm outta here."
^ permalink raw reply [flat|nested] 10+ messages in thread
* Library overwriting
@ 1999-05-17 4:00 Kim Jae Yeol
0 siblings, 0 replies; 10+ messages in thread
From: Kim Jae Yeol @ 1999-05-17 4:00 UTC (permalink / raw)
Hi, all.
I have question about software installation.
After installing base OS, solaris, digital unix or whatever, then gcc
and other gnu stuff are installed. I am curious about if installing
softwares like gcc and components required by gcc overwrites any
previous shared runtime library ?
And if libraries are overwritten does this effect other running programs
which were not recompiled after such components are installed.
One more question.
Can an application load the shared libraries in unix dynamically ? Wanna
know if the shared library in unix is similar to DLL in windows.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Library overwriting
1999-05-17 4:00 ` David Burgess
@ 1999-05-22 4:00 ` Kim Jae Yeol
1999-05-22 4:00 ` James M. Mitchell
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Kim Jae Yeol @ 1999-05-22 4:00 UTC (permalink / raw)
Thanks for answers, also to Peter da Silva.
I personally do not admire any of windows or unix. Both are inevitable parts of
my envrionment.
Second question and answers are quite not satisfactory. I'll be appreciated if
you answer following questions.
Is there a system call to load and free a share library again :), like
LoadLibrary call in windows ?
Thanks in advance.
David Burgess wrote:
> Kim Jae Yeol wrote:
>
> > Hi, all.
> >
> > I have question about software installation.
> >
> > After installing base OS, solaris, digital unix or whatever, then gcc
> > and other gnu stuff are installed. I am curious about if installing
> > softwares like gcc and components required by gcc overwrites any
> > previous shared runtime library ?
>
> It's not supposed to, but it can happen.
>
> >
> >
> > And if libraries are overwritten does this effect other running programs
> > which were not recompiled after such components are installed.
> >
>
> If shared libraries are overwritten, the functionality of the new libraries
> should completely duplicate the functionality of the original library
> (assuming overwriting a system library was the intended activity). If they
> are static libraries, the programs should continue to operate without a
> hitch.
>
> >
> > One more question.
> > Can an application load the shared libraries in unix dynamically ? Wanna
> > know if the shared library in unix is similar to DLL in windows.
> >
>
> I'm not sure I understand that question, since you answer the one you ask.
> The thing that makes a 'shared library' shared is the dynamic loading.
>
> In general, any read-only page in memory can be shared amongst various
> programs. Describing a shared library in Unix as 'like a Windows DLL' makes
> me want to go wash my hands, but I suppose you could say 'Yes'. The shared
> library loader will manage that sharing of these Unix libraries so that
> there is a minimum of overhead.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Library overwriting
1999-05-22 4:00 ` Kim Jae Yeol
@ 1999-05-22 4:00 ` James M. Mitchell
1999-05-24 4:00 ` Kim Jae Yeol
1999-05-23 4:00 ` Peter da Silva
1999-08-10 4:00 ` David Schwartz
2 siblings, 1 reply; 10+ messages in thread
From: James M. Mitchell @ 1999-05-22 4:00 UTC (permalink / raw)
To explicitly load a shared library in unix (Solaris/HP-UX), there is dlopen(). To
close it, you can call dlclose(). Run man dlopen for more information. Normally
installation of software does not overwrite shared libraries that belong to the
system. If it does, that is a serious problem. On most Unix systems, you can set
a library path (like PATH) that includes the location of all interested libraries.
In this regard, it is not necessary to overwrite any existing libraries. You just
have to change the library path instead.
Kim Jae Yeol wrote:
> Thanks for answers, also to Peter da Silva.
>
> I personally do not admire any of windows or unix. Both are inevitable parts of
> my envrionment.
>
> Second question and answers are quite not satisfactory. I'll be appreciated if
> you answer following questions.
>
> Is there a system call to load and free a share library again :), like
> LoadLibrary call in windows ?
>
> Thanks in advance.
>
> David Burgess wrote:
>
> > Kim Jae Yeol wrote:
> >
> > > Hi, all.
> > >
> > > I have question about software installation.
> > >
> > > After installing base OS, solaris, digital unix or whatever, then gcc
> > > and other gnu stuff are installed. I am curious about if installing
> > > softwares like gcc and components required by gcc overwrites any
> > > previous shared runtime library ?
> >
> > It's not supposed to, but it can happen.
> >
> > >
> > >
> > > And if libraries are overwritten does this effect other running programs
> > > which were not recompiled after such components are installed.
> > >
> >
> > If shared libraries are overwritten, the functionality of the new libraries
> > should completely duplicate the functionality of the original library
> > (assuming overwriting a system library was the intended activity). If they
> > are static libraries, the programs should continue to operate without a
> > hitch.
> >
> > >
> > > One more question.
> > > Can an application load the shared libraries in unix dynamically ? Wanna
> > > know if the shared library in unix is similar to DLL in windows.
> > >
> >
> > I'm not sure I understand that question, since you answer the one you ask.
> > The thing that makes a 'shared library' shared is the dynamic loading.
> >
> > In general, any read-only page in memory can be shared amongst various
> > programs. Describing a shared library in Unix as 'like a Windows DLL' makes
> > me want to go wash my hands, but I suppose you could say 'Yes'. The shared
> > library loader will manage that sharing of these Unix libraries so that
> > there is a minimum of overhead.
--
---------------------------------------------------
James Mitchell
Home: www.seanet.com 206-526-9765
Work: jmitchel@atd.sprintcorp.com 913-908-6869
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Library overwriting
1999-05-22 4:00 ` Kim Jae Yeol
1999-05-22 4:00 ` James M. Mitchell
@ 1999-05-23 4:00 ` Peter da Silva
1999-05-24 4:00 ` Kim Jae Yeol
1999-08-10 4:00 ` David Schwartz
2 siblings, 1 reply; 10+ messages in thread
From: Peter da Silva @ 1999-05-23 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 663 bytes --]
In article <3743C483.D46CC0D6@hanmail.net>,
Kim Jae Yeol <spacedye@hanmail.net> wrote:
>Is there a system call to load and free a share library again :), like
>LoadLibrary call in windows ?
I'm not sure where exactly you want to go with this. Programs that are
already running will continue to use the existing library... they have to.
If you replace the library then new programs will run the new version.
--
In hoc signo hack, Peter da Silva <peter@baileynm.com>
`-_-' Ar rug t� barr�g ar do mhact�re inniu?
'U` "Twenty-two points, plus triple-word-score, plus fifty points for
using all my letters. Game's over. I'm outta here."
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Library overwriting
1999-05-23 4:00 ` Peter da Silva
@ 1999-05-24 4:00 ` Kim Jae Yeol
0 siblings, 0 replies; 10+ messages in thread
From: Kim Jae Yeol @ 1999-05-24 4:00 UTC (permalink / raw)
Peter da Silva <7i7sn9$o61@web.nmti.com> wrote :
>In article <3743C483.D46CC0D6@hanmail.net>,
>Kim Jae Yeol <spacedye@hanmail.net> wrote:
>>Is there a system call to load and free a share library again :), like
>>LoadLibrary call in windows ?
>
>I'm not sure where exactly you want to go with this. Programs that are
>already running will continue to use the existing library... they have to.
>If you replace the library then new programs will run the new version.
>
I appreciate your answer answer to overwriting problem and, in fact, I have
roughly guessed shared library scheme intended so that overwriting or new
installation should not cause any problem. But that was just expectation, so
I needed authentic confirmation to a dgree(I think newgroup postings are
sufficient). The other question is, as me being an engineer, just out of
curiousity.
Thank you again.
Kim Jae Yeol.
>--
>In hoc signo hack, Peter da Silva <peter@baileynm.com>
> `-_-' Ar rug t?barr? ar do mhact?e inniu?
> 'U` "Twenty-two points, plus triple-word-score, plus fifty points for
> using all my letters. Game's over. I'm outta here."
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Library overwriting
1999-05-22 4:00 ` James M. Mitchell
@ 1999-05-24 4:00 ` Kim Jae Yeol
0 siblings, 0 replies; 10+ messages in thread
From: Kim Jae Yeol @ 1999-05-24 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 738 bytes --]
James M. Mitchell ��(��) <3746BAB1.130E8FE0@earthlink.com>
�������� �ۼ��Ͽ����ϴ�...
>To explicitly load a shared library in unix (Solaris/HP-UX), there is
dlopen(). To
>close it, you can call dlclose(). Run man dlopen for more information.
Normally
>installation of software does not overwrite shared libraries that belong to
the
>system. If it does, that is a serious problem. On most Unix systems, you
can set
>a library path (like PATH) that includes the location of all interested
libraries.
>In this regard, it is not necessary to overwrite any existing libraries.
You just
>have to change the library path instead.
>
>
Thanks greatly for clear information.
spacedye@hanmail.net
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Library overwriting
1999-05-22 4:00 ` Kim Jae Yeol
1999-05-22 4:00 ` James M. Mitchell
1999-05-23 4:00 ` Peter da Silva
@ 1999-08-10 4:00 ` David Schwartz
2 siblings, 0 replies; 10+ messages in thread
From: David Schwartz @ 1999-08-10 4:00 UTC (permalink / raw)
Kim Jae Yeol wrote:
> Is there a system call to load and free a share library again :), like
> LoadLibrary call in windows ?
>
> Thanks in advance.
A shared library is just a file like any other. Library functions are
available to open the file, validate its format, and do any type of
cleanups or symbol stuff that might be required. Look at 'dlopen',
'dlclose', and 'dlsym'.
DS
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~1999-08-10 4:00 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-17 4:00 Library overwriting Kim Jae Yeol
1999-05-17 4:00 ` Peter da Silva
1999-05-17 4:00 ` David Burgess
1999-05-22 4:00 ` Kim Jae Yeol
1999-05-22 4:00 ` James M. Mitchell
1999-05-24 4:00 ` Kim Jae Yeol
1999-05-23 4:00 ` Peter da Silva
1999-05-24 4:00 ` Kim Jae Yeol
1999-08-10 4:00 ` David Schwartz
-- strict thread matches above, loose matches on Subject: below --
1999-05-17 4:00 Kim Jae Yeol
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox