From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10d0a1,9f5c1c8d844fc69e X-Google-Attributes: gid10d0a1,public X-Google-Thread: 111c93,9f5c1c8d844fc69e X-Google-Attributes: gid111c93,public X-Google-Thread: 1125fa,9f5c1c8d844fc69e X-Google-Attributes: gid1125fa,public X-Google-Thread: fcfb9,9f5c1c8d844fc69e X-Google-Attributes: gidfcfb9,public X-Google-Thread: 1025b4,9f5c1c8d844fc69e X-Google-Attributes: gid1025b4,public From: ehood@medusa.acs.uci.edu (Earl Hood) Subject: Re: DLL mess Re: "No-one gets fired for buying Microsoft" Date: 1999/09/16 Message-ID: <7rrvib$7oq@news.service.uci.edu>#1/1 X-Deja-AN: 526084457 References: <37D81FE1.E90C3B1F@winkinc.com> <37e523f0.80183257@news.shore.net> <37e32c08.147791793@news.shore.net> Organization: University of California, Irvine Newsgroups: comp.os.linux.alpha,comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,gnu.misc.discuss In article <37e32c08.147791793@news.shore.net>, Se�n � Donnchadha wrote: >>On Unix, an update will *not* "break" any installed application >>because libraries are not overwritten. >Wrong. On Unix, an update *CAN* break installed applications. That's >because applications usually select DLLs through symbolic links which >*ARE* overwritten during installation. If my understanding is correct, the symbolic links only aide during the compilation of a program. During compilation, the real name of the library is resolved. Take a look at the following ldd output: libsocket.so.1 => /usr/lib/libsocket.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libc.so.1 => /usr/lib/libc.so.1 libdl.so.1 => /usr/lib/libdl.so.1 libmp.so.2 => /usr/lib/libmp.so.2 If you were correct, shouldn't it have been?: libsocket.so => /usr/lib/libsocket.so libnsl.so => /usr/lib/libnsl.so libc.so => /usr/lib/libc.so libdl.so => /usr/lib/libdl.so libmp.so => /usr/lib/libmp.so Note, the application was compiled/linked with -lnsl et al. No lib version specified. Therefore, if libsocket is upgraded, the old version will still be available for programs that were linked against it. The libsocket.so symlink is not even looked at. Of course if someone replaced libsocket.so.1 with a different libsocket.so.1, then there can be problems. If I remember correctly (please correct me if I am wrong), this type of problem did occur with glibc2.0 -> glibc2.1. The file libc.so.6 is used for both versions. Shouldn't glibc2.1 used libc.so.6.1 instead so they can both co-exist easily? --ewh -- Earl Hood | University of California: Irvine ehood@medusa.acs.uci.edu | Electronic Loiterer http://www.oac.uci.edu/indiv/ehood/ | Dabbler of SGML/WWW/Perl/MIME