From owner-freebsd-questions@FreeBSD.ORG Wed Jul 27 00:03:14 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6EEE16A41F for ; Wed, 27 Jul 2005 00:03:14 +0000 (GMT) (envelope-from freebsd.wang@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED18343D48 for ; Wed, 27 Jul 2005 00:03:13 +0000 (GMT) (envelope-from freebsd.wang@gmail.com) Received: by wproxy.gmail.com with SMTP id 70so61109wra for ; Tue, 26 Jul 2005 17:03:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=c7wrs2k68UaCg2Q5lyKkyP8seRlZTExdWyxlmxgwMW48R9WRbEJ8MmGDGhenr5PWVDorWoIxTiI9kNT7hOh4Qfy+245luj7yzIyeQ7rDnNa/lgsaJG/4Q29lrqwzZ8+JhmzNKfuksyi9EWPXUtqnHp9c4HQz6+5f2F5VVIbdT24= Received: by 10.54.24.49 with SMTP id 49mr122605wrx; Tue, 26 Jul 2005 17:03:12 -0700 (PDT) Received: by 10.54.114.18 with HTTP; Tue, 26 Jul 2005 17:03:12 -0700 (PDT) Message-ID: Date: Wed, 27 Jul 2005 08:03:12 +0800 From: Wang FreeBSD To: FreeBSD Questions Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: buildkernel failed X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Wang FreeBSD List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2005 00:03:14 -0000 I'm a programmer on Windows but a newbie to FreeBSD. I installed a new FreeBSD 5.2.1 and want to upgrade to 5-STABLE. I had try 5.4 and meet the problem too. When I buildworld meet some problem in libstdc++, can't found unwind.h. I fixed it by modify the Makefile under libstdc++, set CXXFLAGS has the same including path with CFLAGS, it's gone further.=20 But failed in libgroff again, fixed by same way and make again. It's report a function declare mkstemp in "lib.h" conflict with the declare in "stdlib.h". I modify the "lib.h" and a macro definition to disable declare in "stdlib.h". The problem doesn't solved but becomes biger and biger. So I rename /usr/src to /usr/src_bak and get the 5-STABLE source file. when I buildkernel, it raise error about config. How can I do? Thank you very much! =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D alan# make buildkernel =20 -------------------------------------------------------------- >>> Kernel build for GENERIC started on Wed Jul 27 07:42:42 CST 2005 -------------------------------------------------------------- =3D=3D=3D> GENERIC mkdir -p /usr/obj/usr/src/sys =20 -------------------------------------------------------------- >>> stage 1: configuring the kernel -------------------------------------------------------------- cd /usr/src/sys/i386/conf;=20 PATH=3D/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/u= sr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbi= n:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:= /usr/sbin:/usr/bin config -d /usr/obj/usr/src/sys/GENERIC=20 /usr/src/sys/i386/conf/GENERIC ERROR: version of config(8) does not match kernel! config version =3D 500012, version required =3D 500013 =20 Make sure that /usr/src/usr.sbin/config is in sync with your /usr/src/sys and install a new config binary before trying this again. =20 If running the new config fails check your config file against the GENERIC or LINT config files for changes in config syntax, or option/device naming conventions =20 *** Error code 1 =20 Stop in /usr/src. *** Error code 1 =20 Stop in /usr/src. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D uname -a=20 FreeBSD alan.jane.net 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004 =20 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D /etc/make.conf CPUTYPE=3Di686 CFLAGS=3D -O -pipe CXXFLAGS=3D -O -pipe #CXFLAGS+=3D -fmemoize-lookups -fsave-memoized COPTFLAGS=3D -O -pipe #WANT_FORCE_OPTIMIZATION_DOWNGRADE=3D1 = =20 NO_FORTRAN=3D true NO_I4B =3D true NO_IPFILTER=3D true NO_LPR =3D true NO_OBJC =3D true NO_SENDMAIL=3D true NOGAMES =3D true NO_MAILWRAPPER=3D true