From owner-freebsd-stable@FreeBSD.ORG Fri May 25 09:36:39 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 043BA16A47C for ; Fri, 25 May 2007 09:36:39 +0000 (UTC) (envelope-from shaun@pcuse.com) Received: from ipmail01.adl2.internode.on.net (ipmail01.adl2.internode.on.net [203.16.214.140]) by mx1.freebsd.org (Postfix) with ESMTP id 0F8D013C480 for ; Fri, 25 May 2007 09:36:37 +0000 (UTC) (envelope-from shaun@pcuse.com) X-IronPort-AV: E=Sophos;i="4.14,578,1170595800"; d="scan'208";a="134060431" Received: from ppp62-206.lns11.adl2.internode.on.net (HELO sagan.cai) ([121.45.62.206]) by ipmail01.adl2.internode.on.net with ESMTP; 25 May 2007 19:06:36 +0930 Received: by sagan.cai (Postfix, from userid 1100) id 277791CC3D; Fri, 25 May 2007 19:06:38 +0930 (CST) Date: Fri, 25 May 2007 19:06:38 +0930 From: Shaun Branden To: Ruslan Ermilov Message-ID: <20070525093638.GH33121@pcuse.com> References: <20070525023710.GT33121@pcuse.com> <20070525082818.GB85633@rambler-co.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <20070525082818.GB85633@rambler-co.ru> User-Agent: Mutt/1.4.2.2i X-GPG-Fingerprint: 2571 65A6 1F38 0168 63CB BCE5 CA20 7F19 AA92 1949 X-GPG-Key: AA921949 Website: http://pcuse.com ICQ: 10469563 Jabber: shaun@pcuse.com VoIP: sip:0871270164@sip.internode.on.net Cc: freebsd-stable@freebsd.org Subject: Re: make buildworld issue on 6.2 stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2007 09:36:39 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 25, 2007 at 12:28:18PM +0400, Ruslan Ermilov wrote: > On Fri, May 25, 2007 at 12:07:10PM +0930, Shaun Branden wrote: =20 > IEEE80211_IS_CHAN_PASSIVE() is a macro defined in > src/sys/net80211/_ieee80211.h. Check that you have an up-to-date > copy of that file in /usr/src. If you have it and still get the > error, "rm -rf /usr/obj/usr/src" first, then try to build world > again. Thanks for that The file is there: shaun@sagan:net80211$ pwd /usr/src/sys/net80211 You have mail in /var/mail/shaun shaun@sagan:net80211$ ls -l _ieee80211.h -rw-r--r-- 1 root wheel 8181 Jan 28 14:37 _ieee80211.h and this is from my history: 489 cvsup -g ~shaun/cvs/stable-supfile=20 490 cd /usr/obj 491 rm -rf * 492 chflags -R noschg * 493 rm -rf * 494 cd /usr/src I just ran these again, ie !489, !490 etc with make buildworld at the end and got the same result. =2E.. ifconfig.lo(.text+0x4df8): In function `print_chaninfo': : undefined reference to `IEEE80211_IS_CHAN_PASSIVE' *** Error code 1 Stop in /usr/obj/usr/src/rescue/rescue. *** Error code 1 Stop in /usr/src/rescue/rescue. *** Error code 1 Stop in /usr/src/rescue. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. root@sagan:src$=20 Also, I usually use the following script to do all this, but started running the commands interactively after it failed the first time. As you can see it removes the /usr/obj before running make buildworld. #!/usr/local/bin/bash # Copyright (c) June 2002 Shaun Branden . # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. SUPFILE=3D"/home/shaun/cvs/stable-supfile" KERN=3D"SAGAN" #KERN=3D"GENERICNEW" if [ -z $1 ] then echo "Usage: `basename $0` {-a(ll includes cvs)|-m(ost)}" >&2 exit 42 fi if [ "$UID" !=3D "0" ] then echo "You do not have permission to use this script" exit 42 fi docvs () { echo "updating cvs" cvsup -g $SUPFILE if [ $? -ne "0" ] then echo "cvs failed, perhaps we are offline" exit 42 fi } #remove the working files from last time doremove () { echo "Removing old /usr/obj:" cd /usr/obj if [ $? -eq "0" ] then rm -rf * chflags -R noschg * rm -rf * else echo "Did not change to /usr/obj so rm -rf not run" exit 42 fi } #compiles all system sources dobuild () { echo "Compiling the sources:" cd /usr/src make buildworld if [ $? -ne "0" ] then echo "make buildworld failed, exiting" exit 42 fi } #compile and installs the kernel dokernel () { echo "Compiling the kernel called $KERN " echo "running make buildkernel" make buildkernel KERNCONF=3D$KERN if [ $? -ne "0" ] then echo "make buildkernel failed, exiting" exit 42 fi echo "running make installkernel" make installkernel KERNCONF=3D$KERN if [ $? -ne "0" ] then echo "make installkernel failed, exiting" exit 42 fi } #installs new system doinstall () { #install it all echo "running make installworld" make installworld if [ $? -ne "0" ] then echo "ERROR: make installworld failed, exiting" exit 42 fi } #Now run Mergemaster, this will also run MAKEDEV" domerge () { echo "Would you like me to run mergemaster? (y/n)" read answer if [ $answer =3D "y" ] then cp -Rp /etc /etc.old mergemaster if [ $? -ne "0" ] then echo "make installkernel failed, exiting" exit 42 fi else echo "Run cp -Rp /etc /etc.old mergemaster manually" exit fi } #calls from here case "$1" in -a) docvs doremove dobuild dokernel doinstall domerge ;; -m) doremove dobuild dokernel doinstall domerge ;; *) echo "Usage: `basename $0` {-a(ll includes cvs)|-m(ost)}" >&2 ;; esac echo "Now that mergemaster is complete you can reboot to the new system:)" thanks shaun --=20 Shaun Branden: Alchemist and Bit Bender PGP and contact details in the headers. --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGVq4lyiB/GaqSGUkRAhASAKCjPVFrnWK4DjQavU/8XrANZ36regCcCpdY d7hcu7eASNrS8jjCNn7isHc= =MxDF -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm--