Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C5681E.5D3909F9" Subject: RE: Updated: cygwin-1.5.17-1 Date: Fri, 3 Jun 2005 10:26:36 +0100 Message-ID: <7231C15EAC2F164CA6DC326D97493C8BA1BD20@exchange35.fed.cclrc.ac.uk> From: "Adye, TJ \(Tim\)" To: "Cygwin List" Note-from-DJ: This may be spam ------_=_NextPart_001_01C5681E.5D3909F9 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable OK, I downgraded to cygwin 1.5.16-1 and the problem went away. I made a small test program, dltest (attached), that does a dlopen(file,RTLD_LAZY). The following shows that PATH was searched with 1.5.16-1, but not in 1.5.17-1. cygwin 1.5.16-1:- % export PATH=3D"/usr/bin" % ./dltest afsauthent.dll error opening afsauthent.dll: dlopen, Win32 error 126 % export PATH=3D"/usr/bin:/cygdrive/c/Program Files/OpenAFS/Common" % ./dltest afsauthent.dll opened afsauthent.dll cygwin 1.5.17-1:- % export PATH=3D"/usr/bin:/cygdrive/c/Program Files/OpenAFS/Common" % ./dltest afsauthent.dll error opening afsauthent.dll: dlopen, Win32 error 126 % type afsauthent.dll # just to be sure it's there afsauthent.dll is /cygdrive/c/Program Files/OpenAFS/Common/afsauthent.dll % export LD_LIBRARY_PATH=3D"/cygdrive/c/Program Files/OpenAFS/Common" % ./dltest afsauthent.dll opened afsauthent.dll=20 Tim. > -----Original Message----- > From: Larry Hall > Sent: 03 June 2005 01:05 > To: Adye, TJ (Tim); The Cygwin Mailing List > Subject: RE: Updated: cygwin-1.5.17-1 >=20 > At 07:33 PM 6/2/2005, you wrote: > >Hi, > > > >On 26 May 2005, Christopher Faylor wrote: > > > >> I've made a new version of the Cygwin DLL and associated utilities > >> available for download. As usual, a list of what has changed=20 > >> is below. > >> [...] > > > >> cgf: Make dlopen search /usr/bin (for Windows compatibility)=20 > >> and /usr/lib (for UNIX compatibility). > > > >The change seems to be a bit more drastic than that implies to me. I > >believe that previously dlopen searched $PATH before, but it=20 > >doesn't any more. > > > >I have a Cygwin program that loads a Windows DLL=20 > >(afsauthent.dll) that it used to find via the $PATH (found in > >C:\Program Files\OpenAFS\Common, > >which OpenAFS adds to the Windows PATH, and is inherited by Cygwin). > >That stopped working recently (Win32 error 126), probably=20 >=20 > >when I updated to cygwin-1.5.17-1 (I can check if this is in > >any doubt). >=20 >=20 > Yes, please do and report back. >=20 >=20 > -- > Larry Hall http://www.rfk.com > RFK Partners, Inc. (508) 893-9779 - RFK Office > 838 Washington Street (508) 893-9889 - FAX > Holliston, MA 01746=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 ------_=_NextPart_001_01C5681E.5D3909F9 Content-Type: application/octet-stream; name="dltest.c" Content-Transfer-Encoding: base64 Content-Description: dltest.c Content-Disposition: attachment; filename="dltest.c" I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxkbGZjbi5oPgoKaW50IG1h aW4gKGludCBhcmdjLCBjaGFyKiogYXJndikKewogIGludCBpOwogIGlmIChh cmdjIDw9IDEpIHsKICAgIHByaW50ZiAoIlVzYWdlOiAlcyBETExGSUxFIFtE TExGSUxFLi4uXVxuIiwgYXJndlswXSk7CiAgICByZXR1cm4gMTsKICB9CiAg Zm9yIChpPSAxOyBpPGFyZ2M7IGkrKykgewogICAgdm9pZCAqeDsKICAgIHg9 IGRsb3BlbiAoYXJndltpXSwgUlRMRF9MQVpZKTsKICAgIGlmICh4KQogICAg ICBwcmludGYgKCJvcGVuZWQgJXNcbiIsIGFyZ3ZbaV0pOwogICAgZWxzZQog ICAgICBmcHJpbnRmIChzdGRlcnIsICJlcnJvciBvcGVuaW5nICVzOiAlc1xu IiwgYXJndltpXSwgZGxlcnJvcigpKTsKICB9CiAgcmV0dXJuIDA7Cn0K ------_=_NextPart_001_01C5681E.5D3909F9 Content-Type: text/plain; charset=us-ascii -- 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/ ------_=_NextPart_001_01C5681E.5D3909F9--