From unknown Thu Aug 14 17:29:26 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#14495 <14495@debbugs.gnu.org> To: bug#14495 <14495@debbugs.gnu.org> Subject: Status: unistd.h problem in t/lex-header.sh Reply-To: bug#14495 <14495@debbugs.gnu.org> Date: Fri, 15 Aug 2025 00:29:26 +0000 retitle 14495 unistd.h problem in t/lex-header.sh reassign 14495 automake submitter 14495 Peter Rosin severity 14495 minor tag 14495 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue May 28 20:10:07 2013 Received: (at submit) by debbugs.gnu.org; 29 May 2013 00:10:07 +0000 Received: from localhost ([127.0.0.1]:38305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhTxt-0004Gi-TQ for submit@debbugs.gnu.org; Tue, 28 May 2013 20:10:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43915) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhTxr-0004G9-7x for submit@debbugs.gnu.org; Tue, 28 May 2013 20:10:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhTwO-0000UD-LQ for submit@debbugs.gnu.org; Tue, 28 May 2013 20:08:37 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.1 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhTwO-0000U9-Hy for submit@debbugs.gnu.org; Tue, 28 May 2013 20:08:32 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhTwJ-0002nS-SC for bug-automake@gnu.org; Tue, 28 May 2013 20:08:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhTwF-0000TO-88 for bug-automake@gnu.org; Tue, 28 May 2013 20:08:27 -0400 Received: from mail.lysator.liu.se ([2001:6b0:17:f0a0::3]:52574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhTwF-0000T6-1G for bug-automake@gnu.org; Tue, 28 May 2013 20:08:23 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id E191340003 for ; Wed, 29 May 2013 02:08:20 +0200 (CEST) Received: from [192.168.0.64] (90-227-119-137-no95.business.telia.com [90.227.119.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id C006B40002 for ; Wed, 29 May 2013 02:08:20 +0200 (CEST) Message-ID: <51A546F4.1080505@lysator.liu.se> Date: Wed, 29 May 2013 02:08:20 +0200 From: Peter Rosin User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: bug-automake@gnu.org Subject: unistd.h problem in t/lex-header.sh Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) Hi! When t/lex-header.sh tries to compile main.c on the master branch, it fails like this snippet below, since MSVC does not have unistd.h. I suppose main.c should add #define YY_NO_UNISTD_H 1 before it includes mylex.h? Or is this something else? I know very little about lexers... Cheers, Peter log snippet follows: source='main.c' object='main.obj' libtool=no \ DEPDIR=.deps depmode=msvc7msys /bin/sh ./depcomp \ /home/peda/automake/lib/compile cl -nologo -DPACKAGE_NAME=\"lex-header\" -DPACKAGE_TARNAME=\"lex-header\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"lex-header\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lex-header\" -DVERSION=\"1.0\" -I. -c -o main.obj $(echo main.c) main.c mylex.h(228) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory make[1]: *** [main.obj] Error 2 From debbugs-submit-bounces@debbugs.gnu.org Wed May 29 04:40:54 2013 Received: (at 14495) by debbugs.gnu.org; 29 May 2013 08:40:54 +0000 Received: from localhost ([127.0.0.1]:38867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhbwE-0005gH-5u for submit@debbugs.gnu.org; Wed, 29 May 2013 04:40:54 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]:58732) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhbwB-0005g5-6Y for 14495@debbugs.gnu.org; Wed, 29 May 2013 04:40:52 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id ED41C40003 for <14495@debbugs.gnu.org>; Wed, 29 May 2013 10:39:27 +0200 (CEST) Received: from [192.168.0.64] (90-227-119-137-no95.business.telia.com [90.227.119.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id CC74E40002 for <14495@debbugs.gnu.org>; Wed, 29 May 2013 10:39:27 +0200 (CEST) Message-ID: <51A5BEBF.8030300@lysator.liu.se> Date: Wed, 29 May 2013 10:39:27 +0200 From: Peter Rosin User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: 14495@debbugs.gnu.org Subject: Re: bug#14495: unistd.h problem in t/lex-header.sh References: <51A546F4.1080505@lysator.liu.se> In-Reply-To: <51A546F4.1080505@lysator.liu.se> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 14495 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) On 2013-05-29 02:08, Peter Rosin wrote: > Hi! > > When t/lex-header.sh tries to compile main.c on the master branch, it fails > like this snippet below, since MSVC does not have unistd.h. I suppose main.c > should add > > #define YY_NO_UNISTD_H 1 > > before it includes mylex.h? Or is this something else? I know very little > about lexers... The problem is the same on the micro branch (87e49f4f040c8ab). Cheers, Peter From debbugs-submit-bounces@debbugs.gnu.org Wed May 29 05:08:28 2013 Received: (at 14495) by debbugs.gnu.org; 29 May 2013 09:08:29 +0000 Received: from localhost ([127.0.0.1]:38913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhcMu-0006a0-NJ for submit@debbugs.gnu.org; Wed, 29 May 2013 05:08:28 -0400 Received: from mail-bk0-f52.google.com ([209.85.214.52]:40659) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhcMs-0006ZY-Tt for 14495@debbugs.gnu.org; Wed, 29 May 2013 05:08:27 -0400 Received: by mail-bk0-f52.google.com with SMTP id mz10so4700594bkb.39 for <14495@debbugs.gnu.org>; Wed, 29 May 2013 02:06:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=JYRIicXYq9dOcg86p/fT1wGXaahBHz1tqzvQWBsDAiU=; b=n5GHb09wmVkalqXF5tPLfsq8iv+haA4TYQGYgUFmXrlq2Bpsxr4RbFBulTKs9pF9hX ZXN+8sW6nbAxa23RoN06a5Q51oTzybbr/3yuBgEnVIV6k4pdj7FgMF3k1+txP8Qfdi1p f1o1psYkrN+xWymqaxOA8rS/zJfrjSBAZ/GjrYYe1J9MyVEZDcARRN5J+SY+mN0Ez6HK 5hAU+2d4lRjg4HtXCi2pIuO7gRUCNkB0AnJ8eFYz9Sci7qA1IYZaxWMARhFcmlsAo/UA Xxkom1ue0MZgVyszG/kD1kgSK09Pn5GfNz4X1N4doXiky/CbyieNWCe1wEpWrvk7QDKP tkGQ== X-Received: by 10.205.118.203 with SMTP id fr11mr541257bkc.103.1369818418376; Wed, 29 May 2013 02:06:58 -0700 (PDT) Received: from [192.168.178.20] (host93-95-dynamic.6-79-r.retail.telecomitalia.it. [79.6.95.93]) by mx.google.com with ESMTPSA id v6sm11459831bko.3.2013.05.29.02.06.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 May 2013 02:06:57 -0700 (PDT) Message-ID: <51A5C52F.5000702@gmail.com> Date: Wed, 29 May 2013 11:06:55 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: Peter Rosin Subject: Re: bug#14495: unistd.h problem in t/lex-header.sh References: <51A546F4.1080505@lysator.liu.se> <51A5BEBF.8030300@lysator.liu.se> In-Reply-To: <51A5BEBF.8030300@lysator.liu.se> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 14495 Cc: 14495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 05/29/2013 10:39 AM, Peter Rosin wrote: > On 2013-05-29 02:08, Peter Rosin wrote: >> Hi! >> >> When t/lex-header.sh tries to compile main.c on the master branch, it fails >> like this snippet below, since MSVC does not have unistd.h. I suppose main.c >> should add >> >> #define YY_NO_UNISTD_H 1 >> >> before it includes mylex.h? Or is this something else? I know very little >> about lexers... > > The problem is the same on the micro branch (87e49f4f040c8ab). > We had already solved a similar issue one, in the very Automake test suite. Let me see if I can find the reference ... Oh wait, no need to, we have registered the learned lesson in t/README already: * When writing input for lex, include the following in the definitions section: %{ #define YY_NO_UNISTD_H 1 %} to accommodate non-ANSI systems, since GNU flex generates code that includes unistd.h otherwise. And peeking in the Git history, I see you already fixed a similar problem about an year ago, in commit v1.11-2058-g6f4b08d. Can you try a fix on those lines? Thanks, Stefano From debbugs-submit-bounces@debbugs.gnu.org Wed May 29 05:45:07 2013 Received: (at 14495) by debbugs.gnu.org; 29 May 2013 09:45:07 +0000 Received: from localhost ([127.0.0.1]:39020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhcwM-0007ov-MJ for submit@debbugs.gnu.org; Wed, 29 May 2013 05:45:06 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]:40890) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhcwJ-0007ok-Px for 14495@debbugs.gnu.org; Wed, 29 May 2013 05:45:04 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id BFC2D40003; Wed, 29 May 2013 11:43:39 +0200 (CEST) Received: from [192.168.0.64] (90-227-119-137-no95.business.telia.com [90.227.119.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 49CD040002; Wed, 29 May 2013 11:43:39 +0200 (CEST) Message-ID: <51A5CDCA.7090705@lysator.liu.se> Date: Wed, 29 May 2013 11:43:38 +0200 From: Peter Rosin User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Stefano Lattarini Subject: Re: bug#14495: unistd.h problem in t/lex-header.sh References: <51A546F4.1080505@lysator.liu.se> <51A5BEBF.8030300@lysator.liu.se> <51A5C52F.5000702@gmail.com> In-Reply-To: <51A5C52F.5000702@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 14495 Cc: 14495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) On 2013-05-29 11:06, Stefano Lattarini wrote: > On 05/29/2013 10:39 AM, Peter Rosin wrote: >> On 2013-05-29 02:08, Peter Rosin wrote: >>> Hi! >>> >>> When t/lex-header.sh tries to compile main.c on the master branch, it fails >>> like this snippet below, since MSVC does not have unistd.h. I suppose main.c >>> should add >>> >>> #define YY_NO_UNISTD_H 1 >>> >>> before it includes mylex.h? Or is this something else? I know very little >>> about lexers... >> >> The problem is the same on the micro branch (87e49f4f040c8ab). >> > We had already solved a similar issue one, in the very Automake test suite. > Let me see if I can find the reference ... Oh wait, no need to, we have > registered the learned lesson in t/README already: > > * When writing input for lex, include the following in the definitions > section: > > %{ > #define YY_NO_UNISTD_H 1 > %} > > to accommodate non-ANSI systems, since GNU flex generates code that > includes unistd.h otherwise. > > And peeking in the Git history, I see you already fixed a similar > problem about an year ago, in commit v1.11-2058-g6f4b08d. > > Can you try a fix on those lines? That %{ ... %}-block is causes the #define to be added to the generated foo-lexer.c file, and the block is in fact already present so adding it a second time will probably not help :-) The new problem in this testcase is that the main.c file includes the generated mylex.h without defining YY_NO_UNISTD_H file. The below one-liner makes the test pass. Ok to push such a change? Cheers, Peter diff --git a/t/lex-header.sh b/t/lex-header.sh index 005ae86..0789af4 100644 --- a/t/lex-header.sh +++ b/t/lex-header.sh @@ -55,6 +55,7 @@ cat > lexer.l << 'END' END cat > main.c <<'END' +#define YY_NO_UNISTD_H 1 #include "mylex.h" int main (void) { From debbugs-submit-bounces@debbugs.gnu.org Wed May 29 05:53:23 2013 Received: (at 14495) by debbugs.gnu.org; 29 May 2013 09:53:23 +0000 Received: from localhost ([127.0.0.1]:39043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uhd4M-00087y-5O for submit@debbugs.gnu.org; Wed, 29 May 2013 05:53:22 -0400 Received: from mail-bk0-f50.google.com ([209.85.214.50]:59524) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uhd4K-00087e-DS for 14495@debbugs.gnu.org; Wed, 29 May 2013 05:53:21 -0400 Received: by mail-bk0-f50.google.com with SMTP id ik8so3824271bkc.9 for <14495@debbugs.gnu.org>; Wed, 29 May 2013 02:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=WepIDXUQ9LTET3K6PWGpvZ3Ig1fR6/ZgpyZeJnGx0+4=; b=skgGf+i8cTl49pzyImeLsbgQq6WEQt6VEKQ7NFaS0uM2bP3ZnmE8EoiT+/tZbODm1K MoQqQckHYEeTEiEFVkQaN2yzecBHpMIiH9DCB4NZe8fqGyytyS7jvINZQfsTnPvnXx4K 16smpHY0xXXQg0vV63me4x3JjFS3Bvw28KPsYxOxv9zgSY6Qm+F8Lc4UymEp4mx4GDO/ lWYKu3hzuozOYkSeN/vKG4SyGmKonU/GtnE+n8o2VtRBh52AKS3EaxWebeNLqSJNnc38 e7LYQggGUoWRQn4P2ds8shPnwAlF/QJt3EVy4BJb/F0IxmFa3IXJUvABf3d3QA1p3b46 FO0g== X-Received: by 10.204.228.136 with SMTP id je8mr546356bkb.93.1369821111676; Wed, 29 May 2013 02:51:51 -0700 (PDT) Received: from [192.168.178.20] (host93-95-dynamic.6-79-r.retail.telecomitalia.it. [79.6.95.93]) by mx.google.com with ESMTPSA id cm9sm11558082bkb.4.2013.05.29.02.51.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 May 2013 02:51:50 -0700 (PDT) Message-ID: <51A5CFB4.7000609@gmail.com> Date: Wed, 29 May 2013 11:51:48 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: Peter Rosin Subject: Re: bug#14495: unistd.h problem in t/lex-header.sh References: <51A546F4.1080505@lysator.liu.se> <51A5BEBF.8030300@lysator.liu.se> <51A5C52F.5000702@gmail.com> <51A5CDCA.7090705@lysator.liu.se> In-Reply-To: <51A5CDCA.7090705@lysator.liu.se> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 14495 Cc: 14495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 05/29/2013 11:43 AM, Peter Rosin wrote: > On 2013-05-29 11:06, Stefano Lattarini wrote: >> On 05/29/2013 10:39 AM, Peter Rosin wrote: >>> On 2013-05-29 02:08, Peter Rosin wrote: >>>> Hi! >>>> >>>> When t/lex-header.sh tries to compile main.c on the master branch, it fails >>>> like this snippet below, since MSVC does not have unistd.h. I suppose main.c >>>> should add >>>> >>>> #define YY_NO_UNISTD_H 1 >>>> >>>> before it includes mylex.h? Or is this something else? I know very little >>>> about lexers... >>> >>> The problem is the same on the micro branch (87e49f4f040c8ab). >>> >> We had already solved a similar issue one, in the very Automake test suite. >> Let me see if I can find the reference ... Oh wait, no need to, we have >> registered the learned lesson in t/README already: >> >> * When writing input for lex, include the following in the definitions >> section: >> >> %{ >> #define YY_NO_UNISTD_H 1 >> %} >> >> to accommodate non-ANSI systems, since GNU flex generates code that >> includes unistd.h otherwise. >> >> And peeking in the Git history, I see you already fixed a similar >> problem about an year ago, in commit v1.11-2058-g6f4b08d. >> >> Can you try a fix on those lines? > > That %{ ... %}-block is causes the #define to be added to the generated > foo-lexer.c file, and the block is in fact already present so adding it > a second time will probably not help :-) > Oops, I missed that. *blush*. > The new problem in this > testcase is that the main.c file includes the generated mylex.h without > defining YY_NO_UNISTD_H file. > > The below one-liner makes the test pass. Ok to push such a change? > Sure, and sorry for the confusion. > Cheers, > Peter > > diff --git a/t/lex-header.sh b/t/lex-header.sh > index 005ae86..0789af4 100644 > --- a/t/lex-header.sh > +++ b/t/lex-header.sh > @@ -55,6 +55,7 @@ cat > lexer.l << 'END' > END > > cat > main.c <<'END' > +#define YY_NO_UNISTD_H 1 > #include "mylex.h" > int main (void) > { > Thanks, Stefano From debbugs-submit-bounces@debbugs.gnu.org Wed May 29 06:10:08 2013 Received: (at 14495) by debbugs.gnu.org; 29 May 2013 10:10:08 +0000 Received: from localhost ([127.0.0.1]:39081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhdKZ-0000AU-Hf for submit@debbugs.gnu.org; Wed, 29 May 2013 06:10:08 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]:50377) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhdKW-0000AJ-VM for 14495@debbugs.gnu.org; Wed, 29 May 2013 06:10:06 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 0AB7240003; Wed, 29 May 2013 12:08:41 +0200 (CEST) Received: from [192.168.0.64] (90-227-119-137-no95.business.telia.com [90.227.119.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id AEE1340002; Wed, 29 May 2013 12:08:40 +0200 (CEST) Message-ID: <51A5D3A8.2060207@lysator.liu.se> Date: Wed, 29 May 2013 12:08:40 +0200 From: Peter Rosin User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: "automake-patches@gnu.org" , 14495@debbugs.gnu.org Subject: Re: bug#14495: unistd.h problem in t/lex-header.sh References: <51A546F4.1080505@lysator.liu.se> <51A5BEBF.8030300@lysator.liu.se> <51A5C52F.5000702@gmail.com> <51A5CDCA.7090705@lysator.liu.se> <51A5CFB4.7000609@gmail.com> In-Reply-To: <51A5CFB4.7000609@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 14495 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) On 2013-05-29 11:51, Stefano Lattarini wrote: > On 05/29/2013 11:43 AM, Peter Rosin wrote: >> diff --git a/t/lex-header.sh b/t/lex-header.sh >> index 005ae86..0789af4 100644 >> --- a/t/lex-header.sh >> +++ b/t/lex-header.sh >> @@ -55,6 +55,7 @@ cat > lexer.l << 'END' >> END >> >> cat > main.c <<'END' >> +#define YY_NO_UNISTD_H 1 >> #include "mylex.h" >> int main (void) >> { >> Pushing this: >From a4598c57d3dded53851f1319f23d187b2c8132d3 Mon Sep 17 00:00:00 2001 From: Peter Rosin Date: Wed, 29 May 2013 12:01:07 +0200 Subject: [PATCH 1/2] tests: avoid a spurious failure on non-POSIX systems Fixes automake bug#14495. * t/lex-header.sh: Make sure unistd.h isn't included. Signed-off-by: Peter Rosin --- t/lex-header.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/t/lex-header.sh b/t/lex-header.sh index 005ae86..0789af4 100644 --- a/t/lex-header.sh +++ b/t/lex-header.sh @@ -55,6 +55,7 @@ cat > lexer.l << 'END' END cat > main.c <<'END' +#define YY_NO_UNISTD_H 1 #include "mylex.h" int main (void) { -- 1.7.9 From debbugs-submit-bounces@debbugs.gnu.org Thu May 30 17:07:30 2013 Received: (at control) by debbugs.gnu.org; 30 May 2013 21:07:30 +0000 Received: from localhost ([127.0.0.1]:43001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UiA4H-0000e9-8c for submit@debbugs.gnu.org; Thu, 30 May 2013 17:07:30 -0400 Received: from mail-ea0-f171.google.com ([209.85.215.171]:39714) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UiA4F-0000dq-1Q for control@debbugs.gnu.org; Thu, 30 May 2013 17:07:27 -0400 Received: by mail-ea0-f171.google.com with SMTP id b15so847132eae.16 for ; Thu, 30 May 2013 14:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:subject:content-type :content-transfer-encoding; bh=RGutHN14lFeSP99QBDFaamO/9CDWbpGJPiOIra0kr+4=; b=kSEe0wK68e7oevRvyg2MXjmAFU7FCjLOOUaxVoqr4yUeNYleUKfVetq7YzU3xGc30S BFwzH9f2cu9jXjJqcFX0+RnwTeQEAIuYdYdUranGR8LZ615xbRYPMO/lY9L1I/BIBOTu LIonzWRnykrBK70nT4wJ36CWSRzRRR2XMZwKcsWmmsm5BEEM6eguqwT9LZAhTqcNhIPi oXOeQsQJpbV8lLC9sHpszT+b4fDMZ8EQZnILSXHo6p+mTLeym4T+FMu6i1pfU776KbcI duhNPAaDNkkRAoAS6xMm4SAor9Km+A3WRjQtE3cb7C6z/slYUrvlyJG02bIfTiiliWjm 24Xg== X-Received: by 10.15.52.133 with SMTP id p5mr11208783eew.55.1369947950091; Thu, 30 May 2013 14:05:50 -0700 (PDT) Received: from [192.168.178.20] (host93-95-dynamic.6-79-r.retail.telecomitalia.it. [79.6.95.93]) by mx.google.com with ESMTPSA id t6sm26656662eev.14.2013.05.30.14.05.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 May 2013 14:05:48 -0700 (PDT) Message-ID: <51A7BF23.5060809@gmail.com> Date: Thu, 30 May 2013 23:05:39 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: GNU bug tracker automated control server Subject: x Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) tags 14500 + patch severity 14500 minor close 14500 tags 14499 + patch severity 14499 minor close 14499 tags 14498 + patch severity 14498 minor close 14498 tags 14495 + patch severity 14495 minor close 14495 tags 14494 + patch severity 14494 minor close 14494 tags 14501 + patch severity 14501 minor close 14501 stop From unknown Thu Aug 14 17:29:26 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, 28 Jun 2013 11:24:06 +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