RE: problems compiling various things...

2001-12-13 Thread John Baldwin


On 14-Dec-01 Luigi Rizzo wrote:
> 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.

Just use WARNS=0 or some such in your build.  Or NO_WERROR=yes.

-- 

John Baldwin <[EMAIL PROTECTED]>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



problems compiling various things...

2001-12-13 Thread Luigi Rizzo

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