I can't get iasl to compile

Mark Eaton
2005-02-15T23:35:11Z

I have been trying to get suspend/resume to work on my laptop but it hangs as
soon as resume, so I was going to look at the dsdt (being an acer it is
probably broken) but I cant get iasl to compile.

I have downloaded the latest iasl from intel's (acpica-unix-20041203) site but
get the following errors when trying to compile it.

bison -v -d -y -pAslCompiler aslcompiler.y
conflicts: 57 shift/reduce, 50 reduce/reduce
aslcompiler.y:913.7-81: warning: rule never reduced because of conflicts:
TermArg: Type2IntegerOpcode
aslcompiler.y:914.7-81: warning: rule never reduced because of conflicts:
TermArg: Type2StringOpcode
aslcompiler.y:915.7-81: warning: rule never reduced because of conflicts:
TermArg: Type2BufferOpcode
aslcompiler.y:916.7-81: warning: rule never reduced because of conflicts:
TermArg: Type2BufferOrStringOpcode
aslcompiler.y:958.7-82: warning: rule never reduced because of conflicts:
OptionalParameterTypePackage: ','
aslcompiler.y:981.7-82: warning: rule never reduced because of conflicts:
OptionalParameterTypesPackage: ','
aslcompiler.y:1572.7-38: warning: rule never reduced because of conflicts:
CaseTermList: CaseTerm
aslcompiler.y:1581.7-38: warning: rule never reduced because of conflicts:
DefaultTermList: CaseTerm
aslcompiler.y:3062.37-48: warning: rule never reduced because of conflicts:
OptionalResourceType: /* empty */
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:846: error: `yytext_ptr' undeclared (first use in this function)
aslcompiler.l:846: error: (Each undeclared identifier is reported only once
aslcompiler.l:846: error: for each function it appears in.)
make: *** [aslcompilerlex.o] Error 1

This is on a debian sid linux system
gcc 3.3.5
bison 1.875d
flex 2.5.31

--
Mark Eaton
meaton-tw97OP0PknkAvxtiuMwx3w@public.gmane.org