Subject: Re: kern/32539: entering ddb when closing lid with ACPI
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: netbsd-bugs
Date: 01/16/2006 09:50:02
The following reply was made to PR kern/32539; it has been noted by GNATS.

From: Jukka Salmi <j+nbsd@2006.salmi.ch>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/32539: entering ddb when closing lid with ACPI
Date: Mon, 16 Jan 2006 10:47:01 +0100

 Rui Paulo wrote:
 >  Nop, ACPI_DEBUG !=3D ACPI_DEBUGGER.
 >  Anyway, if you had it, you'll be dropped in the ACPI debugger when the
 >  system boots up IIUC.
 
 Hmm, I can't build a kernel with ACPI_DEBUGGER... Setting both `options ACPI_DEBUG' and `options ACPI_DEBUGGER' results in
 
 #    create  ANOLE.ACPI.debug/acpi_machdep.d
 mkdep -f acpi_machdep.d --   -ffreestanding   -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare  -fno-zero-initialized-in-bss     -Di386 -I.  -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DACPI_DEBUGGER -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string  -I/usr/src/sys/dist/ipf  /usr/src/sys/arch/x86/x86/acpi_machdep.c
 In file included from /usr/src/sys/dev/acpi/acpica/Subsystem/acenv.h:214,
                  from /usr/src/sys/dev/acpi/acpica/Subsystem/acpi.h:127,
                  from /usr/src/sys/dev/acpi/acpica.h:43,
                  from /usr/src/sys/arch/x86/x86/acpi_machdep.c:55:
 /usr/src/sys/dev/acpi/acpica/Subsystem/acnetbsd.h:162:1: "ACPI_DEBUGGER" redefined
 <command line>:6:1: this is the location of the previous definition
 mkdep: compile failed.
 *** Error code 1
 
 Setting just `options ACPI_DEBUGGER' without `options ACPI_DEBUG' fixes
 this problem, but the build fails with
 
 #   compile  ANOLE.ACPI.debug/exdump.o
 cc -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Di386 -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DACPI_DEBUGGER -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string -I/usr/src/sys/dist/ipf -c /usr/src/sys/dev/acpi/acpica/Subsystem/exdump.c
 /usr/src/sys/dev/acpi/acpica/Subsystem/exdump.c: In function `AcpiExDumpObjectDescriptor':
 /usr/src/sys/dev/acpi/acpica/Subsystem/exdump.c:897: error: structure has no member named `Name'
 *** Error code 1
 
 Regards, Jukka
 
 -- 
 bashian roulette:
 $ ((RANDOM%6)) || rm -rf ~