From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) by dpdk.org (Postfix) with ESMTP id 37108594C for ; Fri, 18 Apr 2014 00:47:06 +0200 (CEST) Received: by mail-we0-f181.google.com with SMTP id q58so978250wes.26 for ; Thu, 17 Apr 2014 15:47:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=BrA+to5hb8GfxHOjfFDRetVyB6cUvU2a3qGSm32g8JY=; b=BDouJHgDmmK2cbBJKT0qlUD+Ki5T18P+Mol1nkLP5pVZ/xgryF3/Y8a1inWYewnRhD QExvSIg3OAZ3shX3XdjCYt79/qILhDRuIkMqSisJLToGX44WNbqe9lxU670svqw8IBhh eXL4UcD6TfES3Svd8XfuQO8QAcuc9V/lb6P+5lgwkUb3moH/OkX39diLDyzbpSo34V+2 bgaMS0OJ/Cmgq3SnWH2pIdrqXS/JrMUrEbnbz6H30K09OMvUeg6LfR7Lvn4ASidKcLZt e9+5bbo+MrQtw0hsWprDOumQOJO726S4rVwmg5uabm6w54kuxHuaOA4Bug4mwjkAwkem 0c9w== X-Gm-Message-State: ALoCoQm8yiFmP1LLzp29W74mENVjxqPCyLVCGmA8E9SK9RSYd88Hid7cfyCKveMObJU2ZmmBGUrA X-Received: by 10.180.94.196 with SMTP id de4mr46510wib.16.1397774825877; Thu, 17 Apr 2014 15:47:05 -0700 (PDT) Received: from xps13.localnet (abo-213-55-68.mts.modulonet.fr. [85.68.55.213]) by mx.google.com with ESMTPSA id ct2sm40844165wjb.33.2014.04.17.15.47.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Apr 2014 15:47:04 -0700 (PDT) From: Thomas Monjalon To: Pascal Mazon Date: Fri, 18 Apr 2014 00:47:03 +0200 Message-ID: <1892856.uUH5QI7dPr@xps13> Organization: 6WIND User-Agent: KMail/4.12.4 (Linux/3.14.1-1-ARCH; KDE/4.12.4; x86_64; ; ) In-Reply-To: <20140415135704.GB3557@hmsreliant.think-freely.org> References: <1397569822-3294-1-git-send-email-david.marchand@6wind.com> <20140415135704.GB3557@hmsreliant.think-freely.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] eal: do not try to load library with a local pathname X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2014 22:47:06 -0000 > > When loading a library "libfoo.so" (depending on "libbar.so", located in > > an > > entirely different folder), with a LD_LIBRARY_PATH=/path/to/libfoo.so", it > > > > returns an error: > > EAL: ./libfoo.so: cannot open shared object file: No such file or > > directory > > > > If the first dlopen() fails (here, because it can't find all > > dependencies), > > the code requires for a second dlopen() that looks for "./libfoo.so". It > > turns on pathname matching, which does not use LD_LIBRARY_PATH. As a > > result, it fails because it cannot find "./libfoo.so". > > > > The error message matches the error of the second dlopen(), not the > > first's. > > > > Do not try to look for a different library ("./"-prefixed) than the one > > provided in argument. Let the dynamic library management handle it, just > > provide an appropriate LD_LIBRARY_PATH. > > > > Signed-off-by: Pascal Mazon > > Acked-by: Neil Horman Applied for version 1.6.0r2. Thanks, it's a good usability improvement (simpler is better :) -- Thomas