GNU bug report logs - #61278
improve diagnostics for LDFLAGS used on static archives

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: automake; Severity: minor; Reported by: Reuben Thomas <rrt@HIDDEN>; dated Sat, 4 Feb 2023 18:28:02 UTC; Maintainer for automake is bug-automake@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Mike Frysinger <vapier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Changed bug title to 'improve diagnostics for LDFLAGS used on static archives' from 'Automake warns about LDFLAGS for defined library' Request was from Mike Frysinger <vapier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 61278 <at> debbugs.gnu.org:


Received: (at 61278) by debbugs.gnu.org; 5 Feb 2023 06:38:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 05 01:38:14 2023
Received: from localhost ([127.0.0.1]:43944 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pOYfG-00048j-99
	for submit <at> debbugs.gnu.org; Sun, 05 Feb 2023 01:38:14 -0500
Received: from mail-ej1-f51.google.com ([209.85.218.51]:44967)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rrt@HIDDEN>) id 1pOYfB-00048U-Pg
 for 61278 <at> debbugs.gnu.org; Sun, 05 Feb 2023 01:38:12 -0500
Received: by mail-ej1-f51.google.com with SMTP id hx15so25932531ejc.11
 for <61278 <at> debbugs.gnu.org>; Sat, 04 Feb 2023 22:38:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=U0YnJ9VDtmYRIg14DoQ+FvLvwpkSBQFtAitj3TsgFPo=;
 b=sMIXa1lAjYpgoBatGr6MxQIBhEcFTWmUCvi4bMzfOprD+2RLKTZ3UljhWj2808XEJJ
 zH6z8alnK5b52BJouNDmlhy6Hp4rc8iz9jaca+nqUfcvtjMxZJMgwnjDhy3I3n/9g5hH
 pzbjYUGyRyacpQz6t/z00tvFd9cl6s7g3AGW4=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=U0YnJ9VDtmYRIg14DoQ+FvLvwpkSBQFtAitj3TsgFPo=;
 b=M3ZrD3bBYsEgmwhw14osuoGo3B5gTsms+Gxg0Z2B+HlpMR23GwwKpI5zmYnEuOsidY
 CiJlHgxYynbVoYm7MCEGULbzh1QTcZeyLFRLDEsBTrpfz7dEZp2Aj382N03CFV9A9YEM
 7v5LhSXiinhnpchggJVUwf5G+MCCIs3hxdII1etnkP9oZQ5Pof1PAXSMbX91N5SRBStn
 OhTwpIFzOMVMR/FL/yxKYvldWUDN73I8LT+0arqdo/05Qv+7/LfqtQN3RYfMcvDGXlpV
 t0Zt96ks3vQrZEBd2+turNi0wuPZ5VbHhI3HMfXsXmrmQmYwxVz5yZtLppg7ffa0mYVF
 YzMQ==
X-Gm-Message-State: AO0yUKUPUt+8sBV04HeOi5mqfrVtyIUH9de76psN+QIlntf6bJQ0OMrB
 wmVM1xhouRwU4cV/8ovPQpNcIB35Ftf5nDbkrEhwUg==
X-Google-Smtp-Source: AK7set+Bg/xbcDJiBE1rkKl0PfTWsic4Sk4ZWFMgCeEc8N44g8nvxCSj7Kg0+uBvwjVQWFtww7sLuY570T3UynbEP2g=
X-Received: by 2002:a17:906:af8a:b0:87b:dae9:a1e4 with SMTP id
 mj10-20020a170906af8a00b0087bdae9a1e4mr4434572ejb.48.1675579084036; Sat, 04
 Feb 2023 22:38:04 -0800 (PST)
MIME-Version: 1.0
References: <CAOnWdogdUmFK41ZD+Kf+QkQp4uWQzQmMDDg9UsgKZOEtAUdAHA@HIDDEN>
 <CADyTPEwDVgSxrcLzPddg56q--iZyEy_cyHnp7eQPiCcC6f_Z5g@HIDDEN>
