From owner-freebsd-stable Tue May 30 15:54:26 2000 Delivered-To: freebsd-stable@freebsd.org Received: from merganser.its.uu.se (merganser.its.uu.se [130.238.6.236]) by hub.freebsd.org (Postfix) with ESMTP id 669AD37B7A0 for ; Tue, 30 May 2000 15:54:22 -0700 (PDT) (envelope-from ertr1013@student.csd.uu.se) Received: from regulus.student.UU.SE ([130.238.5.2]:48309 "HELO ertr1013.student.csd.uu.se") by merganser.its.uu.se with SMTP id ; Wed, 31 May 2000 00:53:52 +0200 Received: (qmail 47649 invoked by uid 1001); 30 May 2000 22:53:55 -0000 Date: Wed, 31 May 2000 00:53:55 +0200 From: Erik Trulsson To: freebsd-stable@FreeBSD.ORG Subject: Re: GENERIC 4.0 kernel compile fails on in_cksum.c Message-ID: <20000531005355.A47631@student.csd.uu.se> Mail-Followup-To: freebsd-stable@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from bharat@sinia.com on Tue, May 30, 2000 at 03:19:41PM -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, May 30, 2000 at 03:19:41PM -0700, Bharat Mediratta wrote: > > Hi, guys -- > > I've seen this problem posted before to this mailing list, but I > was unable to find the answer in either the FreeBSD or the Geocrawler > indicies of this mailing list. So I'm trying again. > > I am trying to upgrade my 3.4 box to 4.0. I just cvsup'd the latest > source with this supfile (I've cvsup'd several times, so I think that > rules out cvsup conflicting with a putback): > > *default host=cvsup2.FreeBSD.org > *default base=/usr > *default prefix=/usr > *default release=cvs tag=RELENG_4 > *default delete use-rel-suffix > *default compress > src-all > cvs-crypto > ports-all tag=. > Looks good so far. > My compiler: > > # cc --version > 2.7.2.3 > > Then, I followed these directions: > > # cd /usr/src/sys/i386/conf > # config GENERIC > # cd ../../compile/GENERIC > # make depend > # make Wrong. Very wrong. Where did you get these directions? To upgrade from 3.4 to 4.0 you should follow the instructions in /usr/src/UPDATING. (After getting the 4.0 sources with cvsup.) What you are doing (trying to build a 4.0 kernel with 3.4 tools) is basically doomed to fail. > > It always dies with: > > cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-exte > rns -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wuni > nitialized -Wformat -Wunused -fformat-extensions -ansi -nostdinc -I- -I. - > I../.. -I../../../include -D_KERNEL -include opt_global.h -elf > ../../i386/i386/in_cksum.c > ../../i386/i386/in_cksum.c: In function `in_cksum': > ../../i386/i386/in_cksum.c:238: `__func__' undeclared (first use this > function) > ../../i386/i386/in_cksum.c:238: (Each undeclared identifier is reported only > once > ../../i386/i386/in_cksum.c:238: for each function it appears in.) > ../../i386/i386/in_cksum.c: In function `in_cksum_skip': > ../../i386/i386/in_cksum.c:426: `__func__' undeclared (first use this > function) > *** Error code 1 > > What am I doing wrong? Thanks! This error is because of you using an old version of the compiler. 4.0 has a later one. (2.95.2) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message