Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 1999 11:25:25 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Mike Ekholm <ekholm@visi.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: 2.2.6 to 3.1 #error "This ain't NetBSD.  You lose!
Message-ID:  <19990314112525.J429@lemis.com>
In-Reply-To: <Pine.GSO.4.02.9903131031410.28660-100000@isis.visi.com>; from Mike Ekholm on Sat, Mar 13, 1999 at 10:34:37AM -0600
References:  <Pine.GSO.4.02.9903131031410.28660-100000@isis.visi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990314112525.J429>