From owner-freebsd-current@FreeBSD.ORG Tue Apr 22 19:34:16 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 018E537B401 for ; Tue, 22 Apr 2003 19:34:16 -0700 (PDT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A90443F3F for ; Tue, 22 Apr 2003 19:34:15 -0700 (PDT) (envelope-from leimy2k@mac.com) Received: from asmtp01.mac.com (asmtp01-qfe3 [10.13.10.65]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h3N2YFPE012074 for ; Tue, 22 Apr 2003 19:34:15 -0700 (PDT) Received: from mac.com ([67.33.225.211]) by asmtp01.mac.com (Netscape Messaging Server 4.15) with ESMTP id HDRZ5200.OHR; Tue, 22 Apr 2003 19:34:14 -0700 Date: Tue, 22 Apr 2003 21:34:13 -0500 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) To: freebsd-current@freebsd.org From: David Leimbach Content-Transfer-Encoding: 7bit Message-Id: <11FEE921-7534-11D7-A805-0003937E39E0@mac.com> X-Mailer: Apple Mail (2.552) cc: Poul-Henning Kamp Subject: Makefile in /usr/src/lib/libdisk WARNS change? PLEASE READ! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2003 02:34:16 -0000 Hi, I posted the libdisk patch that was heavily ignored two days ago :). Without it I couldn't build libdisk and subsequently world. If I lower the WARNS value in the libdisk directory Makefiel the source builds without warning and world completes. The problem is rules.c having a switch/case that handles only 2 of 7 cases for the platform value. Adding a simple "default:" [as my patch did] will repair this problem. I should tell you that I clean-installed FBSD 5.0-RELEASE on Saturday 4/19/2003 and started playing with CURRENT again the very next day at which point I realized world wouldn't build. I didn't do much else so I can only assume that somehow this could happen to anyone else starting from RELEASE-5 today and attempting to build world. I have the latest version of the rules.c file [1.29]. I checked CVSWEB and it has the exact same code that fails for me in HEAD so I know its not my source. The only data involved in the switch is an enum type from libdisk.h which I also have the latest version of [1.55]. The error is /usr/src/lib/libdisk/rules.c:264: warning: enumeration value `p_any' not handled in switch /usr/src/lib/libdisk/rules.c:264: warning: enumeration value `p_alpha' not handled in switch /usr/src/lib/libdisk/rules.c:264: warning: enumeration value `p_sparc64' not handled in switch /usr/src/lib/libdisk/rules.c:264: warning: enumeration value `p_ia64' not handled in switch /usr/src/lib/libdisk/rules.c:264: warning: enumeration value `p_ppc' not handled in switch *** Error code 1. I know this isn't a bug in the VM system. Its not solving a kernel panic or some other serious commit but it does pose a barrier to those who want to test CURRENT. Should I file a problem report? Dave Leimbach