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


and maybe others that I am not compiling in my picobsd configuration.


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 
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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to