* building iasl gives yytext_ptr undeclared (acpiaca-unix-20050309)
@ 2005-03-17 18:49 Sanjoy Mahajan
[not found] ` <E1DC03J-0001Bj-Dg-BgpFEFc6EmUvjq1vVebcCXE/jYh+Q74khca9k7ZVKlY@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Sanjoy Mahajan @ 2005-03-17 18:49 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
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
^ permalink raw reply [flat|nested] 2+ messages in thread[parent not found: <E1DC03J-0001Bj-Dg-BgpFEFc6EmUvjq1vVebcCXE/jYh+Q74khca9k7ZVKlY@public.gmane.org>]
* Re: building iasl gives yytext_ptr undeclared (acpiaca-unix-20050309) [not found] ` <E1DC03J-0001Bj-Dg-BgpFEFc6EmUvjq1vVebcCXE/jYh+Q74khca9k7ZVKlY@public.gmane.org> @ 2005-03-20 10:37 ` Peter Pregler 0 siblings, 0 replies; 2+ messages in thread From: Peter Pregler @ 2005-03-20 10:37 UTC (permalink / raw) To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f 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 ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-20 10:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox