delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/02/21:05:40

X-Spam-Check-By: sourceware.org
Mime-Version: 1.0 (Apple Message framework v746.2)
In-Reply-To: <43E2B779.4371E33B@dessent.net>
References: <020220062158 DOT 387 DOT 43E28079000ACE870000018322007507440A050E040D0C079D0A AT comcast DOT net> <20060203013712 DOT GC17485 AT brasko DOT net> <43E2B779 DOT 4371E33B AT dessent DOT net>
Message-Id: <276FEDDB-C5A7-4B38-A82D-025CC97D674E@rehley.net>
From: Peter Rehley <peter AT rehley DOT net>
Subject: Re: mismatched dll
Date: Thu, 2 Feb 2006 18:05:26 -0800
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Feb 2, 2006, at 5:52 PM, Brian Dessent wrote:

> Bob Rossi wrote:
>
>> Here's another question I have (sorry). Why wouldn't it be  
>> acceptable to
>> have to (different version) cygwin1.dll's running on a single system?
>> That is, 2 completely different Cygwin environments? So, all programs
>> that link against the same cygwin1.dll are in one Cygwin  
>> environment. If
>> there is another version of the cygwin1.dll, and programs link  
>> against
>> it, they would be in another Cygwin environment, completely  
>> independent.
>
>
<snip>
>
> If you are writing an installer of a third party application the basic
> logic should thus be:
>
> Is a cygwin1.dll already on the system somewhere?
>   Yes:
>      Is it newer than mine?
>         Yes: Install my .exe, but do not install my cygwin1.dll,
>              use the existing one.
>         No:  Prompt user of the situation, and either bail or
>              overwrite older DLL with newer DLL.
>   No:
>      Install my DLL.
>
> Essentially, you must ensure that if a Cygwin DLL already exists you
> either use it as-is or replace it with a newer one.  Never install a
> second copy, and never overwrite a newer one with an older verison.

Can we get this added to the faq?  It sounds like there are several  
companies out there that install the cygwin1.dll without caring that  
it can cause problems.  This would at least provide some information  
for those that read the faq.

Peter


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019