Date: Tue, 26 Jun 2001 16:52:58 -0700 From: Dima Dorfman <dima@unixfreak.org> To: Mike Barcroft <mike@q9media.com> Cc: ru@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/spray Makefile Message-ID: <20010626235258.E284F3E2F@bazooka.unixfreak.org> In-Reply-To: <200106270000.f5R00b994489@coffee.q9media.com>; from mike@q9media.com on "Tue, 26 Jun 2001 20:00:37 -0400 (EDT)"
next in thread | previous in thread | raw e-mail | index | archive | help
Mike Barcroft <mike@q9media.com> writes: > Dima Dorfman <dd@FreeBSD.org> writes: > > dd 2001/06/26 00:31:02 PDT > > > > Modified files: > > usr.sbin/spray Makefile > > Log: > > Back out previous commit; this can't compile with WARNS=2 because > > xdr.h isn't warning-free. > > > > Submitted by: ru > > > > Revision Changes Path > > 1.9 +1 -2 src/usr.sbin/spray/Makefile > > Hmm, it compiled with WARNS=2 for me. Can you explain the problem with > xdr.h and I'll see if I can clean it up? Stick: -I/path/to/usr/src/include in CFLAGS and compile. You'll get this error (this is on an Alpha, but you'll get the same thing on an x86): cc -O -pipe -mcpu=ev4 -I/usr/src/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -c spray.c cc1: warnings being treated as errors In file included from /usr/src/include/rpc/rpc.h:50, from spray.c:41: /usr/src/include/rpc/xdr.h:141: warning: function declaration isn't a prototype *** Error code 1 Stop in /.amd_mnt/freefall/host/d/home/dd/m/spray. You can't clean it up because xdr.h lines 138-141 rev. 1.18 say: /* * XXX can't actually prototype it, because some take three args!!! */ typedef bool_t (*xdrproc_t) __P((/* XDR *, void *, u_int */)); > > Best regards, > Mike Barcroft > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010626235258.E284F3E2F>