ACPI error on Compaq nc6220, FreeBSD 7.0

Denis piloyder at gmail.com
Tue Sep 11 22:15:58 PDT 2007


> > > That is strange because I can compile kernel with or without it.
> > > In fact, I have been using it without the acfreebsd.h patch for
> > > months. :-(
> >
> OsdSynch.c may have been corrupt.  Can you revert the three files,
> download the patch again from the URL, re-apply, and recompile?

Yes, I did it. Patch, that you sent me directly have different size
than that your gave a link.
I revert all files back, downloaded patch from the link, patched all
but acfreebsd.h and got next error:

---
cc -O -pipe  -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc
-I/usr/src/sys/modules/acpi/acpi/../../../contrib/dev/acpica
-DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/GENERIC/opt_global.h -I. -I@ -I@/contrib/altq
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-common -g
-I/usr/obj/usr/src/sys/GENERIC -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c
/usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c
/usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:254:
error: expected declaration specifiers or '...' before numeric
constant
/usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:254:
error: expected declaration specifiers or '...' before numeric
constant
/usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:255:
error: conflicting types for 'AcpiOsCreateSemaphore'
/usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:93:
error: previous definition of 'AcpiOsCreateSemaphore' was here
/usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:278:
error: expected identifier or '(' before 'void'
/usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:294:
error: expected declaration specifiers or '...' before numeric
constant
/usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:295:
error: conflicting types for 'AcpiOsWaitSemaphore'
/usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:142:
error: previous definition of 'AcpiOsWaitSemaphore' was here
/usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:338:
error: expected identifier or '(' before 'void'
*** Error code 1

Stop in /usr/src/sys/modules/acpi/acpi.
*** Error code 1

Stop in /usr/src/sys/modules/acpi.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
---

But when I patched all 3 files, kernel compiled fine, but I got
another kernel panic (see next mail)

Best regards, Denis.


More information about the freebsd-acpi mailing list