From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,6c3107b3ab6f67b6 X-Google-Attributes: gidf678f,public X-Google-Thread: ffc1e,6f6b296c6d002992 X-Google-Attributes: gidffc1e,public X-Google-Thread: 11035d,6c3107b3ab6f67b6 X-Google-Attributes: gid11035d,public X-Google-Thread: fa705,6f6b296c6d002992 X-Google-Attributes: gidfa705,public From: David Burgess Subject: Re: Library overwriting Date: 1999/05/17 Message-ID: <37403F0A.50C08B20@mitre.org>#1/1 X-Deja-AN: 478996676 Content-Transfer-Encoding: 7bit References: <373FD311.7F0D7931@hanmail.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsabuse@remarQ.com X-Trace: 926953894.787.92 WIDUGOAMN153ECCF8C qube-01.us-ca.remarq.com Organization: Posted via RemarQ Communities, Inc. MIME-Version: 1.0 NNTP-Posting-Date: Mon, 17 May 1999 15:11:34 GMT Newsgroups: comp.programming.threads,comp.unix.solaris,comp.unix.osf.misc,comp.unix.bsd.misc 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.