delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/15/22:05:58

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=MdJVT3T5KofVVvMX
+HrkKX3fj/zcV2M8vDarIoPiiYq4VzMP9AKO43Mo72xLh+0tC3TLb7urB5S7tOcS
jax/K0uzPAoptZAbKdad7K3wr343l4t8pAwWKHRmoXpM2novY7xOfQK/MR9bDVMw
MUcQCdhQT2Uy/Z/PLIkKkp+dXKU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=FnvVRGFbM9fa+Oh0rbbQfM
LPKBM=; b=bTZxuI1FOXPh9XBnEuJ4naMKpj0D0FcSw6ibtLgQN+WMyliCxp1/RT
+fDoMC4IIEvmT7WwebLSVdVh4h1sHbELv1Qzd126fRLdDQjy6GV3rHJKvcXZ6bPX
2O8IVr/W8sI/x+cpSTxj04psJzY7a6FCN1+1GZ3MFrvi8ZMDdhXEc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Roberto, roberto, Ribeiro, ribeiro
X-HELO: smtp-out-so.shaw.ca
X-Authority-Analysis: v=2.3 cv=KuxjJ1eN c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=RkGNqudEzrRPnv4r8q0A:9 a=QEXdDO2ut3YA:10 a=9c8rtzwoRDUA:10 a=sRI3_1zDfAgwuvI8zelB:22
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: Problem loading dynamic libraries - file not found
To: cygwin AT cygwin DOT com
References: <CANTZQ+yNW5knEOTaFp+aqmxADjgsgoV-egfdSun4iAfrSV7a1Q AT mail DOT gmail DOT com>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Openpgp: preference=signencrypt
Message-ID: <ef12d47b-4c0f-ba0a-df34-0dc6a30eb664@SystematicSw.ab.ca>
Date: Fri, 15 Jun 2018 20:05:38 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
MIME-Version: 1.0
In-Reply-To: <CANTZQ+yNW5knEOTaFp+aqmxADjgsgoV-egfdSun4iAfrSV7a1Q@mail.gmail.com>
X-CMAE-Envelope: MS4wfJ85ghDSWNQ7mQ/FFg+lh8NxR8lx1rtMIVxx2eMMUhNnmLGZm1mubguY1BE7pKcmtBkOb/JLeGdr7hX09r/DSVjMNlUJqo0SHZMdsvUPiL98rUGf2ri4 5u1f7HkSaQSpXBFzXOQiCPiFN6aU1fRh4k9cc4uRHjJNNuqtN39p/9OWdtSb+61DTUF/gZN6YtWBng==
X-IsSubscribed: yes

On 2018-06-15 16:50, Roberto Ribeiro wrote:
> recently I've been running a lot into an error while trying to load dlls 
> compiled by cygwin: "ERROR: could not load library (...): No such file or 
> directory".
> The library in question is always there, however, and *appears* to have been
> correctly built (ldd and cygcheck both return the expected values).

Including the actual command, error message, cygcheck and ldd outputs could help
diagnose the problem.

The first suspicion in these cases is always an AV or other BLODA; see:

	https://cygwin.com/acronyms/#BLODA
and
	https://cygwin.com/faq/faq.html#faq.using.bloda

Or you could have non-Windows, non-Cygwin DLLs which are not being rebased if
you run:

	$ rebase-trigger full[rebase]

to setup a full rebase, then download and run:

	https://cygwin.com/setup-x86[_64].exe

to perform a full rebase on all known DLLs in known places; so then read:

	/usr/share/doc/{Cygwin/_autorebase.,rebase/}README

for how to handle non-Windows, non-Cygwin DLLs.

> Last time this happened, I found what could have been a linking problem in
> one of its dependencies, and just recompiled everything and now it works.
> But now I'm running on this problem again, in a library I wrote myself,
> which only links to dependencies I know are working, and everything that
> could possibly be called is in the PATH.
> So, my question is: what exactly does this "no such file or directory" error
> mean, and is there a way for me to debug it, or maybe get more comprehensive
> error messages?

You could debug with gdb, or run with:

	$ strace -o command.strace [-w] command ... [&]

where -w runs in a separate window if you need to use & at end for a long
running command.

If that does not clue you in sufficiently, also run:

	$ cygcheck -hrsv > cygcheck.out &

which may take a while if you have a lot of packages installed (e.g. X).

Reply with both files as *text* attachments so someone can help you out.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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