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: "Daniel Johnson" Subject: Re: DLL mess Re: "No-one gets fired for buying Microsoft" Date: 1999/09/11 Message-ID: <7re29c$i8t$1@bgtnsc01.worldnet.att.net>#1/1 X-Deja-AN: 523821525 References: <37D81FE1.E90C3B1F@winkinc.com> <37d93940.34897269@news.shore.net> <7ra5gg$cm1@dfw-ixnews15.ix.netcom.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc01.worldnet.att.net 937069676 18717 12.78.203.17 (11 Sep 1999 17:07:56 GMT) Organization: AT&T WorldNet Services X-MSMail-Priority: Normal NNTP-Posting-Date: 11 Sep 1999 17:07:56 GMT Newsgroups: comp.os.linux.alpha,comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,gnu.misc.discuss Timothy J. Lee wrote in message news:7ra5gg$cm1@dfw-ixnews15.ix.netcom.com... > sean@forget.about.it (Se�n � Donnchadha) writes: > |Tim Kelley wrote: [snip] > |I agree with him. DLL Hell is a popular scapegoat whenever someone is > |too lazy to put effort into diagnosing the problem. DLL conflicts do > |happen, but much less frequently than the FUDsters would have you > |believe. And neither Linux nor any other OS has a real solution. > > Other OSes don't have applications installing interface incompatible > shared libraries over your existing ones without notifying you. They > also tend to use something as simple as file names that contain the > version number, so that if an interface incompatible version is installed > (consciously by the system administrator during an upgrade or patch), > it does not affect the old version of the shared library or any > applications which use it. "File names that contain the version number" is what Windows does; that's what the the 42 is in mfc42.dll, and what the 32 is in gdi32.dll. The problem is that, contrary to what some Linux fans claim, this technique isn't all that effective: It is pretty easy to screw it up and ship something that isn't completely interface compatible under the same old version number. It's also easy for clients of the library to depend on undefined behaivors or even bugs, which do have a way of changing even when the interface is stable. I suspect the real reason for the difference between Linux and Windows may be that in many cases there is an extra layer on Linux that isn't there in Windows. Linux X libraries do not implement a graphics engine- they just send commands to one implemented as a server, possibly on another machine. With such an arrangement, the stream protocol must remain stable, but it is under relative tight control at both ends- since only the libraries produce such streams. If programs depend on vagaraties of these libraries, they can safely use the exact version they were built with- down the minor version if necessary- since these libraries don't touch any shared resources. Microsoft seems unwilling to take the performance hit involved in such a design; they had something like that in the Windows NT 3.1 GDI, and later dropped it as too slow. > Really, it shouldn't take much to solve the DLL mess. Just enforce > the idea that only service packs or patches distributed by the OS > vendor should be updating the system directories; applications should > keep out of the system directories when installing themselves. And > make incompatible versions have different names. This is exactly what MS proposes to do in Windows 2000; we'll see if it works.