Re: [head tinderbox] failure on i386/i386

From: Kevin Oberman <oberman_at_es.net>
Date: Fri, 30 Jun 2006 11:10:58 -0700
> 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
_at__at_ -85,8 +85,10 _at__at_
 .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
Received on Fri Jun 30 2006 - 16:11:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:57 UTC