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

Jack linux-thinkpad@linux-thinkpad.org
Tue, 28 Dec 2004 01:32:10 -0500


Not sure if I can actually respond to this, but its worth a shot.
Basically, I ran into the same problem, and follwed the person's advice, 
and it worked great.

You just need to make sure you make clean before you try make again.

Hope this helps.

Jack Nguy

--oC1+HKm2/end4ao3
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

i

Thanks, for keeping the track!

I answer below:

On Mon, Oct 18, 2004 at 01:50:50PM -0500, T. Ivarsson wrote:
 > ----- Original Message -----
 > From: Ronald Hitz <Ronald.Hitz@ivx.de>
 >=20
 > > 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.
 >=20
 > Everything is easy when you know the answer :)
 >=20
 > Problem statement:
 > *****
 > When I try to compile the iasl compiler from Intel 
(http://www.intel.com/=
technology/iapc/acpi/) on my Debian system, I get the following errors:
 >=20
 > > aslcompiler.l: In function `comment':
 > > aslcompiler.l:837: error: `yytext_ptr' undeclared (first use in 
this fu=
nction)
 > > aslcompiler.l:837: error: (Each undeclared identifier is reported 
only =
once
 > > aslcompiler.l:837: error: for each function it appears in.)
 > > make: *** [aslcompilerlex.o] Error 1
 >=20
 > How can I compile the tool without switching Linux distro?
 >=20
 > Solution
 > *****
 > You have probably moved away from Woody (good idea) and the tools 
bison a=
nd flex have been too modern for the iasl compilation. Don't worry, the old=
  Woody-versions of the packages are still available. Install the 
packages: =
bison-1.35 (version 1.35) and flex-old (version 2.5.4).
 >=20
 > In the file: compiler/Makefile, change the line:
 >      YACC =3D bison
 > to
 >      YACC =3D bison-1.35
 >=20
 > Now the iasl tool should compile without any problems.

Sorry, got the same failure:

cc -Wall -O2 -Wstrict-prototypes -D_LINUX -D_ACPI_ASL_COMPILER
-I../include    -c -o aslcompilerlex.o aslcompilerlex.c
aslcompiler.l: In Funktion =BBcomment=AB:
aslcompiler.l:837: error: `yytext_ptr' undeclared (first use in this
function)
aslcompiler.l:837: error: (Each undeclared identifier is reported only
once
aslcompiler.l:837: error: for each function it appears in.)
make: *** [aslcompilerlex.o] Fehler 1

Did You manage to compile with flex-old and bison-1.35 and the handy
bits in the Makefile ?

 >=20
 >=20
 > 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.=
asp?SRC=3Dlycos10
 >=20
 > --
 > The linux-thinkpad mailing list home page is at:
 > http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
 >=20
 >=20

--oC1+HKm2/end4ao3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBdX+mIZtySvzDl4oRAgxPAJ9xSvotzrLYbmO33NO6ZxxYkU5FwQCglvLN
B8bGvXGhiKoP51rwXxgUPYg=
=e1O4
-----END PGP SIGNATURE-----

--oC1+HKm2/end4ao3--