Skip site navigation (1)Skip section navigation (2)
Date:        Wed, 31 May 2000 00:53:55 +0200
From:      Erik Trulsson <ertr1013@student.csd.uu.se>
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>
In-Reply-To: <NDBBIHDGOLLHCKPDEJKAIEGJCCAA.bharat@sinia.com>; from bharat@sinia.com on Tue, May 30, 2000 at 03:19:41PM -0700
References:  <NDBBIHDGOLLHCKPDEJKAIEGJCCAA.bharat@sinia.com>

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




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