X-Spam-Check-By: sourceware.org
Mime-Version: 1.0 (Apple Message framework v746.2)
In-Reply-To: <43E2B779.4371E33B@dessent.net>
References: <020220062158.387.43E28079000ACE870000018322007507440A050E040D0C079D0A@comcast.net> <20060203013712.GC17485@brasko.net> <43E2B779.4371E33B@dessent.net>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <276FEDDB-C5A7-4B38-A82D-025CC97D674E@rehley.net>
Content-Transfer-Encoding: 7bit
From: Peter Rehley <peter@rehley.net>
Subject: Re: mismatched dll
Date: Thu, 2 Feb 2006 18:05:26 -0800
To: cygwin@cygwin.com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

