From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106674 invoked by alias); 16 Jun 2018 02:05:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 106646 invoked by uid 89); 16 Jun 2018 02:05:43 -0000 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 Received: from smtp-out-so.shaw.ca (HELO smtp-out-so.shaw.ca) (64.59.136.139) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 16 Jun 2018 02:05:41 +0000 Received: from [192.168.1.100] ([24.64.240.204]) by shaw.ca with ESMTP id U0awftYG7SzNNU0axfExqc; Fri, 15 Jun 2018 20:05:40 -0600 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.Inglis@SystematicSw.ab.ca Subject: Re: Problem loading dynamic libraries - file not found To: cygwin@cygwin.com References: From: Brian Inglis Openpgp: preference=signencrypt Message-ID: Date: Sat, 16 Jun 2018 08:14:00 -0000 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: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfJ85ghDSWNQ7mQ/FFg+lh8NxR8lx1rtMIVxx2eMMUhNnmLGZm1mubguY1BE7pKcmtBkOb/JLeGdr7hX09r/DSVjMNlUJqo0SHZMdsvUPiL98rUGf2ri4 5u1f7HkSaQSpXBFzXOQiCPiFN6aU1fRh4k9cc4uRHjJNNuqtN39p/9OWdtSb+61DTUF/gZN6YtWBng== X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00185.txt.bz2 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