Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2001 16:48:19 -0800
From:      Luigi Rizzo <rizzo@aciri.org>
To:        current@freebsd.org
Subject:   problems compiling various things...
Message-ID:  <20011213164819.I42454@iguana.aciri.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011213164819.I42454>