From owner-freebsd-current Thu Dec 13 16:48:28 2001 Delivered-To: freebsd-current@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 67BA637B405 for ; Thu, 13 Dec 2001 16:48:20 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.3/8.11.1) id fBE0mJs43228; Thu, 13 Dec 2001 16:48:19 -0800 (PST) (envelope-from rizzo) Date: Thu, 13 Dec 2001 16:48:19 -0800 From: Luigi Rizzo To: current@freebsd.org Subject: problems compiling various things... Message-ID: <20011213164819.I42454@iguana.aciri.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG With a freshly cvsupped version of CURRENT, cross-compiled on a 4.3 box, (after the usual stdio.h fix related to the FILE handling), I am having problems compiling several programs, with errors such as the ones attached at the end. In most cases they choke on missing prototype for main(). This did not use to occur with CURRENT as of (roughly) 5-6 weeks ago, but then I have not followed closely what was going on, likely a makefile config change. Anyways, I wonder: * is this related to my cross-compilation environment ? * if not, what is the proper fix, use an ANSI declaration int main(int argc, char *argv[]) or forget that it is almost 2002 and use int main __P((int, char *[])); There are several commands affected by this, such as usr.sbin/chown bin/rm usr.sbin/dev_mkdb and maybe others that I am not compiling in my picobsd configuration. thanks luigi cc -nostdinc -I/home/xorpc/u2/homes/rizzo/HEAD/src/../usr/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -c /home/xorpc/u2/homes/rizzo/HEAD/src/usr.sbin/chown/chown.c cc1: warnings being treated as errors /home/xorpc/u2/homes/rizzo/HEAD/src/usr.sbin/chown/chown.c:75: warning: function declaration isn't a prototype *** Error code 1 Stop in /home/xorpc/u2/homes/rizzo/HEAD/src/usr.sbin/chown. ----- End forwarded message ----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message