In-Reply-To: <CADyTPEwDVgSxrcLzPddg56q--iZyEy_cyHnp7eQPiCcC6f_Z5g@HIDDEN>
From: Reuben Thomas <rrt@HIDDEN>
Date: Sun, 5 Feb 2023 06:37:52 +0000
Message-ID: <CAOnWdoj56vkpnOPU8YuSZV7XCJ06watdW0tEDe3F1_t0s282pA@HIDDEN>
Subject: Re: bug#61278: Automake warns about LDFLAGS for defined library
To: Nick Bowler <nbowler@HIDDEN>
Content-Type: multipart/alternative; boundary="00000000000018eb1605f3ee281a"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 61278
Cc: 61278 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--00000000000018eb1605f3ee281a
Content-Type: text/plain; charset="UTF-8"

On Sun, 5 Feb 2023 at 06:09, Nick Bowler <nbowler@HIDDEN> wrote:

>
> What Automake is trying to tell you is that LDFLAGS is meaningless
> on a static library.  This message could definitely be improved!
>

Of course, thanks! I was confused because  in another Makefile.am that had
only a static library I did not get this message, but I did not set LDFLAGS
there.

-- 
https://rrt.sc3d.org

--00000000000018eb1605f3ee281a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail=
_attr">On Sun, 5 Feb 2023 at 06:09, Nick Bowler &lt;<a href=3D"mailto:nbowl=
er@HIDDEN">nbowler@HIDDEN</a>&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex"><br>
What Automake is trying to tell you is that LDFLAGS is meaningless<br>
on a static library.=C2=A0 This message could definitely be improved!<br></=
blockquote><div><br></div><div style=3D"font-family:arial,helvetica,sans-se=
rif;font-size:small" class=3D"gmail_default">Of course, thanks! I was confu=
sed because=C2=A0 in another Makefile.am that had only a static library I d=
id not get this message, but I did not set LDFLAGS there.<br></div></div><b=
r>-- <br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div><=
div dir=3D"ltr"><a href=3D"https://rrt.sc3d.org" target=3D"_blank">https://=
rrt.sc3d.org</a></div></div></div></div></div>

--00000000000018eb1605f3ee281a--




Information forwarded to bug-automake@HIDDEN:
bug#61278; Package automake. Full text available.

Message received at 61278 <at> debbugs.gnu.org:


Received: (at 61278) by debbugs.gnu.org; 5 Feb 2023 06:09:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 05 01:09:19 2023
Received: from localhost ([127.0.0.1]:43847 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pOYDH-00039w-GD
	for submit <at> debbugs.gnu.org; Sun, 05 Feb 2023 01:09:19 -0500
Received: from mail-vk1-f178.google.com ([209.85.221.178]:43892)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <nbowler@HIDDEN>) id 1pOYDC-00039f-3f
 for 61278 <at> debbugs.gnu.org; Sun, 05 Feb 2023 01:09:17 -0500
