Message-ID: <4379DDA0.2020204@byu.net>
Date: Tue, 15 Nov 2005 06:07:44 -0700
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: Jacek Trzcinski <jacek@certum.pl>
CC: cygwin@cygwin.com
Subject: Re: SSHD problem
References: <43787CDD.9090304@certum.pl> <43789647.8080707@byu.net> <43789F28.906@certum.pl> <20051114144722.GB25484@trixie.casa.cgf.cx> <43798E58.6010901@certum.pl>
In-Reply-To: <43798E58.6010901@certum.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jacek Trzcinski on 11/15/2005 12:29 AM:
> Thanks . It turned out that I had cygwin1.dll in AVR gcc compiler and it
> caused errors.

Just as we had predicted.

> It is a little bit strange because LoadLibrary function (
> I assume Cygwin executable call that function to load Cygwin1.dll )
> should first take dll from pointed path or directory where executable
> started. Searching in "path" environment should be carried in the end.

Blame Windows - this is Microsoft's default behavior, over which cygwin
has no control.  When loading an .exe that depends on a .dll at inception,
Windows rules are obeyed (in which the directory of the .exe is prepended
to the PATH, and where a modal popup box appears if the dependency cannot
be satisfied).  Hence our warning that you should never have more than one
cygwin1.dll on your path, since most cygwin .exe's have a hard-coded
dependency on cygwin1.dll.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDed2f84KuGfSFAYARAu6mAJ4xnN8G4nTB0Crbh0uG5GVX53t+AwCeJqYI
IqFJI6tfD+4VB+f2hXR9BRg=
=9yhk
-----END PGP SIGNATURE-----

--
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/

