From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,9f5c1c8d844fc69e X-Google-Attributes: gid111c93,public X-Google-Thread: 10d0a1,9f5c1c8d844fc69e X-Google-Attributes: gid10d0a1,public X-Google-Thread: 1025b4,9f5c1c8d844fc69e X-Google-Attributes: gid1025b4,public X-Google-Thread: fcfb9,9f5c1c8d844fc69e X-Google-Attributes: gidfcfb9,public X-Google-Thread: 1125fa,9f5c1c8d844fc69e X-Google-Attributes: gid1125fa,public From: sean@forget.about.it (Se�n � Donnchadha) Subject: Re: DLL mess Re: "No-one gets fired for buying Microsoft" Date: 1999/09/14 Message-ID: <37edb49e.459695827@news.shore.net>#1/1 X-Deja-AN: 525131988 Content-Transfer-Encoding: 7bit References: <37D81FE1.E90C3B1F@winkinc.com> <37df4efc.433677244@news.shore.net> <37e49171.450690508@news.shore.net> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@shore.net X-Trace: news.shore.net 937343030 207.244.116.3 (Tue, 14 Sep 1999 17:03:50 EDT) Organization: Shore.Net/Eco Software, Inc; (info@shore.net) MIME-Version: 1.0 NNTP-Posting-Date: Tue, 14 Sep 1999 17:03:50 EDT Newsgroups: comp.os.linux.alpha,comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,gnu.misc.discuss seebs@plethora.net (Peter Seebach) wrote: >> >>Not quite. The linker, given "foo", finds "foo.sa", which is simply >>the import library for a particular major revision of foo. > >Roughly, yes. But it can figure out which one it wants. > The point is that the linker knows nothing about your versioning scheme; the only naming convention it uses is the one for typing files. >>> >>>After this, the program knows which version it requires, and which other >>>versions it may be okay with. >> >>What the heck does "may be okay with" mean? The program certainly does >>know which version it requires - say 1.2.3. Now, how does it know >>whether it will work with 1.2.4 when that's released? > >Two options: > >1. The developer just said "1.2", in which case, it assumes it works with >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. > >2. The developer said "1.2.3", in which case, it ignores a newer version. > >>Answer: it >>doesn't. When 1.2.4 is installed, the program will start using it - a >>combination that may not have been lab-tested. > >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? >>> >>> 1. All versions, including old ones, of a library, so you can >>> avoid incompatability. >> >>But this *DOESN'T* avoid incompatibility! When you install a minor >>library revision, programs using the previous one get switched over to >>use the new one. *THAT'S* where incompatibility can creep in, and Unix >>can do nothing about that. > >Except that, if the programs are worried, they bind to the old version >anyway. > Again, how would the programmer know whether he whould "worry" about a future version of a library? > >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. > >More importantly, because it is *standard and easy* to indicate mild >version changes, and distinguish them from major ones, the people producing >the libraries actually do so. > Same in Windows. Minor version changes don't change the filename, but they change the VERSIONINFO resource within the file. >> >>Great, now if only I knew what "foo" meant. Admit it, a standard >>mechanism for tagging an executable with descriptive text of arbitrary >>length is a whole lot better. And Windows provides that. > >I am unlikely to admit something so godawful stupid. Descriptive text is >cute, but not useful. You can't have a program parse the text, and developers >in Windows-land pick descriptive text that you can't actually read - because >they use different conventions. > I disagree. "Blowout Brickwall(tm) Graphics Library 2.3" says more to me than "libbbg.so.2.3.4". > >A standard convention is a very good thing. It's like which side of the road >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.