Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3F317C37.4626CFE@dessent.net>
Date: Wed, 06 Aug 2003 15:07:51 -0700
From: Brian Dessent <brian@dessent.net>
Organization: My own little world...
X-Accept-Language: en,en-US
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: What is the minimum needed to run gtar?
References: <Pine.GSO.4.44.0308061742080.5132-100000@slinky.cs.nyu.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Igor Pechtchanski wrote:

> Yes, you're quite correct.  Cygcheck will only list the DLLs that the
> program is statically linked to (that is, it's linked to the import
> libraries).  If the program uses dlopen() or LoadLibrary() to load the
> library (like rxvt does with libX11/libW11), cygcheck will not list that
> library in the list of dependences.  A quick and dirty test for that would
> be "strings program.exe | egrep -i 'dlopen|loadlibrary'".  Finding out
> exactly which libraries are loaded with this mechanism won't be as easy
> (because in some cases the DLL name may be constructed dynamically).
> Strace might help with that somewhat, at least for dlopen() calls.

I'm pretty sure the "Dependency Walker" program can trace these dynamic
runtime library loading situations.  http://www.dependencywalker.com/

Brian

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