Received: by mail-vk1-f178.google.com with SMTP id v5so4611263vkc.10
 for <61278 <at> debbugs.gnu.org>; Sat, 04 Feb 2023 22:09:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=draconx-ca.20210112.gappssmtp.com; s=20210112;
 h=cc:to:subject:message-id:date:from:references:in-reply-to
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=pYortVFgQpqWBr3v03WbpdFrhC0dAC41lkJx0wM0yvQ=;
 b=dKoPpOAQXckgMXXtvp0qqzVabNBhQ1tBpeqQGkiXCxNWj5+OTg3V8+UNYK7cf9tuc5
 +cYlK60TnHdiXi8NBXhGHvJZCFO1zQkQ/xFPEZ517aiLRfXIPwuuePsOtjtVk0rJ5RFz
 +ZlQgfNTozLGyTKXKOEru1MgcEgKP6SUcW1a8bUBdbHkjtJoZbTeCAwVbOCIMremDKK0
 n06L2qRqq7l3pmfR9LzkrL9Eoinc4vXwk/f2JjPOKr5kjcFx+fg6r1kzap2x9pHa8qg7
 0GKdg6vaNdlVo3Bea8zw0cghiYWWnVwA7PmpNq4NXyyFW52uzXyLR44L/5By2ZeGr47m
 Yl9Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=cc:to:subject:message-id:date:from:references:in-reply-to
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=pYortVFgQpqWBr3v03WbpdFrhC0dAC41lkJx0wM0yvQ=;
 b=N8pTW7cezg2dyOOUAHQp+kVSvIFmON1MZf/0rL7TNVeMnVC3nPAmu4YkmaSvKlCXu3
 WCX25vRBwVmim9wZldie0paU9SN+45UbDeKq/iAPXduAGOcOxfznU5i2JXdI3wCB2OZb
 GaT23UHGgjNxa42REeqCGFdNitw01aCl14VUmJXEWGL50Y2kPjjPHA6IQt/o8pE3peiA
 PERY0+y26zhhUitz5PsLM4dSplchNX2lzyExDwAcKy/KBEmhEFbQxDLpVElU0C6Zfeov
 RyyJU1YwkoIRHoiGgg8quA2AMbMf19DD3X6IJIAROiDM2g918lqkYAHuyxEKG0cnNqDx
 cOiw==
X-Gm-Message-State: AO0yUKUc2VUVhter65G0zdAgaiLxiaJ3HQBfYBIMkGDwWHzXn+fabRio
 6FvKT9DHDxu3HMVik2Gq6TANcuXfEZ7EaGjF9W/Kow==
X-Google-Smtp-Source: AK7set+EuCFtE758CoL/UecR3ibdL0qMPYezghTLTLnNpeU65Jc1OD2fdWhVQZAe1AMONyU7OMFy5RMdDalSRBW+xVc=
X-Received: by 2002:ac5:ca84:0:b0:3e1:9f39:5c46 with SMTP id
 u4-20020ac5ca84000000b003e19f395c46mr2315689vkk.20.1675577348431; Sat, 04 Feb
 2023 22:09:08 -0800 (PST)
MIME-Version: 1.0
Received: by 2002:a05:6130:1015:b0:559:9619:d862 with HTTP; Sat, 4 Feb 2023
 22:09:07 -0800 (PST)
X-Originating-IP: [99.209.81.118]
In-Reply-To: <CAOnWdogdUmFK41ZD+Kf+QkQp4uWQzQmMDDg9UsgKZOEtAUdAHA@HIDDEN>
References: <CAOnWdogdUmFK41ZD+Kf+QkQp4uWQzQmMDDg9UsgKZOEtAUdAHA@HIDDEN>
From: Nick Bowler <nbowler@HIDDEN>
Date: Sun, 5 Feb 2023 01:09:07 -0500
Message-ID: <CADyTPEwDVgSxrcLzPddg56q--iZyEy_cyHnp7eQPiCcC6f_Z5g@HIDDEN>
Subject: Re: bug#61278: Automake warns about LDFLAGS for defined library
To: Reuben Thomas <rrt@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 3.6 (+++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On 2023-02-04, Reuben Thomas via Bug reports for Automake
 <bug-automake@HIDDEN> wrote: > When automake is run,
 it warns: > > liba2ps/Makefile.am:63:
 warning: variable 'libnowarnings_a_LDFLAGS' is > d [...] 
 Content analysis details:   (3.6 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
 [99.209.81.118 listed in zen.spamhaus.org]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 SPF_NONE               SPF: sender does not publish an SPF Record
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [209.85.221.178 listed in wl.mailspike.net]
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [209.85.221.178 listed in list.dnswl.org]
X-Debbugs-Envelope-To: 61278
Cc: 61278 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 2.6 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  On 2023-02-04, Reuben Thomas via Bug reports for Automake
   <bug-automake@HIDDEN> wrote: > When automake is run, it warns: > > liba2ps/Makefile.am:63:
    warning: variable 'libnowarnings_a_LDFLAGS' is > d [...] 
 
 Content analysis details:   (2.6 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
                             [209.85.221.178 listed in wl.mailspike.net]
  3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                             [99.209.81.118 listed in zen.spamhaus.org]
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [209.85.221.178 listed in list.dnswl.org]
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
  0.0 SPF_NONE               SPF: sender does not publish an SPF Record
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

On 2023-02-04, Reuben Thomas via Bug reports for Automake
<bug-automake@HIDDEN> wrote:
> When automake is run, it warns:
>
> liba2ps/Makefile.am:63: warning: variable 'libnowarnings_a_LDFLAGS' is
> defined but no program or
> liba2ps/Makefile.am:63: library has 'libnowarnings_a' as canonical name
> (possible typo)
>
> I don't understand this, because libnowarnings.a is defined as the
> canonical name of a library.

Indeed, this message does not seem very accurate.

What Automake is trying to tell you is that LDFLAGS is meaningless
on a static library.  This message could definitely be improved!

> If in the first Makefile.am I change the convenience library
> "libnowarnings.a" to a libtool library "libnowarnings.la", and add it
> to noinst_LTLIBRARIES, and rename the other variables accordingly,
> then again I get no warnings.

Unlike with a static library, LDFLAGS is used with libtool libraries, so
it is good that there is no warning.

Cheers,
  Nick




Information forwarded to bug-automake@HIDDEN:
bug#61278; Package automake. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Feb 2023 18:28:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 04 13:28:01 2023
Received: from localhost ([127.0.0.1]:43447 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pONGb-0002JE-9O
	for submit <at> debbugs.gnu.org; Sat, 04 Feb 2023 13:28:01 -0500
Received: from lists.gnu.org ([209.51.188.17]:33604)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rrt@HIDDEN>) id 1pONGX-0002J1-RL
 for submit <at> debbugs.gnu.org; Sat, 04 Feb 2023 13:27:59 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rrt@HIDDEN>) id 1pONGX-0000bm-Kr
 for bug-automake@HIDDEN; Sat, 04 Feb 2023 13:27:57 -0500
Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <rrt@HIDDEN>) id 1pONGU-0004Tj-S9
 for bug-automake@HIDDEN; Sat, 04 Feb 2023 13:27:57 -0500
Received: by mail-ej1-x632.google.com with SMTP id ud5so23744951ejc.4
 for <bug-automake@HIDDEN>; Sat, 04 Feb 2023 10:27:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=EATRzXrzku3ioVIcPUPMSisYsfU9wdDIs28UcA1XN/w=;
 b=kVc46SA3q9bJD1ENFvqi3j3F7fPvLiyVaB2Oztm6S3/7LUNc60cWu51gBPjb2H/xuo
 Jy5pg3uKidMDE8bBy/+biK9xkhQH4rrYCd9mCICve85D5RzvvO8eWSBKGKUF1VY1QUjG
 yVarQ2dF6UXJmKBthKKtmOGUaZSzt59gQqcY0=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=EATRzXrzku3ioVIcPUPMSisYsfU9wdDIs28UcA1XN/w=;
 b=IX6wbXeCXsBIf5pGqSDNg0q03ZlQsCNf13dnUr1CqkwE9hO+zO0RGTFkgLQXz1VLKM
 WusU9WYUSs107zGUE+FdnhaP13pa+hTd+QaIaa5kfzjH9fNPjOMJGJTqfwwsa7lFxhZ4
 91usLOG3+LRpObc9nLYja8XsRmHuYXlx7YwjxWn/j7lIjz0hncDtQY+NHGaOLMx+aPBA
 zZJwCP8o7Lk6jSRzsnJiOyLnJ75kE2gkYjmjuu88NAN+xBoXHbChHE+IlTGIoHxsVu0H
 VfVXHU/AudASTYL9vrzrdljrsSMoVybRHho/Y2BrhYSd7zUM4s+zVtRW+URCa8Luzhed
 d06Q==
X-Gm-Message-State: AO0yUKX99ZtpK8J3+LfwAJ9wM9UPNqPAChry6FLuSk5LJRDwFqDFMGcG
 2QL4p3VyhVOGyU/fS9f+Klxr1Nu6kYCdwrg+nw2YE+kMD4glPPXA
X-Google-Smtp-Source: AK7set9jH+SF8wl4PPPGjrSxbRb0rBU9ql5FyiznSh2S4PY9S2KgXhrf4Ee0kp7oqi4NuvWCe9zcb1CJPy8WIytSTkA=
X-Received: by 2002:a17:906:af8a:b0:87b:dae9:a1e4 with SMTP id
 mj10-20020a170906af8a00b0087bdae9a1e4mr4109822ejb.48.1675535271748; Sat, 04
 Feb 2023 10:27:51 -0800 (PST)
MIME-Version: 1.0
From: Reuben Thomas <rrt@HIDDEN>
Date: Sat, 4 Feb 2023 18:27:40 +0000
Message-ID: <CAOnWdogdUmFK41ZD+Kf+QkQp4uWQzQmMDDg9UsgKZOEtAUdAHA@HIDDEN>
Subject: Automake warns about LDFLAGS for defined library
To: bug-automake <bug-automake@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000ae7c2905f3e3f4fc"
Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=rrt@HIDDEN;
 helo=mail-ej1-x632.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

--000000000000ae7c2905f3e3f4fc
Content-Type: text/plain; charset="UTF-8"

Using automake 1.16.5, in my Makefile.am, I have the following lines:

noinst_LTLIBRARIES = liba2ps.la
liba2ps_la_LDFLAGS = $(LIBGC_LIBS)
liba2ps_la_SOURCES = $(liba2pssources) $(libitsources) $(mylibitsources)
liba2ps_la_LIBADD = ../lib/libgnu.la $(LIBINTL) $(LIBSOCKET)
$(GETHOSTNAME_LIB)

noinst_LIBRARIES = libnowarnings.a
libnowarnings_a_CFLAGS = $(LIBGC_FLAGS)
libnowarnings_a_LDFLAGS = $(LIBGC_LIBS)
libnowarnings_a_SOURCES = fonts.l lexppd.l parseppd.y regex.c regex.h
confg.c confg.h

(This is from GNU a2ps <https://savannah.gnu.org/projects/a2ps>'s
liba2ps/Makefile.am.)

When automake is run, it warns:

liba2ps/Makefile.am:63: warning: variable 'libnowarnings_a_LDFLAGS' is
defined but no program or
liba2ps/Makefile.am:63: library has 'libnowarnings_a' as canonical name
(possible typo)

I don't understand this, because libnowarnings.a is defined as the
canonical name of a library.

In src/Makfile.am, I have the following lines:

noinst_LIBRARIES = libparse.a
libparse_a_SOURCES = parsessh.y lexssh.l lexps.l sheets-map.l
libparse_a_CFLAGS = $(LIBGC_FLAGS)

and I get no warnings. I have no LTLIBRARIES in this Makefile.am.

If in the first Makefile.am I change the convenience library
"libnowarnings.a" to a libtool library "libnowarnings.la", and add it to
noinst_LTLIBRARIES, and rename the other variables accordingly, then again
I get no warnings.

-- 
https://rrt.sc3d.org

--000000000000ae7c2905f3e3f4fc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he=
lvetica,sans-serif;font-size:small">Using automake 1.16.5, in my Makefile.a=
m, I have the following lines:</div><div class=3D"gmail_default" style=3D"f=
ont-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class=
=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;font-siz=
e:small">noinst_LTLIBRARIES =3D <a href=3D"http://liba2ps.la">liba2ps.la</a=
><br></div><div class=3D"gmail_default" style=3D"font-family:arial,helvetic=
a,sans-serif;font-size:small">liba2ps_la_LDFLAGS =3D $(LIBGC_LIBS)<br>liba2=
ps_la_SOURCES =3D $(liba2pssources) $(libitsources) $(mylibitsources)<br>li=
ba2ps_la_LIBADD =3D ../lib/<a href=3D"http://libgnu.la">libgnu.la</a> $(LIB=
INTL) $(LIBSOCKET) $(GETHOSTNAME_LIB)</div><div class=3D"gmail_default" sty=
le=3D"font-family:arial,helvetica,sans-serif;font-size:small"><br></div><di=
v class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;f=
ont-size:small">noinst_LIBRARIES =3D libnowarnings.a</div><div class=3D"gma=
il_default" style=3D"font-family:arial,helvetica,sans-serif;font-size:small=
">libnowarnings_a_CFLAGS =3D $(LIBGC_FLAGS)<br>libnowarnings_a_LDFLAGS =3D =
$(LIBGC_LIBS)<br>libnowarnings_a_SOURCES =3D fonts.l lexppd.l parseppd.y re=
gex.c regex.h confg.c confg.h</div><div class=3D"gmail_default" style=3D"fo=
nt-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class=
=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;font-siz=
e:small">(This is from <a href=3D"https://savannah.gnu.org/projects/a2ps">G=
NU a2ps</a>&#39;s liba2ps/Makefile.am.)</div><div class=3D"gmail_default" s=
tyle=3D"font-family:arial,helvetica,sans-serif;font-size:small"><br></div><=
div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif=
;font-size:small">When automake is run, it warns:</div><div class=3D"gmail_=
default" style=3D"font-family:arial,helvetica,sans-serif;font-size:small"><=
br></div><div class=3D"gmail_default" style=3D"font-family:arial,helvetica,=
sans-serif;font-size:small">liba2ps/Makefile.am:63: warning: variable &#39;=
libnowarnings_a_LDFLAGS&#39; is defined but no program or<br>liba2ps/Makefi=
le.am:63: library has &#39;libnowarnings_a&#39; as canonical name (possible=
 typo)</div><div class=3D"gmail_default" style=3D"font-family:arial,helveti=
