From owner-freebsd-current Thu May 24 17:50:29 2001 Delivered-To: freebsd-current@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 15A0937B424 for ; Thu, 24 May 2001 17:50:25 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 07EF86ACBC; Fri, 25 May 2001 10:20:23 +0930 (CST) Date: Fri, 25 May 2001 10:20:23 +0930 From: Greg Lehey To: current@FreeBSD.ORG Subject: Re: sbin/vinum broken Message-ID: <20010525102022.F26315@wantadilla.lemis.com> References: <20010523165638.A17292@sunbay.com> <20010524092456.R76823@wantadilla.lemis.com> <20010524182819.B18141@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010524182819.B18141@sunbay.com>; from ru@FreeBSD.ORG on Thu, May 24, 2001 at 06:28:19PM +0300 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thursday, 24 May 2001 at 18:28:19 +0300, Ruslan Ermilov wrote: > On Thu, May 24, 2001 at 09:24:56AM +0930, Greg Lehey wrote: >> On Wednesday, 23 May 2001 at 16:56:39 +0300, Ruslan Ermilov wrote: >>> Hi! >>> >>> src/sbin/vinum is broken at the moment. >>> It doesn't build without -DVINUMDEBUG. >> >> *sigh*. I could have sworn I tested this, but it seems I did it in a >> parallel universe. It's fixed now, I think. me->pointyhat++; >> >>> >>> A quick workaround: >>> >>> Index: Makefile >>> =================================================================== >>> RCS file: /home/ncvs/src/sbin/vinum/Makefile,v >>> retrieving revision 1.20 >>> diff -u -r1.20 Makefile >>> --- Makefile 2001/05/23 05:24:53 1.20 >>> +++ Makefile 2001/05/23 13:55:24 >>> @@ -5,6 +5,7 @@ >>> MAN= vinum.8 >>> >>> CFLAGS+= -I${.CURDIR}/../../sys -Wall >>> +CFLAGS+= -DVINUMDEBUG >> >> This didn't work for me: >> >> === root@zaphod (/dev/ttyp1) /src/FreeBSD/5.0-CURRENT/src/sbin/vinum 4 -> make >> Warning: Using /wantadilla/home/obj/src/FreeBSD/5.0-CURRENT/src/sbin/vinum as object directory instead of canonical /usr/obj/src/FreeBSD/5.0-CURRENT/src/sbin/vinum >> cc -O -pipe -c /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/v.c >> In file included from /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/v.c:57: >> /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:75: dev/vinum/vinumvar.h: No such file or directory >> /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:76: dev/vinum/vinumio.h: No such file or directory >> /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:77: dev/vinum/vinumkw.h: No such file or directory >> /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:78: dev/vinum/vinumutil.h: No such file or directory >> >> Am I missing something? >> > I bet you specified CFLAGS on a command line, and that clobbered > CFLAGS+=-I${.CURDIR}/../../sys from Makefile. No, that wasn't it. > Otherwise, I fail to see why there's no -I... in the above output. So do I. It works now. But I don't understand what has changed. > Missing /usr/include/dev/vinum headers, yeah? :-) No, of course not. With the -I it worked fine. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message