From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 0094F7D2CD for ; Mon, 15 Apr 2019 08:38:43 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id x3F8chaN008746 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 15 Apr 2019 01:38:44 -0700 (PDT) Received: from [128.224.162.194] (128.224.162.194) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 15 Apr 2019 01:38:43 -0700 To: , References: <23562ca03db97ef41bbb2e6365ecde4bd715438d.camel@linuxfoundation.org> <1555314041-117426-1-git-send-email-mingli.yu@windriver.com> <8879daf5747ec05fa2430354dbd38cc3ae5e1cd5.camel@linuxfoundation.org> <5CB43C2A.4050908@windriver.com> <21cc3e7248d8e702f49de8818f26e2e53a001ed1.camel@linuxfoundation.org> From: "Yu, Mingli" Message-ID: <5CB4442F.2040906@windriver.com> Date: Mon, 15 Apr 2019 16:43:27 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <21cc3e7248d8e702f49de8818f26e2e53a001ed1.camel@linuxfoundation.org> X-Originating-IP: [128.224.162.194] Subject: Re: [PATCH v2] nettle: fix ptest failure X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Apr 2019 08:38:44 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit On 2019年04月15日 16:06, richard.purdie@linuxfoundation.org wrote: > On Mon, 2019-04-15 at 16:09 +0800, Yu, Mingli wrote: >> >> On 2019年04月15日 15:59, richard.purdie@linuxfoundation.org wrote: >>> On Mon, 2019-04-15 at 15:40 +0800, mingli.yu@windriver.com wrote: >>>> ---- a/testsuite/dlopen-test.c 2016-10-01 00:28:38.000000000 >>>> -0700 >>>> -+++ b/testsuite/dlopen-test.c 2017-10-13 11:08:57.227572860 >>>> -0700 >>>> -@@ -9,7 +9,7 @@ >>>> +diff --git a/testsuite/dlopen-test.c b/testsuite/dlopen-test.c >>>> +index 99d3535..92de9f8 100644 >>>> +--- a/testsuite/dlopen-test.c >>>> ++++ b/testsuite/dlopen-test.c >>>> +@@ -9,7 +9,9 @@ int >>>> main (int argc UNUSED, char **argv UNUSED) >>>> { >>>> #if HAVE_LIBDL >>>> - void *handle = dlopen ("../libnettle.so", RTLD_NOW); >>>> + void *handle = dlopen ("/usr/lib/libnettle.so", RTLD_NOW); >>>> ++ if (!handle) >>>> ++ handle = dlopen ("/usr/lib64/libnettle.so", RTLD_NOW); >>>> int (*get_version)(void); >>>> if (!handle) >>>> { >>> >>> What happens on a 32 bit system? >>> >>> You can't hardcode a specific libdir like that! >> >> I just rework the patch dlopen-test.patch which Juro Bystricky >> generated >> before, the previous patch only check /usr/lib/libnettle.so and I >> updated it also to check /usr/lib64/libnettle.so if no >> /usr/lib/libnettle.so exist. >> - void *handle = dlopen ("../libnettle.so", RTLD_NOW); >> + void *handle = dlopen ("/usr/lib/libnettle.so", RTLD_NOW); >> ++ if (!handle) >> ++ handle = dlopen ("/usr/lib64/libnettle.so", RTLD_NOW); > > What happens on x32? n32? or if I set libdir to lib32? Got it! V3 is coming. > > Cheers, > > Richard > > > >