• # Gros hack de la mort...

    Posté par . En réponse au message ACPI : modifier la table DSDT. Évalué à 2.


    cc -Wall -O2 -Wstrict-prototypes -D_LINUX -D_ACPI_ASL_COMPILER -I../include -c -o aslcompilerlex.o aslcompilerlex.c

    aslcompiler.l: Dans la fonction « comment »:

    aslcompiler.l:847: error: `yytext_ptr' undeclared (first use in this function)

    aslcompiler.l:847: error: (Each undeclared identifier is reported only once

    aslcompiler.l:847: error: for each function it appears in.)



    J'ai eu la même erreur que toi. Pour passer au travers, j'ai édité le
    fichier aslcompilerlex.c, en ajoutant #define yytext_ptr AslCompilertext
    au dessus de la ligne "unput(c1);" (il n'y en a qu'une dans le code).

    Ensuite j'ai dumpé ma DSDT, que j'ai ensuite désassemblée avec le
    iasl généré juste avant:


    cat /proc/acpi/dsdt > dsdt.dat
    ./iasl -d dsdt.dat


    Bon apparemment ma DSDT est bugguée (compilée avec le
    compilateur MS d'après le dmesg) et je ne peux pas la recompiler
    directement:


    ./iasl -tc dsdt.dsl

    Intel ACPI Component Architecture
    ASL Optimizing Compiler / AML Disassembler version 20050309 [May 3 2005]
    Copyright (C) 2000 - 2005 Intel Corporation
    Supports ACPI Specification Revision 3.0

    dsdt.dsl 315: Method (\_WAK, 1, NotSerialized)
    Warning 2026 - ^ Reserved method must return a value (_WAK)

    dsdt.dsl 343: Store (Local0, Local0)
    Error 1013 - ^ Method local variable is not initialized (Local0)

    dsdt.dsl 349: Store (Local0, Local0)
    Error 1013 - ^ Method local variable is not initialized (Local0)

    dsdt.dsl 4569: Store (Local0, Local0)
    Error 1013 - ^ Method local variable is not initialized (Local0)

    dsdt.dsl 4574: Store (Local0, Local0)
    Error 1013 - ^ Method local variable is not initialized (Local0)

    ASL Input: dsdt.dsl - 4856 lines, 148894 bytes, 1886 keywords
    Compilation complete. 4 Errors, 1 Warnings, 0 Remarks, 563 Optimizations


    Donc apparemment le compilo semble marcher avec ce hack.