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: 1025b4,9f5c1c8d844fc69e X-Google-Attributes: gid1025b4,public X-Google-Thread: 1125fa,9f5c1c8d844fc69e X-Google-Attributes: gid1125fa,public X-Google-Thread: 111c93,9f5c1c8d844fc69e X-Google-Attributes: gid111c93,public X-Google-Thread: fcfb9,9f5c1c8d844fc69e X-Google-Attributes: gidfcfb9,public From: gfischer@amblehub.amble.net (Grant Fischer) Subject: Re: DLL mess Re: "No-one gets fired for buying Microsoft" Date: 1999/09/15 Message-ID: #1/1 X-Deja-AN: 525229310 Content-Transfer-Encoding: 8bit References: <37D81FE1.E90C3B1F@winkinc.com> <37df4efc.433677244@news.shore.net> <37e49171.450690508@news.shore.net> <37edb49e.459695827@news.shore.net> Followup-To: comp.os.linux.advocacy,comp.os.ms-windows.nt.advocacy Content-Type: text/plain; charset=iso-8859-1 X-Trace: 198.235.216.4 937361114 206.172.198.209 (Tue, 14 Sep 1999 22:05:14 EDT) Organization: Bell Solutions Mime-Version: 1.0 Reply-To: gfischer+znrkzy@hub.org NNTP-Posting-Date: Tue, 14 Sep 1999 22:05:14 EDT Newsgroups: comp.os.linux.alpha,comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,gnu.misc.discuss [Follow-ups trimmed] Hey Jerry, glad to see you still hammering away at those evils from which you have been saved. On Tue, 14 Sep 1999 21:08:00 GMT, Se�n � Donnchadha wrote: >>1.2.4. Since the sytem provided a mechanism for library maintainers to >>indicate level of compatability, it is almost certainly right. >> > >If 1.2.4 was issued after the application, running the two together is >just as dangerous in Unix as it is in Windows. In practice though, the UNIX ld.so system is handling this rather well. In the exceptional case where an app is tied to a specific lib minor version, this can be dealt with. However, it is an exceptional case in my experience. This is where you'll never agree -- the UNIX developers somehow manage to take this relatively simple scheme, and come up with generally stable, backward-compatible minor releases of their libs. If it didn't work for them, they'd change the approach to be more conservative. In practice, it works for UNIX. In practice, Windows x.x may have capabiities that can do nearly the same thing, but the developers haven't been using them, starting with MS themselves. This has just been bad practice, but it is real. So, when people talk about DLL Hell, don't just wave it away and say UNIX is just as bad. It has been a real problem, with people needing to discover the magic order in which to install apps to get the right behaviour. On to some technical points: - Someone has asked about the behaviour of Windows when a DLL is already loaded, and the version-checking points you are making seem to refer to install time, rather than runtime. - Can another version of the DLL be loaded and used simultaneously? - Can another version, but with all the identification stuff unchanged (filename, internal name, internal id) be loaded and used simultaneously? - Does the answer depend on the version of Windows? - What shenanigans have 3rd parties been doing with the DLL's? Have they been replacing modules or adding to them? Have vendors other than MS been changing MS DLL's in this way? >>If the developer cares, the developer will have specified "1.2.3" as the >>requested version. >> > >This makes no sense. If 1.2.3 is the latest as of app testing, how >would the developer know whether to care about 1.2.4? There's no way >to predict future incompatibilities, is there? Again, look at how it has worked in practice. The lib developers seem to know enough to save interface changes for major version number changes. Major new functionality, which is commonly what an update is needed for, comes with a major new version number. They are suitably conservative about changes in minor releases. >>Unix gives you a choice. >> > >So does Windows, by the way. You can always ship your app with the >known-good library version and install it (the library) into the app >directory. However, this isn't what the dumbed-down installers do, is it? It hits the non-expert, as it mysteriously won't work. It hits the expert, as they didn't get a choice about these things, and must either have some other DLL manager, or root around by hand to put things right. In fact, to get the shared behaviour (say you've got a group of RDBMS-based apps that need an old version, but a newer group that needs a later one) you can't just simply put it in the app directory -- you'd have to use differing PATH variables, no? Something hard for a non-expert or dumb install program to do. >Same in Windows. Minor version changes don't change the filename, but >they change the VERSIONINFO resource within the file. However, the standard practice in a Windows upgrade is to just ditch the old minor version. In the case where someone has linked specifically to a minor version in UNIX, it would still be there, and working. In the case where an RPM upgrade broke applications, removing the package will likely get things back to where you were -- all the deinstaller has to do is figure out where to reset the links to. You don't have to go rooting around to find your old DLL's and put them back in place. >>you drive on; the important thing is that people agree. >> > >Again, Windows provides a standard VERSIONINFO resource, along with >APIs for reading it and installing files in a VERSIONINFO-safe manner. >AFAICT, this is *BETTER* than a simple naming convention. It still >doesn't fully solve the problem. Nothing does. In practice, the RPM-type mechanisms provide the control you desire. You don't have to manage these things by hand. -- Grant Fischer (gfischer at hub.org)