delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/26/13:23:04

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
Date: Thu, 26 May 2005 13:22:46 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: dlopen and cygcheck inconsistency
Message-ID: <20050526172246.GN5619@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <20050522024920 DOT 6281 DOT qmail AT web31715 DOT mail DOT mud DOT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <20050522024920.6281.qmail@web31715.mail.mud.yahoo.com>
User-Agent: Mutt/1.5.8i

On Sat, May 21, 2005 at 07:49:20PM -0700, Sunil wrote:
>Hi,
>
>cygcheck also searches the `basename <arg1>` for
>dependent DLLs while dlopen requires PATH to be set to
>open the DLL. One of them should be corrected to make
>life consistent. example is as follows:
>
>$ cygcheck /usr/lib/gstreamer-0.8/cyggstossaudio.dll
>C:/cygwin/lib/gstreamer-0.8/cyggstossaudio.dll
>  C:/cygwin/lib/gstreamer-0.8\cyggstaudio.dll
>    C:\cygwin\bin\cygwin1.dll
>      C:\WINDOWS\System32\ADVAPI32.DLL
>        C:\WINDOWS\System32\ntdll.dll
>        C:\WINDOWS\System32\KERNEL32.dll
>        C:\WINDOWS\System32\RPCRT4.dll
>    C:\cygwin\bin\cygglib-2.0-0.dll
>      C:\cygwin\bin\cygiconv-2.dll
>      C:\cygwin\bin\cygintl-3.dll
>    C:\cygwin\bin\cyggobject-2.0-0.dll
>    C:\cygwin\bin\cyggstreamer-0.8-1.dll
>      C:\cygwin\bin\cyggmodule-2.0-0.dll
>      C:\cygwin\bin\cyggthread-2.0-0.dll
>      C:\cygwin\bin\cygpopt-0.dll
>      C:\cygwin\bin\cygxml2-2.dll
>        C:\cygwin\bin\cygz.dll
>  C:\cygwin\bin\cyggstinterfaces-0.8-0.dll
>
>dlopen on /usr/lib/gstreamer-0.8/cyggstossaudio.dll
>fails(with win32 error 126) if /usr/lib/gstreamer-0.8
>is not in PATH, probably because cyggstaudio.dll is in
>there.

cygcheck follows the normal Windows conventions for locating a DLL since
this reflects how a program finds "statically loaded" DLLs.  dlopen
follows the normal UNIX conventions for locating a shared library,
*except* that I just noticed that it is not searching /usr/lib by
default.  It should be.

Otherwise this is all working as designed, AFAICT.

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019