Date: Sun, 11 Mar 2001 22:50:03 -0800 (PST) From: "Michael Conlen" <meconlen@obfuscated.net> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/25721: kernel builds on March 12th -stable fail Message-ID: <200103120650.f2C6o3V50115@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/25721; it has been noted by GNATS. From: "Michael Conlen" <meconlen@obfuscated.net> To: <freebsd-gnats-submit@FreeBSD.org>, "Michael E Conlen" <meconlen@obfuscated.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103120650.f2C6o3V50115>