From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1025b4,9f5c1c8d844fc69e X-Google-Attributes: gid1025b4,public X-Google-Thread: 111c93,9f5c1c8d844fc69e X-Google-Attributes: gid111c93,public X-Google-Thread: fcfb9,9f5c1c8d844fc69e X-Google-Attributes: gidfcfb9,public X-Google-Thread: 1125fa,9f5c1c8d844fc69e X-Google-Attributes: gid1125fa,public X-Google-Thread: 10d0a1,9f5c1c8d844fc69e X-Google-Attributes: gid10d0a1,public From: Raymond Wiker Subject: Re: DLL mess Re: "No-one gets fired for buying Microsoft" Date: 1999/09/13 Message-ID: <87hfkylxa5.fsf@foobar.orion.no>#1/1 X-Deja-AN: 524466986 Sender: raymond@foobar.orion.no References: <37D81FE1.E90C3B1F@winkinc.com> <37d93940.34897269@news.shore.net> <7ra5gg$cm1@dfw-ixnews15.ix.netcom.com> <37dc0c92.88995578@news.shore.net> <37ddff0d.347678675@news.shore.net> X-Complaints-To: abuse@tele2.no X-Trace: juliett.dax.net 937231796 212.20.215.229 (Mon, 13 Sep 1999 16:09:56 MET DST) Organization: Fast Com Norway Access NNTP-Posting-Date: Mon, 13 Sep 1999 16:09:56 MET DST Newsgroups: comp.os.linux.alpha,comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,gnu.misc.discuss sean@forget.about.it (Se�n � Donnchadha) writes: > Ketil Z Malde wrote: > > >> > >> Other OSes have the luxury of savvy users. A Linux app can include a > >> README saying "This program requires libfoo-1.2.3" and leave it up to > >> the user to figure out how to set that up without killing another > >> program that requires libfoo-1.2.2. Windows apps have no such option; > >> they *MUST* install the libraries they need without the user's help. > > > >Nonsense - any modern Linux distribution checks for dependencies, and > >there are very nice tools that automatically installs any required > >stuff along with the application. > > > > That's great, but it's a totally unrelated issue. Here's the real > question: What is the installer to do when a new program requires > libfoo-1.2.3, and libfoo-1.2.2 is already installed and in use by > dozens of other programs? Simple. You copy libfoo-1.2.3 to the appropriate place, where it will peacefully coexist with libfoo-1.2.2. The file names are not identical, so they *can* be in the same directory. The installation will (probably(???)) also update a symlink for libfoo-1.2, so that it points to libfoo-1.2.3 instead of libfoo-1.2.2. *No* programs should break from this, as there should be no visible differences between 1.2.2 and 1.2.3 - if there were, the new version would be called 1.3.0, or something. I suspect that an application would also be able to request a particular minor version, as well. Compare this with DLLs. There are several versions of MFC42.DLL, and they all expect to reside in the same directory, with the same name. There is *no* major/minor version information available, although you can kludge this by using different file names for different major numbers. In practice, this is seldom done. MFC42.DLL may appear to have a major version encoded in the filename, but that is not the case - there have been versions of this DLL that has been incompatible with programs written for earlier versions. There are other cases like this. > >Without breaking any existing applications, one might add. > > You must not have been around in the early days when HJ Lu included a > list of known broken programs with each libc revision. So? The state of the art in Linux libraries is improving, which is *not* something you can say about Microsoft libraries. > This problem really has little to do with versioning. The whole point > of shared libraries (aside from disk/memory usage) is independent > field-ugradability, which results in the runtime coupling of two > binary components that may not have been lab-tested in combination. In > this particular case, there's no way to eliminate the risk without > also eliminating the benefit. You *can* get around this, as long as it is possible for the application to request a particular version (major version, minor version, directory...) -- Raymond Wiker, Orion Systems AS +47 370 61150