From owner-freebsd-bugs Sun Mar 11 22:50: 5 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1B0F937B718 for ; Sun, 11 Mar 2001 22:50:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2C6o3V50115; Sun, 11 Mar 2001 22:50:03 -0800 (PST) (envelope-from gnats) Date: Sun, 11 Mar 2001 22:50:03 -0800 (PST) Message-Id: <200103120650.f2C6o3V50115@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Michael Conlen" Subject: Re: kern/25721: kernel builds on March 12th -stable fail Reply-To: "Michael Conlen" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/25721; it has been noted by GNATS. From: "Michael Conlen" To: , "Michael E Conlen" Cc: Subject: Re: kern/25721: kernel builds on March 12th -stable fail Date: Mon, 12 Mar 2001 01:06:51 -0500 I forgot to mention... Normally I can track down these things, but this is just weird. The only thing I can think of is that the current gcc is not accepting variables defined anywhere but the top of the function and is treating the var definition as something weird. sure enough # cat a.c main() { printf("hello world\n"); int a; a = 1; printf("hello world %d\n", a); } # cc a.c a.c: In function `main': a.c:3: syntax error before `int' a.c:4: `a' undeclared (first use in this function) a.c:4: (Each undeclared identifier is reported only once a.c:4: for each function it appears in.) # cat a.c main() { int a; printf("hello world\n"); a = 1; printf("hello world %d\n", a); } # cc a.c This seems to be the problem! Gotta love copy and paste limits... -- Groove On Dude Michael Conlen Obfuscated Networking meconlen@obfuscated.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message