Fwd: Re: [ltp] can't compile iasl (the DSDT tool)

T. Ivarsson linux-thinkpad@linux-thinkpad.org
Mon, 18 Oct 2004 13:50:50 -0500


----- Original Message -----
From: Ronald Hitz <Ronald.Hitz@ivx.de>

> I had the same problem,
>=20
> took older bison and another older version tool, maybe flex,  You need to=
 compile the stuff
> than the version for debian sarge.

Everything is easy when you know the answer :)

Problem statement:
*****
When I try to compile the iasl compiler from Intel (http://www.intel.com/te=
chnology/iapc/acpi/) on my Debian system, I get the following errors:

> aslcompiler.l: In function `comment':
> aslcompiler.l:837: error: `yytext_ptr' undeclared (first use in this func=
tion)
> aslcompiler.l:837: error: (Each undeclared identifier is reported only on=
ce
> aslcompiler.l:837: error: for each function it appears in.)
> make: *** [aslcompilerlex.o] Error 1

How can I compile the tool without switching Linux distro?

Solution
*****
You have probably moved away from Woody (good idea) and the tools bison and=
 flex have been too modern for the iasl compilation. Don't worry, the old W=
oody-versions of the packages are still available. Install the packages: bi=
son-1.35 (version 1.35) and flex-old (version 2.5.4).

In the file: compiler/Makefile, change the line:
     YACC =3D bison
to
     YACC =3D bison-1.35

Now the iasl tool should compile without any problems.


Hepp,
T.
--=20
_______________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.as=
p?SRC=3Dlycos10