ca,sans-serif;font-size:small"><br></div><div class=3D"gmail_default" style=
=3D"font-family:arial,helvetica,sans-serif;font-size:small">I don&#39;t und=
erstand this, because libnowarnings.a is defined as the canonical name of a=
 library.</div><div class=3D"gmail_default" style=3D"font-family:arial,helv=
etica,sans-serif;font-size:small"><br></div><div class=3D"gmail_default" st=
yle=3D"font-family:arial,helvetica,sans-serif;font-size:small">In src/Makfi=
le.am, I have the following lines:</div><div class=3D"gmail_default" style=
=3D"font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div =
class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;fon=
t-size:small">noinst_LIBRARIES =3D libparse.a<br>libparse_a_SOURCES =3D par=
sessh.y lexssh.l lexps.l sheets-map.l<br>libparse_a_CFLAGS =3D $(LIBGC_FLAG=
S)<br></div><div><br></div><div><div style=3D"font-family:arial,helvetica,s=
ans-serif;font-size:small" class=3D"gmail_default">and I get no warnings. I=
 have no LTLIBRARIES in this Makefile.am.</div><div style=3D"font-family:ar=
ial,helvetica,sans-serif;font-size:small" class=3D"gmail_default"><br></div=
><div style=3D"font-family:arial,helvetica,sans-serif;font-size:small" clas=
s=3D"gmail_default">If in the first Makefile.am I change the convenience li=
brary &quot;libnowarnings.a&quot; to a libtool library &quot;<a href=3D"htt=
p://libnowarnings.la">libnowarnings.la</a>&quot;, and add it to noinst_LTLI=
BRARIES, and rename the other variables accordingly, then again I get no wa=
rnings.<br></div><br></div>-- <br><div dir=3D"ltr" class=3D"gmail_signature=
" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"=
><a href=3D"https://rrt.sc3d.org" target=3D"_blank">https://rrt.sc3d.org</a=
></div></div></div></div></div>

--000000000000ae7c2905f3e3f4fc--




Acknowledgement sent to Reuben Thomas <rrt@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-automake@HIDDEN. Full text available.
Report forwarded to bug-automake@HIDDEN:
bug#61278; Package automake. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 3 Dec 2023 04:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.