From MAILER-DAEMON Sat Jan 01 02:20:13 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CkdYb-0007kL-9o for mharc-bug-m4@gnu.org; Sat, 01 Jan 2005 02:20:13 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CkdYa-0007jn-0u for bug-m4@gnu.org; Sat, 01 Jan 2005 02:20:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CkdYY-0007j5-Up for bug-m4@gnu.org; Sat, 01 Jan 2005 02:20:11 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CkdYY-0007io-Pe for bug-m4@gnu.org; Sat, 01 Jan 2005 02:20:10 -0500 Received: from [203.199.86.51] (helo=mai.server) by monty-python.gnu.org with smtp (Exim 4.34) id 1CkdL2-00089J-SR for bug-m4@gnu.org; Sat, 01 Jan 2005 02:06:13 -0500 Received: from abc ([10.10.10.252]) by mail.server (mailserver [10.10.10.10]) (MDaemon.PRO.v6.8.5.R) with ESMTP id 24-md50000003303.tmp for ; Sat, 01 Jan 2005 12:54:25 +0530 Message-ID: <001101c4ef66$c8083420$1709020a@im.eth.net> From: "Techno Intergraph" To: Date: Sat, 1 Jan 2005 00:00:19 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000E_01C4EF94.E19EDE60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-MDRemoteIP: 10.10.10.252 X-Return-Path: technoco@vsnl.com X-MDaemon-Deliver-To: bug-m4@gnu.org X-Spam-Processed: mailserver, Sat, 01 Jan 2005 12:54:29 +0530 Subject: Mailing list please X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jan 2005 07:20:12 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_000E_01C4EF94.E19EDE60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Mailing list please Best Regards,=20 Shailesh shah=20 ------=_NextPart_000_000E_01C4EF94.E19EDE60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Mailing list please
Best Regards,
Shailesh shah=20
------=_NextPart_000_000E_01C4EF94.E19EDE60-- From MAILER-DAEMON Mon Jan 10 08:22:03 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CnzUf-0004w7-Ty for mharc-bug-m4@gnu.org; Mon, 10 Jan 2005 08:22:02 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CnzUU-0004sg-5C for bug-m4@gnu.org; Mon, 10 Jan 2005 08:21:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CnzUK-0004na-F7 for bug-m4@gnu.org; Mon, 10 Jan 2005 08:21:41 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CnzUK-0004jN-3G for bug-m4@gnu.org; Mon, 10 Jan 2005 08:21:40 -0500 Received: from [147.231.88.1] (helo=matsrv.math.cas.cz) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CnzG9-00070e-Vb for bug-m4@gnu.org; Mon, 10 Jan 2005 08:07:02 -0500 Received: from matsrv.math.cas.cz (matsrv.math.cas.cz [127.0.0.1]) by matsrv.math.cas.cz (8.12.11/8.12.11) with ESMTP id j0AD6wtA020289; Mon, 10 Jan 2005 14:06:58 +0100 Received: (from kasal@localhost) by matsrv.math.cas.cz (8.12.11/8.12.11/Submit) id j0AD6wpC020288; Mon, 10 Jan 2005 14:06:58 +0100 Date: Mon, 10 Jan 2005 14:06:58 +0100 From: Stepan Kasal To: Sam Lauber Message-ID: <20050110130658.GA17304@matsrv.math.cas.cz> References: <20050109183826.9BD2B416118@ws5-2.us4.outblaze.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050109183826.9BD2B416118@ws5-2.us4.outblaze.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 23:41:34 2004 clamav-milter version 0.80j on localhost X-Virus-Status: Clean Cc: bug-m4@gnu.org Subject: Re: Bug in M4 documentation X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 13:21:54 -0000 Hello, [the best place to discuss m4 bugs is bug-m4, so I'm moving the discussion there] On Sun, Jan 09, 2005 at 07:38:26PM +0100, Sam Lauber wrote: > "It is safe to call `m4wrap' from saved text, but the order > in which the saved text is read is undefined." > > I do not understand that paragraph, and I think it should be > changed to a more understandable form. I think I understand it: 1) it's not an error to call m4wrap in the text saved by m4wrap. 2) the text will be read back before m4 exits, but you cannot say when; it may be after all other texts saved by m4wrap so far, or between two of them; I suppose that no text saved by m4wrap will be interrupted by another text saved this way. Well, I see now that this formulation leaves space for various interpretation. Thank you for reporting this problem. If you have capacities to help even more, you could perhaps suggest an explanation. The developers would check that it describes what they meant to promise, and update the documentation. Thanks, Stepan Kasal From MAILER-DAEMON Mon Jan 10 08:44:43 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Cnzqa-0001om-6L for mharc-bug-m4@gnu.org; Mon, 10 Jan 2005 08:44:40 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CnzqO-0001hA-Ik for bug-m4@gnu.org; Mon, 10 Jan 2005 08:44:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CnzqK-0001fj-Ok for bug-m4@gnu.org; Mon, 10 Jan 2005 08:44:25 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CnzqK-0001cz-6B for bug-m4@gnu.org; Mon, 10 Jan 2005 08:44:24 -0500 Received: from [147.231.88.1] (helo=matsrv.math.cas.cz) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CnzWS-00020O-SN for bug-m4@gnu.org; Mon, 10 Jan 2005 08:23:53 -0500 Received: from matsrv.math.cas.cz (matsrv.math.cas.cz [127.0.0.1]) by matsrv.math.cas.cz (8.12.11/8.12.11) with ESMTP id j0ADNofg021626; Mon, 10 Jan 2005 14:23:50 +0100 Received: (from kasal@localhost) by matsrv.math.cas.cz (8.12.11/8.12.11/Submit) id j0ADNo3I021625; Mon, 10 Jan 2005 14:23:50 +0100 Date: Mon, 10 Jan 2005 14:23:50 +0100 From: Stepan Kasal To: Sam Lauber Message-ID: <20050110132350.GB17304@matsrv.math.cas.cz> References: <20050109190045.0F2CF416118@ws5-2.us4.outblaze.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050109190045.0F2CF416118@ws5-2.us4.outblaze.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 23:41:34 2004 clamav-milter version 0.80j on localhost X-Virus-Status: Clean Cc: bug-m4@gnu.org Subject: Re: Bug in M4 X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 13:44:35 -0000 Hello, [again, I'm moving the discussion to bug-m4] in the bug report below, you say that the text saved by m4wrap should not be processed at the end of the input when the m4 run is to be frozen. The text should be saved to the frozen file instead. I read the node `Frozen files' of the GNU m4 manual, and I think you are right. The diversions are already handled like this, and the text saved by m4wrap should be handled analogically. I guess this change could be introduced in the next version of m4, as I hope that people don't usually use m4wrap to get text executed just before a frozen file is created. I'm just a member of the bug-m4 list, so my word cannot be taken as a final decision. If the maintaners/developers agreed, another question would be who has time to implement this. Do you have capacities to write and donate a patch? Thank you very much for reporting this problem, Stepan Kasal [The test file from the original bug report is attached to this mail, too.] On Sun, Jan 09, 2005 at 08:00:44PM +0100, Sam Lauber wrote: > I am using M4 1.4.2. > I wrote an example of m4wrap which did the following: > > define macros > initalize by m4wrapping to an action to remove a temp file > > However, I ran m4 -R on it, and it said > > (my initalizing message) > (my cleaning-up message) > > I expected > > (my initalizing message) > > I ran m4 -F on the generated file, and pressed EOF. I got > nothing. I expected > > (my cleaning-up message) > > This seriously reduces the usefulness of m4wrap, since large > applications have to establish cleanup actions, and large > applications typically are in frozen files. > My input file was attached. > > Samuel Lauber From MAILER-DAEMON Wed Jan 12 20:50:40 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Cou8G-0004lG-FF for mharc-bug-m4@gnu.org; Wed, 12 Jan 2005 20:50:40 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cou2K-0003W1-2T for bug-m4@gnu.org; Wed, 12 Jan 2005 20:44:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cou2H-0003Uh-AL for bug-m4@gnu.org; Wed, 12 Jan 2005 20:44:29 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cou2H-0003UX-6z for bug-m4@gnu.org; Wed, 12 Jan 2005 20:44:29 -0500 Received: from [205.158.62.67] (helo=webmail-outgoing.us4.outblaze.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CotoX-00018h-2J for bug-m4@gnu.org; Wed, 12 Jan 2005 20:30:17 -0500 Received: from wfilter.us4.outblaze.com (wfilter.us4.outblaze.com [205.158.62.180]) by webmail-outgoing.us4.outblaze.com (Postfix) with QMQP id 23E40180020A for ; Thu, 13 Jan 2005 01:30:13 +0000 (GMT) X-OB-Received: from unknown (205.158.62.131) by wfilter.us4.outblaze.com; 13 Jan 2005 01:30:13 -0000 Received: by ws5-1.us4.outblaze.com (Postfix, from userid 1001) id 0AC583982EF; Thu, 13 Jan 2005 01:30:13 +0000 (GMT) Content-Type: multipart/mixed; boundary="----------=_1105579812-12572-0" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Received: from [204.210.96.202] by ws5-1.us4.outblaze.com with http for sam124@operamail.com; Thu, 13 Jan 2005 02:30:12 +0100 From: "Sam Lauber" To: bug-m4@gnu.org Date: Thu, 13 Jan 2005 02:30:12 +0100 X-Originating-Ip: 204.210.96.202 X-Originating-Server: ws5-1.us4.outblaze.com Message-Id: <20050113013013.0AC583982EF@ws5-1.us4.outblaze.com> X-Mailman-Approved-At: Wed, 12 Jan 2005 20:50:39 -0500 Subject: Re: Bug in M4 documentation X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 01:44:34 -0000 This is a multi-part message in MIME format... ------------=_1105579812-12572-0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I changed it to `m4wrap can be called from m4wrapped text. However, the=20 order of evaluation can not be determined ahead of time.' I've attached a diff to m4.texinfo, if that is correct. Samuel Lauber ----- Original Message ----- From: "Stepan Kasal" > Hello, >=20 > [the best place to discuss m4 bugs is bug-m4, so I'm moving the > discussion there] >=20 > On Sun, Jan 09, 2005 at 07:38:26PM +0100, Sam Lauber wrote: > > "It is safe to call `m4wrap' from saved text, but the order in=20 > > which the saved text is read is undefined." > > > > I do not understand that paragraph, and I think it should be > > changed to a more understandable form. >=20 > I think I understand it: > 1) it's not an error to call m4wrap in the text saved by m4wrap. > 2) the text will be read back before m4 exits, but you cannot say when; > it may be after all other texts saved by m4wrap so far, or between two > of them; I suppose that no text saved by m4wrap will be interrupted by > another text saved this way. >=20 > Well, I see now that this formulation leaves space for various > interpretation. >=20 > Thank you for reporting this problem. If you have capacities to help > even more, you could perhaps suggest an explanation. The developers > would check that it describes what they meant to promise, and update > the documentation. >=20 > Thanks, > Stepan Kasal --=20 _____________________________________________________________ Web-based SMS services available at http://www.operamail.com. =46rom your mailbox to local or overseas cell phones. Powered by Outblaze ------------=_1105579812-12572-0 Content-Type: application/octet-stream; name="m4-doc.diff" Content-Disposition: attachment; filename="m4-doc.diff" Content-Transfer-Encoding: base64 LS0tIG00LnRleGluZm8JMjAwNS0wMS0xMiAxNToyNzoyOC4wMDAwMDAwMDAg KzAwMDANCisrKyBtNC50ZXhpbmZvLm00d3JhcAkyMDA1LTAxLTEyIDE1OjI0 OjM0LjAwMDAwMDAwMCArMDAwMA0KQEAgLTIwMzIsMTAgKzIwMzIsMTAgQEAN CiBUaGUgc2F2ZWQgaW5wdXQgaXMgb25seSByZXJlYWQgd2hlbiB0aGUgZW5k IG9mIG5vcm1hbCBpbnB1dCBpcyBzZWVuLCBhbmQNCiBub3QgaWYgQGNvZGV7 bTRleGl0fSBpcyB1c2VkIHRvIGV4aXQgQGNvZGV7bTR9Lg0KIA0KLUBjb2Rl e200d3JhcH0gY2FuIGJlIGNhbGxlZCBmcm9tIEBjb2Rle200d3JhcH1wZWQg dGV4dC4gSG93ZXZlciwgdGhlDQotb3JkZXIgb2YgZXZhbHVhdGlvbiBjYW4g bm90IGJlIGRldGVybWluZWQgYWhlYWQgb2YgdGltZS4gIElmIEBjb2Rle200 d3JhcH0NCi1pcyBub3QgdXNlZCByZWN1cnNpdmVseSwgdGhlIHNhdmVkIHBp ZWNlcyBvZiB0ZXh0IGFyZSByZXJlYWQgaW4gDQotdGhlIG9wcG9zaXRlIG9y ZGVyIGluIHdoaWNoIHRoZXkgd2VyZSBzYXZlZCAoTElGTy0tLWxhc3QgaW4s IGZpcnN0IG91dCkuDQorSXQgaXMgc2FmZSB0byBjYWxsIEBjb2Rle200d3Jh cH0gZnJvbSBzYXZlZCB0ZXh0LCBidXQgdGhlbiB0aGUgb3JkZXIgaW4NCit3 aGljaCB0aGUgc2F2ZWQgdGV4dCBpcyByZXJlYWQgaXMgdW5kZWZpbmVkLiAg SWYgQGNvZGV7bTR3cmFwfSBpcyBub3QgdXNlZA0KK3JlY3Vyc2l2ZWx5LCB0 aGUgc2F2ZWQgcGllY2VzIG9mIHRleHQgYXJlIHJlcmVhZCBpbiB0aGUgb3Bw b3NpdGUgb3JkZXINCitpbiB3aGljaCB0aGV5IHdlcmUgc2F2ZWQgKExJRk8t LS1sYXN0IGluLCBmaXJzdCBvdXQpLg0KIA0KIEBub2RlIEZpbGUgSW5jbHVz aW9uLCBEaXZlcnNpb25zLCBJbnB1dCBDb250cm9sLCBUb3ANCiBAY2hhcHRl ciBGaWxlIGluY2x1c2lvbg0K ------------=_1105579812-12572-0-- From MAILER-DAEMON Fri Jan 14 11:11:00 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CpU2O-0007qk-5u for mharc-bug-m4@gnu.org; Fri, 14 Jan 2005 11:11:00 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CpTw4-0005ia-BP for bug-m4@gnu.org; Fri, 14 Jan 2005 11:04:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CpTvw-0005fS-BN for bug-m4@gnu.org; Fri, 14 Jan 2005 11:04:21 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CpTvw-0005Yp-4G for bug-m4@gnu.org; Fri, 14 Jan 2005 11:04:20 -0500 Received: from [151.196.62.58] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CpTYm-0000i1-20 for bug-m4@gnu.org; Fri, 14 Jan 2005 10:40:24 -0500 Received: from tresys.com (acme [127.0.0.1]) by localhost.localdomain (8.12.10/8.12.10) with ESMTP id j0EFd4EQ022651; Fri, 14 Jan 2005 10:39:05 -0500 Message-ID: <41E7E798.9060404@tresys.com> Date: Fri, 14 Jan 2005 10:39:04 -0500 From: "David A. Caplan" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: bug-m4@gnu.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 14 Jan 2005 11:10:58 -0500 Subject: m4 comment bug X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 16:04:39 -0000 m4 seems to be picking up single quote characters (') within comment lines (both when using # and dnl). I am using "GNU m4 1.4.1". It also expands $1, $2,... if they are within a comment. Example: define(`foo',` # there aren't any arguments to this macro this is output of the fo`o' macro') foo produces an output loop (because foo is recursively called), => => =># there arent any arguments to this macro =>this is output of the =># there arent any arguments to this macro =>this is output of the ... where: define(`foo',` # there arent any arguments to this macro this is output of the `fo'o macro') foo The output is: => => =># there arent any arguments to this macro =>this is output of the foo macro If we have: define(`foo',` # there aren`'t any arguments to this macro this is output of the fo`o' macro') foo The ouput is: => => =># there aren`'t any arguments to this macro =>this is output of the foo macro -- __________________________________ David Caplan 410 290 1411 x105 dac@tresys.com Tresys Technology, LLC 8840 Stanford Blvd., Suite 2100 Columbia, MD 21045 From MAILER-DAEMON Fri Jan 14 12:15:43 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CpV31-0006ZW-2V for mharc-bug-m4@gnu.org; Fri, 14 Jan 2005 12:15:43 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CpV2y-0006YW-SE for bug-m4@gnu.org; Fri, 14 Jan 2005 12:15:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CpV2x-0006Wt-6y for bug-m4@gnu.org; Fri, 14 Jan 2005 12:15:39 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CpV2v-0006W4-OM for bug-m4@gnu.org; Fri, 14 Jan 2005 12:15:37 -0500 Received: from [128.98.1.9] (helo=mailr.qinetiq-tim.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CpUlo-0000WX-65 for bug-m4@gnu.org; Fri, 14 Jan 2005 11:57:56 -0500 Received: (qmail 990 invoked from network); 14 Jan 2005 16:03:04 -0000 Received: from unknown (HELO mailr.qinetiq-tim.net) (128.98.1.9) by 128.98.1.9 with SMTP; 14 Jan 2005 16:03:04 -0000 Received: (qmail 11968 invoked from network); 14 Jan 2005 17:03:08 -0000 Received: from unknown (HELO ?128.98.76.60?) (128.98.76.60) by mailhost.eris.qinetiq.com with SMTP; 14 Jan 2005 17:03:08 -0000 Message-ID: <41E7FABF.1050102@gnu.org> Date: Fri, 14 Jan 2005 17:00:47 +0000 From: "Gary V. Vaughan" Organization: FSF User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "David A. Caplan" References: <41E7E798.9060404@tresys.com> In-Reply-To: <41E7E798.9060404@tresys.com> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7C7D6BCC542EBEEFE8C9C3BC" X-AntiVirus: checked by Vexira MailArmor (version: 2.0.1.16; VAE: 6.29.0.5; VDF: 6.29.0.52; host: mailr.qinetiq-tim.net) Cc: bug-m4@gnu.org Subject: Re: m4 comment bug X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 17:15:41 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7C7D6BCC542EBEEFE8C9C3BC Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi David, David A. Caplan wrote: > m4 seems to be picking up single quote characters (') within comment > lines (both when using # and dnl). I am using "GNU m4 1.4.1". It also > expands $1, $2,... if they are within a comment. > > Example: > define(`foo',` > # there aren't any arguments to this macro > this is output of the fo`o' macro') > foo I can see 3 problems with this code: 1. The m4 reader breaks tokens up on quote pairs (among others) before it starts any parsing, though it strips outer quotes almost immediately: token1: define token2: ( token3: foo {quotes are stripped) token4: \n#there aren token5: t any arguments to this macro\nthis is output of the foo macro' token6: ) Note that token4 is considered complete when a matching ' character is read; token 5 has an unbalanced ' character, and the quotes inside foo are stripped because they are a matching outer pair. You have to change the quote characters to stop the reader treating your unbalanced ' as a close quote 2. Trying to partially quote fo`o' doesn't work at the outer level either, because by the time the reader has passed the token to the parser, those outer quotes have been stripped and foo is rescanned for macros (and hence expanded). Double quoting literals is the standard way to make that work in m4. 3. The comment characters only apply at the outermost level, arguments to macro invocations are rescanned and expanded just like everything else. (and positional parameters are expanded too). Here is an example of how to use all this: changequote([,]) => define([foo], [[ # there aren't any arguments to foo this is output of the foo macro]]) => # foo => # foo foo => # there aren't any arguments to foo this is output of the foo macro HTH, Gary. -- Gary V. Vaughan ())_. gary@{lilith.warpmail.net,gnu.org} Research Scientist ( '/ http://tkd.kicks-ass.net GNU Hacker / )= http://www.gnu.org/software/libtool Technical Author `(_~)_ http://sources.redhat.com/autobook --------------enig7C7D6BCC542EBEEFE8C9C3BC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFB5/rGFRMICSmD1gYRAhSiAKCmi5QirVIUURtWtT/V8KroXEXLPACguxBq LEvOyAq5qaDtOTSqXcdkHf8= =BrVi -----END PGP SIGNATURE----- --------------enig7C7D6BCC542EBEEFE8C9C3BC-- From MAILER-DAEMON Sat Jan 15 16:23:57 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CpvOm-0000BN-Up for mharc-bug-m4@gnu.org; Sat, 15 Jan 2005 16:23:57 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cpu2z-0004aP-FV for bug-m4@gnu.org; Sat, 15 Jan 2005 14:57:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cpu2p-0004Ti-IW for bug-m4@gnu.org; Sat, 15 Jan 2005 14:57:15 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cpu2m-0004QM-Cw for bug-m4@gnu.org; Sat, 15 Jan 2005 14:57:08 -0500 Received: from [209.61.216.22] (helo=f7.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cptdl-0003wJ-Ro for bug-m4@gnu.org; Sat, 15 Jan 2005 14:31:18 -0500 Received: (from karl@localhost) by f7.net (8.11.7-20030920/8.11.7) id j0FJVGE05232; Sat, 15 Jan 2005 14:31:16 -0500 Date: Sat, 15 Jan 2005 14:31:16 -0500 Message-Id: <200501151931.j0FJVGE05232@f7.net> From: karl@freefriends.org (Karl Berry) To: bug-m4@gnu.org X-Mailman-Approved-At: Sat, 15 Jan 2005 16:23:55 -0500 Subject: m4 manual woes X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jan 2005 19:57:26 -0000 In m4 1.4.2, the m4.texinfo file uses @ifinfo around the Top node instead of @ifnottex. As a result, proper HTML cannot be generated. Also, since Texinfo has acquired accent commands, they might as well be used for Francois Pinard's name. The diff below handles those two things. I did this in order to update the m4 manual in webcvs, which a user reported problems with a while ago. Hope that's ok. Gary, I don't know html_node/index.html was not being generated properly by makeinfo/gendocs.sh for you -- makeinfo has code to handle that case, and anyway the name of the node is Index not index, so there should be no collision. Were you running on Windows? Anyway, let me know if problems. Other fixes needed, not in the diff: - use @copying and the GFDL instead of the old permission text. http://www.gnu.org/software/texinfo/manual/texinfo/html_node/Document-Permissions.html - the START-INFO-DIR-ENTRY stuff should be changed to use @direntry, as in: @dircategory Text creation and manipulation @direntry * m4: (m4). General-purpose text macro processor. @end direntry Happy hacking, karl --- /usr/local/gnu/src/m4-1.4.2/doc/orig 2005-01-15 11:12:49.000000000 -0800 +++ /usr/local/gnu/src/m4-1.4.2/doc/m4.texinfo 2005-01-15 11:09:30.000000000 -0800 @@ -8,10 +8,5 @@ @include version.texi -@ifinfo -@set Francois Franc,ois -@end ifinfo -@tex -@set Francois Fran\noexpand\ptexc cois -@end tex +@set Francois Fran@,cois @ifinfo @@ -76,5 +71,5 @@ @end titlepage -@ifinfo +@ifnottex @node Top, Preliminaries, (dir), (dir) @top GNU @code{m4} @@ -240,5 +235,5 @@ @end menu -@end ifinfo +@end ifnottex @node Preliminaries, Syntax, Top, Top Diff finished at Sat Jan 15 11:13:03 From MAILER-DAEMON Sun Jan 16 08:52:07 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CqAp4-0006OG-Kv for mharc-bug-m4@gnu.org; Sun, 16 Jan 2005 08:52:07 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CqAMQ-0005sc-7W for bug-m4@gnu.org; Sun, 16 Jan 2005 08:22:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CqAMI-0005pu-H9 for bug-m4@gnu.org; Sun, 16 Jan 2005 08:22:22 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CqAMI-0005gr-8t for bug-m4@gnu.org; Sun, 16 Jan 2005 08:22:22 -0500 Received: from [194.109.24.21] (helo=smtp-vbr1.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cq9sN-00060x-QE for bug-m4@gnu.org; Sun, 16 Jan 2005 07:51:28 -0500 Received: from JONGW01 (weltevree.xs4all.nl [213.84.22.45]) by smtp-vbr1.xs4all.nl (8.12.11/8.12.11) with SMTP id j0GCpPi6017877 for ; Sun, 16 Jan 2005 13:51:25 +0100 (CET) (envelope-from midrange-l@weltevree.com) Message-ID: <000601c4fbcb$2472c250$0200000a@remain.nl> From: "Wim" To: Date: Sun, 16 Jan 2005 13:58:57 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0003_01C4FBD3.85F3DFC0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by XS4ALL Virus Scanner X-Mailman-Approved-At: Sun, 16 Jan 2005 08:52:04 -0500 Subject: upload X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jan 2005 13:24:57 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0003_01C4FBD3.85F3DFC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable http://ftp.gnu.org/gnu/m4/ gives me strange files. tar.tar instead of = tar.gz. ------=_NextPart_000_0003_01C4FBD3.85F3DFC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
http://ftp.gnu.org/gnu/m4/ g= ives me=20 strange files. tar.tar instead of tar.gz.
------=_NextPart_000_0003_01C4FBD3.85F3DFC0-- From MAILER-DAEMON Mon Jan 17 04:58:19 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CqTdZ-00043a-7y for mharc-bug-m4@gnu.org; Mon, 17 Jan 2005 04:57:29 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CqTdO-0003vk-Ft for bug-m4@gnu.org; Mon, 17 Jan 2005 04:57:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CqTdA-0003q6-3c for bug-m4@gnu.org; Mon, 17 Jan 2005 04:57:10 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CqTd9-0003fC-03 for bug-m4@gnu.org; Mon, 17 Jan 2005 04:57:03 -0500 Received: from [147.231.88.1] (helo=matsrv.math.cas.cz) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CqTAr-0005rp-LB for bug-m4@gnu.org; Mon, 17 Jan 2005 04:27:50 -0500 Received: from matsrv.math.cas.cz (matsrv.math.cas.cz [127.0.0.1]) by matsrv.math.cas.cz (8.12.11/8.12.11) with ESMTP id j0H9RlIh031384; Mon, 17 Jan 2005 10:27:47 +0100 Received: (from kasal@localhost) by matsrv.math.cas.cz (8.12.11/8.12.11/Submit) id j0H9RllQ031383; Mon, 17 Jan 2005 10:27:47 +0100 Date: Mon, 17 Jan 2005 10:27:47 +0100 From: Stepan Kasal To: Wim Message-ID: <20050117092747.GA31100@matsrv.math.cas.cz> References: <000601c4fbcb$2472c250$0200000a@remain.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000601c4fbcb$2472c250$0200000a@remain.nl> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 23:41:34 2004 clamav-milter version 0.80j on localhost X-Virus-Status: Clean Cc: bug-m4@gnu.org Subject: Re: upload X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2005 09:57:27 -0000 Hi, On Sun, Jan 16, 2005 at 01:58:57PM +0100, Wim wrote: > http://ftp.gnu.org/gnu/m4/ gives me strange files. tar.tar instead of tar.gz. I'm not able to reproduce your problem. Could you please give us more details? Regards, Stepan Kasal From MAILER-DAEMON Mon Jan 17 11:45:29 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Cqa0P-0006X7-42 for mharc-bug-m4@gnu.org; Mon, 17 Jan 2005 11:45:29 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CqZod-00054H-8m for bug-m4@gnu.org; Mon, 17 Jan 2005 11:33:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CqZoD-0004vQ-G3 for bug-m4@gnu.org; Mon, 17 Jan 2005 11:32:55 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CqZoD-0004up-E5 for bug-m4@gnu.org; Mon, 17 Jan 2005 11:32:53 -0500 Received: from [128.98.1.9] (helo=mailr.qinetiq-tim.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CqZaI-0005XC-Ph for bug-m4@gnu.org; Mon, 17 Jan 2005 11:18:31 -0500 Received: (qmail 19116 invoked from network); 17 Jan 2005 15:23:26 -0000 Received: from unknown (HELO mailr.qinetiq-tim.net) (128.98.1.9) by 128.98.1.9 with SMTP; 17 Jan 2005 15:23:26 -0000 Received: (qmail 22308 invoked from network); 17 Jan 2005 16:23:30 -0000 Received: from unknown (HELO ?128.98.76.60?) (128.98.76.60) by mailhost.eris.qinetiq.com with SMTP; 17 Jan 2005 16:23:30 -0000 Message-ID: <41EBE5ED.9060900@gnu.org> Date: Mon, 17 Jan 2005 16:21:01 +0000 From: "Gary V. Vaughan" Organization: FSF User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: bug-m4@gnu.org X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2AAA54A5E2D111875FA1BB3F" X-AntiVirus: checked by Vexira MailArmor (version: 2.0.1.16; VAE: 6.29.0.5; VDF: 6.29.0.52; host: mailr.qinetiq-tim.net) Subject: Re: m4 comment bug X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2005 16:45:27 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2AAA54A5E2D111875FA1BB3F Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit David Caplan wrote: > Hi Gary, Hi David! > Thanks for the quick response! No probs. > According to the documentation "All characters between the comment > delimeters are ignored", but you are saying that m4 tokenizes on quotes > as the very first pass. Yeah, kindof. A quoted comment (ala your define argument) is slightly different to an unquoted comment. When M4 see's an open quote, then it reads to the matching close quote, strips the outer quotes and then goes on to process the quoted content. > This seems contrary to the documentation as > well as how every other programming language is parsed. I think the > reasonable expectation when one inserts a comment is that the comment > text will not be parsed or processed in any way. But similarly, M4 is supposed to read text between quotes without looking at the content and behaving differently depending on what it sees. > Is the difference because m4 is not really a traditional programming > language, but a pre-processing language? I still think it is > unreasonable (i.e., a bug) to allow processing to be done within a > comment by default. I think I see where we differ here, and it is unfortunate that quoting in M4 is so difficult to get right. Rest assured that when you have mastered the subtleties of quoting and rescanning, then M4s behaviour becomes much more predictable. I think you meant to write this: define(`foo', # there aren't any arguments to foo ``this is output of the foo macro'') Notice that the comment is not quoted now, so references to macros (foo) and unbalanced quotes (') are left untouched as the reader tokenises the text between # and \n as a single comment token. > I think the reasonable solution is to use the > changequote, or changecom, when one _desires_ parsing of something > normally thought of as a comment (see example in documentation for > changecom). The opposite is true of M4, so unfortunately, I think you will be surprised by the expansion of foo given the definition above: foo => # there aren't any arguments to foo this is output of the foo macro But this is correct according to POSIX SUSv3 (http://www.opengroup.org/onlinepubs/009695399/utilities/m4.html): Comments are written but not scanned for matching macro names; by default, the begin-comment string consists of the number sign character and the end-comment string consists of a . If you want to write text in the arguments to macros, but have it removed, then you must remove it yourself since comments in m4 are also a little different to what you might expect to see in an imperative language. Fortunately, because arguments are rescanned for expansions, it is easy to do this (it is referenced in the GNU M4 docs IIRC): define(`foo', ifelse( # there aren't any arguments to foo )``this is output of the foo macro'') => foo => this is output of the foo macro So, I've used ifelse to discard the text during scanning, but carefully retained the # comment start character to prevent the unmatched ' or the reference to foo from being expanded during rescanning (of the argument to ifelse). The original "output" string is still double quoted to prevent expansion of foo. Note that if I had started the quotes before ifelse, then the ' in aren't would have been matched as the end of a quoted string, because the # would have been quoted. So this is WRONG: define(`foo', `ifelse( # there aren't any arguments to foo )`this is output of the foo macro'') Note also that double quoting the entire argument would prevent the ifelse from being expanded (and discarding its argument) during rescanning. So this is WRONG too: define(`foo', ``ifelse( # there aren't any arguments to foo )this is output of the foo macro'') It is good style to single quote all arguments to macros, except where macros should be expanded (or comments noticed!) during tokenising, in which case the quotes must be left off; or when an argument must be left untouched, when double quoting must be used. So stylisticly, this is better (although a little harder to understand): define(`foo', `ifelse(' # there aren't any arguments to foo `)`this is output of the foo macro'') => foo =>this is output of the foo macro If you are still getting to grips with M4, then there are more surprises ahead when positional parameters ($1 etc.) come in to play, but feel free to ask on the list if they are not behaving as you expect. Also you need to be careful about quoting commas correctly otherwise you might find the reader starts the next argument prematurely. And remember that when the text of arguments to macros are rescanned for expansions, an unexpected comma could be inserted... > In your example you changed the quote characters to brackets. I think > that it becomes overwhelming to have to constantly change the quote > characters or comment characters because of punctuation one wants to use > in a comment. Indeed. And, especially because the choice is so critical to the behaviour of the tokeniser and parser, it is important to choose comment and quote characters that will not interfere with the body of the files that are being processed. In practice, the standard `' quotes occur alone in english text so often that it is unusual NOT to change them. The normal practice is to change them once right at the start of the file, choosing the replacements wisely to avoid having to change them again later in the file just to avoid the kinds of problems you are encountering. Autoconf uses [] because those characters almost never occur unpaired, so they can be double quoted to pass them through to the output. changequote([,]) define([foo], [[open: [, close: ]]]) => foo => open: [, close: ] > I'm working with SELinux policy, which uses m4 macros as a convention > for generating parts of the security policy. I've found that people > occasionally put quotes in their comments and this hoses up the > policies. Perhaps this "convention" was an inappropriate use of m4? Unfortunately so. But it is a very common misunderstanding. > At any rate, as the official voice of m4, you are saying that this is > not a bug and is the appropriate, reasonable, and expected behavior for > m4, correct? Absolutely. I'm only the official voice of GNU M4 though, the POSIX committee holds the reins of the standard. > [I don't intend for this to come across as overly argumentative. I just > want to make my case to you/whoever is in charge of m4.] Not at all. Hopefully, my long explanation will save others from tripping over the same gotchas. Cheers, Gary. -- Gary V. Vaughan ())_. gary@{lilith.warpmail.net,gnu.org} Research Scientist ( '/ http://tkd.kicks-ass.net GNU Hacker / )= http://www.gnu.org/software/libtool Technical Author `(_~)_ http://sources.redhat.com/autobook --------------enig2AAA54A5E2D111875FA1BB3F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFB6+X3FRMICSmD1gYRAimNAJ9gNRGxsUP/s7wFZ9un9s6SWjjtHwCfULX3 o/Vl2HxX99zJnrC5R0fgoeE= =ZG9C -----END PGP SIGNATURE----- --------------enig2AAA54A5E2D111875FA1BB3F-- From MAILER-DAEMON Tue Jan 18 09:25:57 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CquIv-0003Qc-Jq for mharc-bug-m4@gnu.org; Tue, 18 Jan 2005 09:25:57 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cqu7z-0000Hn-CR for bug-m4@gnu.org; Tue, 18 Jan 2005 09:14:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cqu7q-0000Cr-Vk for bug-m4@gnu.org; Tue, 18 Jan 2005 09:14:31 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cqu7q-000085-If for bug-m4@gnu.org; Tue, 18 Jan 2005 09:14:30 -0500 Received: from [217.57.223.53] (helo=wdecav.autovie.it) by monty-python.gnu.org with smtp (Exim 4.34) id 1CqtoR-0003ac-G6 for bug-m4@gnu.org; Tue, 18 Jan 2005 08:54:28 -0500 Received: from 217.57.223.52 by wdecav.autovie.it (InterScan E-Mail VirusWall NT); Tue, 18 Jan 2005 14:55:26 +0100 Received: from DN-POSTA-MTA by mail.autovie.it with Novell_GroupWise; Tue, 18 Jan 2005 14:55:42 +0100 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.1 Date: Tue, 18 Jan 2005 14:55:16 +0100 From: "Roberto Barraco" To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mailman-Approved-At: Tue, 18 Jan 2005 09:25:56 -0500 Subject: M4 compilation error X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2005 14:14:49 -0000 Hi, I have downloaded today the m4-1.4.1.tar.gz file . I have an IBM P615 with AIX 5.2.0. I have logged as "root" I have created a temporary directory and gunzipped and untar the m4-1.4.1.tar.gz file. I have issued ./configure and then the "make" command ad I receive the following error : > make CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status config.status: creating config.h config.status: config.h is unchanged config.status: executing default commands for subdir in doc lib src checks examples; do echo making all in $subdir; (cd $subdir && make CC='cc' CFLAGS='-g' LDFLAGS= '' LIBS='' prefix='/usr/local' exec_prefix='/usr/local' bindir='/usr/local/bin' infodir='/usr/local/info' all) || exit 1; done making all in doc cd . && makeinfo m4.texinfo Target "all" is up to date. making all in lib Target "all" is up to date. making all in src cc -c -DHAVE_CONFIG_H -I.. -I. -I./../lib -g debug.c "debug.c", line 228.15: 1506-275 (S) Unexpected text '...' encountered. "debug.c", line 246.3: 1506-045 (S) Undeclared identifier va_alist. make: The error code from the last command is 1. Stop. make: The error code from the last command is 1. Stop. > Can you give me any suggestion ? Many Thanks Roberto Barraco Resp. Gestione Sistemi S.p.A. Autovie Venete Centro Servizi Palmanova 33050 Bagnaria Arsa (UD) 0432-925438 fax 0432-925512 From MAILER-DAEMON Sun Jan 23 11:46:46 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Csksw-0006yn-CS for mharc-bug-m4@gnu.org; Sun, 23 Jan 2005 11:46:46 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CsjDw-0006DP-VK for bug-m4@gnu.org; Sun, 23 Jan 2005 10:00:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CsjDi-00069C-16 for bug-m4@gnu.org; Sun, 23 Jan 2005 10:00:06 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CsjDh-00064K-TE for bug-m4@gnu.org; Sun, 23 Jan 2005 10:00:05 -0500 Received: from [64.233.170.193] (helo=rproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Csiar-0001iD-Ki for bug-m4@gnu.org; Sun, 23 Jan 2005 09:19:57 -0500 Received: by rproxy.gmail.com with SMTP id r35so285980rna for ; Sun, 23 Jan 2005 06:19:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=FHPdLm2p7v1VjSc97+DLGrlnLepq6DwoOilFcNMkpG5xKFegJ7PUll505w/tMBS/VfXaJ/5gZW4ldTNkJak1hUIZ7YOkOtNTRe6FCqCwtUZ20vEiW+1Wy1OuDnUSGvxZ5G5sfkvHtUHjsdnJoBKeU3/IcBxq1VK6i8obc9ufewc= Received: by 10.38.81.27 with SMTP id e27mr116608rnb; Sun, 23 Jan 2005 06:19:56 -0800 (PST) Received: by 10.38.125.43 with HTTP; Sun, 23 Jan 2005 06:19:56 -0800 (PST) Message-ID: <1515b99705012306197642ed21@mail.gmail.com> Date: Sun, 23 Jan 2005 16:19:56 +0200 From: Nir Idisis To: bug-m4@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 23 Jan 2005 11:46:44 -0500 Subject: Problems with M4 X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nir Idisis List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 15:00:23 -0000 hi, I was wondering maybe you can help me solve my problem: recently, I setup OpenBSD on one of my old P1 machines. on that machine I tried to install PHP which requires bison and I got the following messages while trying to configure bison: checking for m4... /usr/bin/m4 checking whether m4 supports frozen files... no configure: error: GNU M4 1.4 is required before I tried to install bison I installed the latest M4 (the installetion was completed successfully), so that I know I do have M4 installed on my machine. then i tried to install autoconf-2.59 (I read on a forum that running the configure.ac configuration file might help) and got the same message. the path to M4 is present at the $PATH var - someone also adviced me to check this out.... I appreciate your time, Thanks and have a nice day... Nir Idisis. From MAILER-DAEMON Sun Jan 23 11:46:46 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Csksw-0006yu-Ft for mharc-bug-m4@gnu.org; Sun, 23 Jan 2005 11:46:46 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CsjDy-0006DX-4e for bug-m4@gnu.org; Sun, 23 Jan 2005 10:00:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CsjDi-00068x-15 for bug-m4@gnu.org; Sun, 23 Jan 2005 10:00:06 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CsjDh-00064K-6z for bug-m4@gnu.org; Sun, 23 Jan 2005 10:00:05 -0500 Received: from [64.233.170.198] (helo=rproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CsicX-0001qL-R8 for bug-m4@gnu.org; Sun, 23 Jan 2005 09:21:42 -0500 Received: by rproxy.gmail.com with SMTP id r35so286132rna for ; Sun, 23 Jan 2005 06:21:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=WEFVXLH5LGpqTc29mZXtgRt00Eh1i6bgeTLoDWqqjkzmSlqE2CnftsrR2cpaoj48BmRzXPD+NkF3oIqCnKs4ULKfYaOlQqpm0vKgkKItLhQ7w6rthOe59Q7mO9WdI1/pawHA0I2RnTvziffJrFF4vdBAmLxfScjK6FbHZ6TQWLI= Received: by 10.38.90.73 with SMTP id n73mr166360rnb; Sun, 23 Jan 2005 06:21:39 -0800 (PST) Received: by 10.38.125.43 with HTTP; Sun, 23 Jan 2005 06:21:38 -0800 (PST) Message-ID: <1515b99705012306211b2957ec@mail.gmail.com> Date: Sun, 23 Jan 2005 16:21:38 +0200 From: Nir Idisis To: bug-m4@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 23 Jan 2005 11:46:44 -0500 Subject: Problem with M4 X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nir Idisis List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 15:01:59 -0000 hi, I was wondering maybe you can help me solve my problem: recently, I setup OpenBSD on one of my old P1 machines. on that machine I tried to install PHP which requires bison and I got the following messages while trying to configure bison: checking for m4... /usr/bin/m4 checking whether m4 supports frozen files... no configure: error: GNU M4 1.4 is required before I tried to install bison I installed the latest M4 (the installetion was completed successfully), so that I know I do have M4 installed on my machine. then i tried to install autoconf-2.59 (I read on a forum that running the configure.ac configuration file might help) and got the same message. the path to M4 is present at the $PATH var - someone also adviced me to check this out.... I appreciate your time, Thanks and have a nice day... Nir Idisis. From MAILER-DAEMON Mon Jan 24 06:46:31 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ct2fu-0003Zj-NH for mharc-bug-m4@gnu.org; Mon, 24 Jan 2005 06:46:30 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ct2WO-0001jP-JO for bug-m4@gnu.org; Mon, 24 Jan 2005 06:36:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ct2WF-0001fz-VO for bug-m4@gnu.org; Mon, 24 Jan 2005 06:36:36 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ct2WE-0001VX-PI for bug-m4@gnu.org; Mon, 24 Jan 2005 06:36:30 -0500 Received: from [147.231.88.1] (helo=matsrv.math.cas.cz) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Ct1vr-0004wK-Sv for bug-m4@gnu.org; Mon, 24 Jan 2005 05:58:56 -0500 Received: from matsrv.math.cas.cz (matsrv.math.cas.cz [127.0.0.1]) by matsrv.math.cas.cz (8.12.11/8.12.11) with ESMTP id j0OAwqsZ021009; Mon, 24 Jan 2005 11:58:52 +0100 Received: (from kasal@localhost) by matsrv.math.cas.cz (8.12.11/8.12.11/Submit) id j0OAwqM1021008; Mon, 24 Jan 2005 11:58:52 +0100 Date: Mon, 24 Jan 2005 11:58:52 +0100 From: Stepan Kasal To: Nir Idisis Message-ID: <20050124105852.GA20607@matsrv.math.cas.cz> References: <1515b99705012306197642ed21@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1515b99705012306197642ed21@mail.gmail.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 23:41:34 2004 clamav-milter version 0.80j on localhost X-Virus-Status: Clean Cc: bug-m4@gnu.org Subject: Re: Problems with M4 X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 11:46:28 -0000 Hi, On Sun, Jan 23, 2005 at 04:19:56PM +0200, Nir Idisis wrote: > checking for m4... /usr/bin/m4 > checking whether m4 supports frozen files... no > configure: error: GNU M4 1.4 is required > > before I tried to install bison I installed the latest M4 (the > installetion was completed successfully), so that I know I do have M4 > installed on my machine. the error message says you have an m4, but not the GNU version of it, which is required for bison and autoconf. Perhaps you have a BSD version of m4. Please get and install GNU m4. The tarball is at http://ftp.gnu.org/gnu/m4/m4-1.4.2.tar.gz ftp://ftp.gnu.org/gnu/m4/m4-1.4.2.tar.gz I guess that the BSD ports system might have a support for GNU m4, try to search for it. Have a nice day, Stepan Kasal From MAILER-DAEMON Tue Jan 25 05:00:57 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CtNVH-0004oq-IB for mharc-bug-m4@gnu.org; Tue, 25 Jan 2005 05:00:56 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CtNV7-0004mK-0d for bug-m4@gnu.org; Tue, 25 Jan 2005 05:00:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CtNV1-0004k9-12 for bug-m4@gnu.org; Tue, 25 Jan 2005 05:00:43 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CtNV0-0004gL-00 for bug-m4@gnu.org; Tue, 25 Jan 2005 05:00:38 -0500 Received: from [147.231.88.1] (helo=matsrv.math.cas.cz) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CtNEa-0007q2-6S for bug-m4@gnu.org; Tue, 25 Jan 2005 04:43:40 -0500 Received: from matsrv.math.cas.cz (matsrv.math.cas.cz [127.0.0.1]) by matsrv.math.cas.cz (8.12.11/8.12.11) with ESMTP id j0P9hZaY015486; Tue, 25 Jan 2005 10:43:35 +0100 Received: (from kasal@localhost) by matsrv.math.cas.cz (8.12.11/8.12.11/Submit) id j0P9hZbf015485; Tue, 25 Jan 2005 10:43:35 +0100 Date: Tue, 25 Jan 2005 10:43:35 +0100 From: Stepan Kasal To: Nir Idisis Message-ID: <20050125094335.GA14495@matsrv.math.cas.cz> References: <1515b99705012306197642ed21@mail.gmail.com> <20050124105852.GA20607@matsrv.math.cas.cz> <1515b997050124095032c33d6c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1515b997050124095032c33d6c@mail.gmail.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 23:41:34 2004 clamav-milter version 0.80j on localhost X-Virus-Status: Clean Cc: bug-m4@gnu.org Subject: Re: Problems with M4 X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 10:00:47 -0000 Hello, On Mon, Jan 24, 2005 at 07:50:25PM +0200, Nir Idisis wrote: > The M4 I installed was the one I found at ftp.gnu.org... > Though, I'm running OpenBSD... so it might be it... > > > checking for m4... /usr/bin/m4 > > > checking whether m4 supports frozen files... no > > > configure: error: GNU M4 1.4 is required another guess: perhaps /usr/bin/m4 is your BSD m4, and the newly installed GNU m4 is somewhere else. Where is the GNU m4 installed? What does /usr/bin/m4 --version say? If it is installed in /usr/local/bin, and it is not in your path before /usr/bin, then the configure script finds the BSD m4 first. I think the configure script might look for gm4, gnum4, and then m4. So it could help if you created a symlink gnum4 -> m4 or gm4 -> m4 HTH, Stepan From MAILER-DAEMON Tue Jan 25 16:14:47 2005 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CtY1P-0004Sp-BR for mharc-bug-m4@gnu.org; Tue, 25 Jan 2005 16:14:47 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CtXnQ-0008MT-Rz for bug-m4@gnu.org; Tue, 25 Jan 2005 16:00:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CtXnE-0008Gg-VH for bug-m4@gnu.org; Tue, 25 Jan 2005 16:00:10 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CtXnE-0008DG-ED for bug-m4@gnu.org; Tue, 25 Jan 2005 16:00:08 -0500 Received: from [64.233.170.206] (helo=rproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CtXQ6-0002nS-IJ for bug-m4@gnu.org; Tue, 25 Jan 2005 15:36:14 -0500 Received: by rproxy.gmail.com with SMTP id r35so196910rna for ; Tue, 25 Jan 2005 12:36:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=FL0MfJ3c9kXUaCHkMwOtOqBhecqDZL6dEdhRmrCkE1zhHMe2UmYP3uGMFZsGUEGeNszJ8y0d5OblKlfBQ2L0FS5sonvGJ6VN2atan5RwAv1d8ucI32Jv3PHTuO2XO36OrdQFq1uXhHrDAujcx7s/J8HAnc6KpwTTw3hmVnWEAQI= Received: by 10.38.67.12 with SMTP id p12mr325195rna; Tue, 25 Jan 2005 12:36:11 -0800 (PST) Received: by 10.38.125.43 with HTTP; Tue, 25 Jan 2005 12:36:11 -0800 (PST) Message-ID: <1515b997050125123636c7ab8a@mail.gmail.com> Date: Tue, 25 Jan 2005 22:36:11 +0200 From: Nir Idisis To: Stepan Kasal In-Reply-To: <20050125094709.GB14495@matsrv.math.cas.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <1515b99705012306197642ed21@mail.gmail.com> <20050124105852.GA20607@matsrv.math.cas.cz> <1515b997050124095032c33d6c@mail.gmail.com> <20050125094709.GB14495@matsrv.math.cas.cz> X-Mailman-Approved-At: Tue, 25 Jan 2005 16:14:45 -0500 Cc: bug-m4@gnu.org Subject: Re: Problems with M4 X-BeenThere: bug-m4@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nir Idisis List-Id: Bug reports for the GNU m4 macro processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 21:00:54 -0000 Hi Stepan, I switched OS'es and now work with FreeBSD... (instead of OpenBSD)... I used customized installation and chose to install a pre-compiled version of the GNU M4 so that there were no problems of compatibility... - now everything works just fine... Previously, on the OpenBSD machine I installed and compiled GNU-M4 myself (there was no other version of M4 installed on the system before)... I guess I should have made a few changes in the configure script before installing M4 in order to make it visiable to the system... (I could execute a M4 command and view the man pages after the installation - so that the procedure itself was successful)... again, thanks for your time and have a nice day.... Nir Idisis. On Tue, 25 Jan 2005 10:47:09 +0100, Stepan Kasal wrote: > On Mon, Jan 24, 2005 at 07:50:25PM +0200, Nir Idisis wrote: > > Hi Stepan, > > first I'd like to thank you for responding... > > Hi Nir, > > you are welcome, of course. > > Just a quick note: when replying, please keep cc to bug-m4 list. > > Another note: since this is a problem with ./configure created by > autoconf, the autoconf list at gnu.org might have people which could > help you better. > > And, of course, you should first search the autoconf archives (you'll > find them on lists.gnu.org) to check that your question wasn't discussed > before. Perheps you could also google for something like > autoconf BSD m4 frozen > > Yours, > Stepan >