delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/04/08:29:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
MIME-Version: 1.0
Subject: RE: dlopen does not search the path
Date: Mon, 4 Jul 2005 13:27:52 +0100
Message-ID: <7231C15EAC2F164CA6DC326D97493C8BA1C322@exchange35.fed.cclrc.ac.uk>
From: "Adye, TJ \(Tim\)" <T DOT J DOT Adye AT rl DOT ac DOT uk>
To: "Cygwin List" <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j64CTOKr029959

Hi Chris,

Following your announcement in the cygwin-1.5.18-1 update

> cgf: Fix bug which stopped dlopen() from using standard Windows
> mechanism for finding a DLL.

I can confirm that my problem is now fixed.

Thanks!

Tim.

On 2 June 2005, Christopher Faylor wrote:
> 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

==============================  cut here  ==============================
Tim Adye, BaBar Group, Particle Physics Dept.,             _   /|
          Rutherford Appleton Laboratory, UK.              \'o.O'   Oop!
e-mail:   T DOT J DOT Adye AT rl DOT ac DOT uk                                =(___)=  Ack!
WWW:      http://hepwww.rl.ac.uk/Delphi/Adye/homepage.html    U  Thphft!

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