From owner-freebsd-questions Sat Mar 13 16:56: 6 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 6704014DD5 for ; Sat, 13 Mar 1999 16:55:48 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id LAA01696; Sun, 14 Mar 1999 11:25:28 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id LAA10872; Sun, 14 Mar 1999 11:25:26 +1030 (CST) Message-ID: <19990314112525.J429@lemis.com> Date: Sun, 14 Mar 1999 11:25:25 +1030 From: Greg Lehey To: Mike Ekholm , freebsd-questions@FreeBSD.ORG Subject: Re: 2.2.6 to 3.1 #error "This ain't NetBSD. You lose! References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Mike Ekholm on Sat, Mar 13, 1999 at 10:34:37AM -0600 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Saturday, 13 March 1999 at 10:34:37 -0600, Mike Ekholm wrote: > I am trying to upgrade my freebsd box from 2.2.6 to 3.1. When I do a > 'make -j 4 aout-to-elf-build' it builds for about 13 hours and ends with > this anyone know how to get around this? > > ===> usr.bin/xlint/xlint > cc -nostdinc -O -pipe -I/usr/src/usr.bin/xlint/xlint/../lint1 > -I/usr/obj/elf/usr/src/tmp/usr/include -c > /usr/src/usr.bin/xlint/xlint/xlint.c > gzip -cn /usr/src/usr.bin/xlint/xlint/lint.1 > lint.1.gz > cc -nostdinc -O -pipe -I/usr/src/usr.bin/xlint/xlint/../lint1 > -I/usr/obj/elf/usr/src/tmp/usr/include -c > /usr/src/usr.bin/xlint/xlint/../lint1/mem.c > /usr/src/usr.bin/xlint/xlint/xlint.c:333: #error "This ain't NetBSD. You > lose!" > *** Error code 1 > 1 error In case of doubt, look at the source: #ifdef __FreeBSD__ appcstrg(&cppflags, "-D__FreeBSD__=" __XSTRING(__FreeBSD__)); #else # error "This ain't NetBSD. You lose!" appcstrg(&cppflags, "-D__NetBSD__"); #endif The real question is, why isn't __FreeBSD__ being defined? That's not obvious from your printout; it's difficult to tell. We always suspected that some upgrade builds would fail, especially from 2.2.(<8) to 3.1. You can probably save yourself a lot of pain by doing a binary install of 3.1 and *then* a make world. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message