Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.1 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,URIBL_SBL, URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8E07C65BAF for ; Wed, 12 Dec 2018 16:17:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AE7052080F for ; Wed, 12 Dec 2018 16:17:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AE7052080F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=RedHat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726468AbeLLQR6 (ORCPT ); Wed, 12 Dec 2018 11:17:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:22737 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbeLLQR6 (ORCPT ); Wed, 12 Dec 2018 11:17:58 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6BE553C2CE8; Wed, 12 Dec 2018 16:17:58 +0000 (UTC) Received: from steved.boston.devel.redhat.com (ovpn-117-6.phx2.redhat.com [10.3.117.6]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1DB1B1054FD2; Wed, 12 Dec 2018 16:17:58 +0000 (UTC) Subject: Re: [PATCH] nfsref: switch the way libraries are linked. To: Chuck Lever Cc: Linux NFS Mailing List References: <20181211190944.71940-1-steved@redhat.com> <0F088877-F56A-47FF-BBF3-95A8293BF912@oracle.com> <40177ab7-bf23-7966-fbfa-9bac12d4655c@RedHat.com> From: Steve Dickson Message-ID: <1e5b3bba-2992-1cfb-a3b3-df24e4587369@RedHat.com> Date: Wed, 12 Dec 2018 11:17:57 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 12 Dec 2018 16:17:58 +0000 (UTC) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 12/12/18 10:54 AM, Chuck Lever wrote: > > >> On Dec 11, 2018, at 5:27 PM, Steve Dickson wrote: >> >> >> >> On 12/11/18 2:12 PM, Chuck Lever wrote: >>> >>>> On Dec 11, 2018, at 2:09 PM, Steve Dickson wrote: >>>> >>>> Link the static libs before the dynamic libs allowing >>>> the routines in the static libs to be defined >>>> by the dynamic libs >>> >>> Hi Steve, Why is this change necessary? Is there a bug report? >> No... when I enabled junctions in the Fedora rawhide (F30) I got >> a bunch of xml undefined routines >> https://koji.fedoraproject.org/koji/getfile?taskID=31408933&volume=DEFAULT&name=build.log&offset=-4000 >> >> It compiled fine on f29 but not on rawhide >> >> After asking if the XML api changed, people suggested I simply >> change the order of how the static and dynamic libs are linked, >> which worked >> >> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/6UIAF47S73QFLCJDWEWXKQHZTOMB5JXQ/ >> >> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/VK2XPHV2MELV6IRKBG2ITI6GKUBMMRQW/ > > OK. See also: > > http://git.linux-nfs.org/?p=cel/fedfs-utils.git;a=commit;h=05d6450023265e15bdc6e6bd24c05b1586e87d1d > > which is a similar change, but it hits other Makefiles as well. > I wonder why only nfsref/Makefile.am is affected for you. Well taking a quick look at the utils/*/Makefile.am files, in general with two exceptions, the static libs are always defined be for the dynamic libs... And why it compiled on Fedora 29 and not Fedora 30 (rawhide)... Well... I have no idea... its going down as one of those the gcc/ld mysteries ;-) Committed! steved. > > >> steved. >> >>> >>> >>>> Signed-off-by: Steve Dickson >>>> --- >>>> utils/nfsref/Makefile.am | 6 +++--- >>>> 1 file changed, 3 insertions(+), 3 deletions(-) >>>> >>>> diff --git a/utils/nfsref/Makefile.am b/utils/nfsref/Makefile.am >>>> index 44edc83..2409dd0 100644 >>>> --- a/utils/nfsref/Makefile.am >>>> +++ b/utils/nfsref/Makefile.am >>>> @@ -27,9 +27,9 @@ noinst_HEADERS = nfsref.h >>>> >>>> sbin_PROGRAMS = nfsref >>>> nfsref_SOURCES = add.c lookup.c nfsref.c remove.c >>>> -LDADD = $(LIBXML2) $(LIBCAP) \ >>>> - ../../support/nfs/libnfs.la \ >>>> - ../../support/junction/libjunction.la >>>> +LDADD = ../../support/nfs/libnfs.la \ >>>> + ../../support/junction/libjunction.la \ >>>> + $(LIBXML2) $(LIBCAP) >>>> >>>> man8_MANS = nfsref.man >>>> >>>> -- >>>> 2.19.2 >>>> >>> >>> -- >>> Chuck Lever >>> >>> >>> > > -- > Chuck Lever > > >