From owner-cvs-all Tue Jun 26 16:53: 6 2001 Delivered-To: cvs-all@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id BA57337B401; Tue, 26 Jun 2001 16:52:59 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from hornet.unixfreak.org (hornet [63.198.170.140]) by bazooka.unixfreak.org (Postfix) with ESMTP id E284F3E2F; Tue, 26 Jun 2001 16:52:58 -0700 (PDT) To: Mike Barcroft Cc: ru@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/spray Makefile In-Reply-To: <200106270000.f5R00b994489@coffee.q9media.com>; from mike@q9media.com on "Tue, 26 Jun 2001 20:00:37 -0400 (EDT)" Date: Tue, 26 Jun 2001 16:52:58 -0700 From: Dima Dorfman Message-Id: <20010626235258.E284F3E2F@bazooka.unixfreak.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mike Barcroft writes: > Dima Dorfman 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