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 Date: Thu, 2 Jun 2005 21:14:29 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: dlopen does not search the path Message-ID: <20050603011429.GB10867@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com References: <7231C15EAC2F164CA6DC326D97493C8BA1BD11 AT exchange35 DOT fed DOT cclrc DOT ac DOT uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7231C15EAC2F164CA6DC326D97493C8BA1BD11@exchange35.fed.cclrc.ac.uk> User-Agent: Mutt/1.5.8i On Fri, Jun 03, 2005 at 12:33:55AM +0100, Adye, TJ (Tim) 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 >> is below. >> [...] > >> cgf: Make dlopen search /usr/bin (for Windows compatibility) >> 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 doesn't any >more. > >I have a Cygwin program that loads a Windows DLL (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 when I updated >to cygwin-1.5.17-1 (I can check if this is in any doubt). > >I can get it working again if I add /cygdrive/c/Program >Files/OpenAFS/Common to $LD_LIBRARY_PATH by hand. > >Is this change deliberate? I would have thought that "Windows >compatibility" ought to include searching the PATH. It was not deliberate and, in fact, the change in behavior had nothing to do with the change to make dlopen search /usr/bin and /usr/lib. It was, however, another change of mine so I still have to take the blame. I've checked in a fix. It will be in the next snapshot. cgf -- 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/