From unknown Tue Jun 17 01:47:29 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18075 <18075@debbugs.gnu.org> To: bug#18075 <18075@debbugs.gnu.org> Subject: Status: AM_INIT_AUTOMAKE followed by comment Reply-To: bug#18075 <18075@debbugs.gnu.org> Date: Tue, 17 Jun 2025 08:47:29 +0000 retitle 18075 AM_INIT_AUTOMAKE followed by comment reassign 18075 automake submitter 18075 Scott Pakin severity 18075 normal tag 18075 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 21 19:10:02 2014 Received: (at submit) by debbugs.gnu.org; 21 Jul 2014 23:10:02 +0000 Received: from localhost ([127.0.0.1]:33817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9MiW-0003aZ-Nu for submit@debbugs.gnu.org; Mon, 21 Jul 2014 19:10:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58388) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9LJ4-0000pf-FN for submit@debbugs.gnu.org; Mon, 21 Jul 2014 17:39:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9LIs-0003u2-OL for submit@debbugs.gnu.org; Mon, 21 Jul 2014 17:39:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=5.0 tests=BAYES_50,URIBL_BLACK autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9LIs-0003to-LL for submit@debbugs.gnu.org; Mon, 21 Jul 2014 17:39:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9LIm-0007Ui-RY for bug-automake@gnu.org; Mon, 21 Jul 2014 17:39:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9LIg-0003rl-Ul for bug-automake@gnu.org; Mon, 21 Jul 2014 17:39:20 -0400 Received: from proofpoint4.lanl.gov ([204.121.3.52]:52721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9LIg-0003rd-Ms for bug-automake@gnu.org; Mon, 21 Jul 2014 17:39:14 -0400 Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by mailgate4.lanl.gov (8.14.5/8.14.5) with ESMTP id s6LLdDe3015871 for ; Mon, 21 Jul 2014 15:39:13 -0600 Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 82E69E93F79; Mon, 21 Jul 2014 15:39:13 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay2.lanl.gov Received: from [128.165.148.146] (morbo.lanl.gov [128.165.148.146]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 7217DE93F5E; Mon, 21 Jul 2014 15:39:13 -0600 (MDT) Message-ID: <53CD8881.9050806@lanl.gov> Date: Mon, 21 Jul 2014 15:39:13 -0600 From: Scott Pakin Organization: Los Alamos National Laboratory User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: bug-automake@gnu.org Subject: AM_INIT_AUTOMAKE followed by comment X-Enigmail-Version: 1.5.2 Content-Type: multipart/mixed; boundary="------------070701050408040106010504" X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52, 1.0.14, 0.0.0000 definitions=2014-07-20_03:2014-07-18,2014-07-20,1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 21 Jul 2014 19:09:59 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --------------070701050408040106010504 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit The definition of AM_INIT_AUTOMAKE does not end in a newline character, which can cause tricky-to-track errors if the call is followed by an M4 comment. I believe this is new behavior because an old set of Autotools configuration files that used to work failed when I recently re-ran automake. I'm running Ubuntu Trusty Tahr (14.04 LTS) with the following Automake and Autoconf versions: $ automake --version | head -1 automake (GNU automake) 1.14.1 $ autoconf --version | head -1 autoconf (GNU Autoconf) 2.69 I've attached a minimal reproducer, a configure.ac file with only the following contents: AC_INIT([badness], [1.0], [pakin@lanl.gov], [badness]) AM_INIT_AUTOMAKE([1.14])dnl This comment causes configure to break. AC_CONFIG_FILES([Makefile]) AC_OUTPUT Here's how to produce the error: $ touch Makefile.am $ aclocal $ automake --add-missing --foreign configure.ac:2: installing './install-sh' configure.ac:2: installing './missing' $ autoconf $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes ./configure: line 3493: syntax error: unexpected end of file The error is caused by line 2313, which contains fiac_config_files="$ac_config_files Makefile" instead of fi ac_config_files="$ac_config_files Makefile" That is, bash is in fact complaining about a missing "fi". Removing the comment from configure.ac or moving it onto a line of its own works around the problem, but I think it would be nicer if init.m4 replaced the final "fi])" (right after the "Your 'rm' program is bad" message) with fi ]) Hopefully, that'll save someone else the effort of associating an "end of file" error with a comment appearing in the wrong place. Thanks for your time, -- Scott --------------070701050408040106010504 Content-Type: text/plain; charset=UTF-8; name="configure.ac" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="configure.ac" QUNfSU5JVChbYmFkbmVzc10sIFsxLjBdLCBbcGFraW5AbGFubC5nb3ZdLCBbYmFkbmVzc10p CkFNX0lOSVRfQVVUT01BS0UoWzEuMTRdKWRubCBUaGlzIGNvbW1lbnQgY2F1c2VzIGNvbmZp Z3VyZSB0byBicmVhay4KQUNfQ09ORklHX0ZJTEVTKFtNYWtlZmlsZV0pCkFDX09VVFBVVAo= --------------070701050408040106010504-- From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 19 06:31:53 2014 Received: (at 18075) by debbugs.gnu.org; 19 Dec 2014 11:31:53 +0000 Received: from localhost ([127.0.0.1]:50852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1vmi-0002Y0-OT for submit@debbugs.gnu.org; Fri, 19 Dec 2014 06:31:53 -0500 Received: from mail-wi0-f177.google.com ([209.85.212.177]:60062) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1vmf-0002Xb-Di; Fri, 19 Dec 2014 06:31:49 -0500 Received: by mail-wi0-f177.google.com with SMTP id l15so1435337wiw.10; Fri, 19 Dec 2014 03:31:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=+t1rwVRVxZxi/McKL5u1wLLdcUKKggqbVWigwKS8tUc=; b=Abvyi5j+J4VXl5nvhbIF3vv8MwROx55oRnHPTg/rks5TNswK/eCSMHeFHbMZGYRtNx PjhH9RTH/0XmiNScZLbQSOCHGzuPvnVrM3gVUyxcil1ixuNUa9ipJ8jzztsArTlR5Hc2 plIzfyu8vARII9PbEp1qJIJ830t08ZBlgudK6BxXAbxiHRPQsMzoppwghO+wL0el6Ia8 Z/qiIZ+G11yZg83gqvTh7u7dz5EsnR80NFRU42Md6YUQix+PoF59TXMZ05qW8u7EiAfO DGqFP75ImC893F8wJXu7ZF9JvRxgFI2rzRSXMbp2/7jGyhhjWETw89O3ZfRUnGJVppcP ElLg== X-Received: by 10.194.90.10 with SMTP id bs10mr13896119wjb.43.1418988708904; Fri, 19 Dec 2014 03:31:48 -0800 (PST) Received: from [192.168.0.101] (host159-94-dynamic.7-79-r.retail.telecomitalia.it. [79.7.94.159]) by mx.google.com with ESMTPSA id qd2sm2001080wic.19.2014.12.19.03.31.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Dec 2014 03:31:48 -0800 (PST) Message-ID: <54940CA3.1090204@gmail.com> Date: Fri, 19 Dec 2014 12:31:47 +0100 From: Stefano Lattarini MIME-Version: 1.0 To: Scott Pakin , 18075@debbugs.gnu.org, 16841@debbugs.gnu.org, GNU bug tracker automated control server Subject: Re: bug#18075: AM_INIT_AUTOMAKE followed by comment References: <53CD8881.9050806@lanl.gov> In-Reply-To: <53CD8881.9050806@lanl.gov> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18075 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) forcemerge 16841 18075 stop Reference: http://debbugs.gnu.org/18075 Hi Scott. Thanks for the report, and sorry for the awful delay. I've already solved this issue as part of http://debbugs.gnu.org/16841 The fix will appear in the next Automake version (hopefully to be released before the end of December). Regards, Stefano From unknown Tue Jun 17 01:47:29 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 16 Jan 2015 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator