[head tinderbox] failure on i386/i386

Kevin Oberman oberman at es.net
Fri Jun 30 18:11:05 UTC 2006


> Date: Fri, 30 Jun 2006 10:44:02 -0700
> From: David Wolfskill <david at catwhisker.org>
> Sender: owner-freebsd-current at freebsd.org
> 
> On Fri, Jun 30, 2006 at 01:18:21AM -0400, FreeBSD Tinderbox wrote:
> > ...
> > /src/sys/modules/acpi/acpi_asus/../../../dev/acpi_support/acpi_asus.c:584> : error: 'for' loop initial declaration used outside C99 mode
> > *** Error code 1
> 
> OK; I got that with thsi morning's build on my laptop, but not on
> yesterday's.
> 
> I don't have a fix, but here's a complete list of each file that changed
> in the interim on my laptop:
> 
> share/man/man4/sched_core.4
> sys/conf/files.ia64
> sys/conf/kern.mk
> sys/conf/kern.pre.mk
> sys/dev/puc/puc.c
> sys/dev/puc/puc_cfg.c
> sys/dev/puc/puc_pccard.c
> sys/dev/puc/puc_pci.c
> sys/dev/puc/pucdata.c
> sys/dev/sio/sio.c
> sys/ia64/ia64/emulate.c
> sys/ia64/ia64/trap.c
> sys/ia64/include/md_var.h
> sys/kern/kern_thread.c
> sys/kern/sched_4bsd.c
> sys/kern/sched_core.c
> sys/kern/sysv_sem.c
> sys/net/if.c
> sys/net/if_atmsubr.c
> sys/net/if_stf.c
> sys/net/if_tun.c
> sys/netinet/if_ether.c
> sys/netinet/in_pcb.c
> sys/netinet/ip_divert.c
> sys/netinet/ip_fw2.c
> sys/netinet/ip_output.c
> sys/netinet/tcp_input.c
> sys/netinet6/in6.c
> sys/netinet6/in6_pcb.c
> sys/netinet6/in6_var.h
> sys/nfsclient/bootp_subr.c
> sys/nfsclient/nfs_diskless.c
> usr.bin/tail/extern.h
> usr.bin/tail/forward.c
> usr.bin/tail/tail.1
> usr.bin/tail/tail.c
> 
> Of those, I suspect that the man pages can likely be excluded as
> suspects, as may many others.  :-}
> 
> But I need to get back to my paying job at the moment....
> 
> Peace,
> david

Jung-uk Kim set a note to david that he missed kmod.mk when he added
the dialect knob to the kernel make files.

Here is his patch that fixed it for me:
Index: sys/conf/kmod.mk
===================================================================
RCS file: /home/ncvs/src/sys/conf/kmod.mk,v
retrieving revision 1.208
diff -u -r1.208 kmod.mk
--- sys/conf/kmod.mk     27 May 2006 16:32:05 -0000      1.208
+++ sys/conf/kmod.mk     30 Jun 2006 00:57:37 -0000
@@ -85,8 +85,10 @@
 .if ${CC} == "icc"
 NOSTDINC=      -X
 .else
+C_DIALECT=     -std=c99
 NOSTDINC=      -nostdinc
 .endif
+CFLAGS+=       ${C_DIALECT}
 CFLAGS:=       ${CFLAGS:N-I*} ${NOSTDINC} -I- ${INCLMAGIC} ${CFLAGS:M-I*}
 .if defined(KERNBUILDDIR)
 CFLAGS+=       -DHAVE_KERNEL_OPTION_HEADERS -include ${KERNBUILDDIR}/opt_global.h
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman at es.net			Phone: +1 510 486-8634


More information about the freebsd-i386 mailing list