From owner-freebsd-current@FreeBSD.ORG Fri Jun 30 00:20:35 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F73716A596 for ; Fri, 30 Jun 2006 00:20:35 +0000 (UTC) (envelope-from oberman@es.net) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF12243E11 for ; Thu, 29 Jun 2006 23:30:09 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id IBA74465 for ; Thu, 29 Jun 2006 16:30:04 -0700 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 0188145043 for ; Thu, 29 Jun 2006 16:30:03 -0700 (PDT) To: current@freebsd.org Date: Thu, 29 Jun 2006 16:30:02 -0700 From: "Kevin Oberman" Message-Id: <20060629233003.0188145043@ptavv.es.net> Cc: Subject: Unable to build acpi_asus module on current today X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 00:20:35 -0000 Today I tried rebuilding my laptop running current. Building the kernel module acpi_asus, the build bombed with the error: ===> acpi_asus (all) cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- -I/usr/src/sys/modules/acpi/acpi_asus/../../../contrib/dev/acpica -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -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 -fformat-extensions -c /usr/src/sys/modules /acpi/acpi_asus/../../../dev/acpi_support/acpi_asus.c /usr/src/sys/modules/acpi/acpi_asus/../../../dev/acpi_support/acpi_asus.c: In function `acpi_asus_attach': /usr/src/sys/modules/acpi/acpi_asus/../../../dev/acpi_support/acpi_asus.c:584: error: 'for' loop initial declaration used outside C99 mode But this module has not been touched since April and I have built all of it many times since then. Several other modules seem to have the same problem of declaring a variable in a for statement. I moved the declaration to its own statement before the "for" and it compiles fine. Did some compiler default recently change? I have no compile options on my make.conf. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634