Re: Error compiling iasl

Sebastian Henschel
2004-09-15T12:21:49Z

[-- Attachment #1: Type: text/plain, Size: 2199 bytes --]

hello luis..

* Luís Neves <lneves-3+EeCmRbAIqyvGiigdSjEg@public.gmane.org> [2004-09-14 09:23 +0200]:
>
> I downloaded acpica-unix-20040715.tar.gz in order to compile iasl but I
> got an error compiling:
>
> pln:/usr/src/acpica-unix-20040715/compiler# make
> yacc -v -d -y -pAslCompiler aslcompiler.y
> conflicts: 33 shift/reduce, 47 reduce/reduce
> aslcompiler.y:882.7-81: warning: rule never reduced because of
> conflicts: TermArg: Type2IntegerOpcode
> aslcompiler.y:883.7-81: warning: rule never reduced because of
> conflicts: TermArg: Type2StringOpcode
> aslcompiler.y:884.7-81: warning: rule never reduced because of
> conflicts: TermArg: Type2BufferOpcode
> aslcompiler.y:885.7-81: warning: rule never reduced because of
> conflicts: TermArg: Type2BufferOrStringOpcode
> aslcompiler.y:1473.7-38: warning: rule never reduced because of
> conflicts: CaseTermList: CaseTerm
> aslcompiler.y:1482.7-38: warning: rule never reduced because of
> conflicts: DefaultTermList: CaseTerm
> cp y.tab.c aslcompilerparse.c
> cp y.tab.h aslcompiler.y.h
> cc -Wall -O2 -Wstrict-prototypes -D_LINUX -D_ACPI_ASL_COMPILER
> -I../include -c -o aslcompilerparse.o aslcompilerparse.c
> flex -i -PAslCompiler -oaslcompilerlex.c aslcompiler.l
> 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:837: error: `yytext_ptr' undeclared (first use in this
> function)
> aslcompiler.l:837: error: (Each undeclared identifier is reported only onc
> aslcompiler.l:837: error: for each function it appears in.)
> make: *** [aslcompilerlex.o] Error 1
>
> Can anyone help me? I have a Debian Sarge (testing), gcc 3.3.4, flex
> 2.5.31, bison 1.875a. I need iasl to decompile my HP pavilion zt3240
> DSDT as I currently have no thermal_zone contents in /proc.

if i remember correctly, you need older versions of bison and/or flex to
compile iasl successfully on Debian testing.
try the packages flex-old and bison-1.35.

hth,
sebastian
--
::: .O.
::: ..O
::: OOO
::: lynx -source http://www.kodeaffe.de/shensche.pub | gpg --import

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]