public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Pregler <Peter_Pregler-zuv13RyHHZkAvxtiuMwx3w@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: building iasl gives yytext_ptr undeclared (acpiaca-unix-20050309)
Date: Sun, 20 Mar 2005 11:37:09 +0100	[thread overview]
Message-ID: <d1jjl0$b4s$1@sea.gmane.org> (raw)
In-Reply-To: <E1DC03J-0001Bj-Dg-BgpFEFc6EmUvjq1vVebcCXE/jYh+Q74khca9k7ZVKlY@public.gmane.org>

Hi,

use the flex-old package.

-Peter

Sanjoy Mahajan wrote:
> In building compiler/iasl from ACPI CA (acpica-unix-20050309.tar.gz), I
> get the yytext_ptr undeclared error:
> 
> cc -Wall -O2 -Wstrict-prototypes -D_LINUX -D_ACPI_ASL_COMPILER -I../include    -c -o aslcompilerlex.o aslcompilerlex.c
> aslcompiler.l: In function `comment':
> aslcompiler.l:847: error: `yytext_ptr' undeclared (first use in this function)
> 
> Commenting out the '#undef yytext_ptr' in the generated aslcompilerlex.c
> allowed me to compile iasl (and it worked fine).  Here's the diff:
> 
> --- aslcompilerlex.c	2005-03-16 15:14:43.000000000 -0500
> +++ aslcompilerlex.c	2005-03-17 13:43:01.000000000 -0500
> @@ -4028,7 +4028,7 @@
>  #undef yy_set_bol
>  #undef yy_new_buffer
>  #undef yy_set_interactive
> -#undef yytext_ptr
> +// #undef yytext_ptr
>  #undef YY_DO_BEFORE_ACTION
>  
>  #ifdef YY_DECL_IS_OURS
> 
> I'm using a i386 Debian testing system with:
> 
> flex 2.5.31
> bison (GNU Bison) 1.875d
> 
> -Sanjoy
> 
> `A society of sheep must in time beget a government of wolves.'
>    - Bertrand de Jouvenal
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

      parent reply	other threads:[~2005-03-20 10:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-17 18:49 building iasl gives yytext_ptr undeclared (acpiaca-unix-20050309) Sanjoy Mahajan
     [not found] ` <E1DC03J-0001Bj-Dg-BgpFEFc6EmUvjq1vVebcCXE/jYh+Q74khca9k7ZVKlY@public.gmane.org>
2005-03-20 10:37   ` Peter Pregler [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='d1jjl0$b4s$1@sea.gmane.org' \
    --to=peter_pregler-zuv13ryhhzkavxtiumwx3w@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox