From owner-freebsd-stable@FreeBSD.ORG Sun Apr 25 14:10:31 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1355516A4CE for ; Sun, 25 Apr 2004 14:10:31 -0700 (PDT) Received: from smtp.owt.com (smtp.owt.com [204.118.6.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AFCE43D1F for ; Sun, 25 Apr 2004 14:10:30 -0700 (PDT) (envelope-from kstewart@owt.com) Received: from [207.41.94.233] (owt-207-41-94-233.owt.com [207.41.94.233]) by smtp.owt.com (8.12.8/8.12.8) with ESMTP id i3PLADjw016129; Sun, 25 Apr 2004 14:10:13 -0700 From: Kent Stewart To: freebsd-stable@freebsd.org, "Michael C.Shultz" Date: Sun, 25 Apr 2004 14:10:28 -0700 User-Agent: KMail/1.6.2 References: <20040425201228.D3AB48455@ringworm.mojavegreen.com> In-Reply-To: <20040425201228.D3AB48455@ringworm.mojavegreen.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200404251410.28295.kstewart@owt.com> Subject: Re: make buildworld fails for STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2004 21:10:31 -0000 On Sunday 25 April 2004 01:12 pm, Michael C.Shultz wrote: > >Submitter-Id: current-users > >Originator: Michael C. Shultz > >Organization: Mojavegreen Software Co. > >Confidential: no > >Synopsis: make buildworld fails for STABLE > >Severity: serious > >Priority: medium > >Category: i386 > >Class: sw-bug > >Release: FreeBSD 4.10-BETA i386 > >Environment: > > System: FreeBSD ringworm.mojavegreen.com 4.10-BETA FreeBSD 4.10-BETA > #0: Wed Apr 7 20:15:25 PDT 2004 > mike@ringworm.home.com:/speed/usr.obj/storage/usr.src/sys/RINGWORM > i386 > > >Description: > > Build world for STABLE failed for me this morning with: > > /usr.src/sbin/ifconfig/ifconfig.c:288: `IFCAP_POLLING' undeclared > here (not in a function) /usr.src/sbin/ifconfig/ifconfig.c:288: > initializer element is not constant > /usr.src/sbin/ifconfig/ifconfig.c:288: (near initialization for > `cmds[71].c_parameter') /usr.src/sbin/ifconfig/ifconfig.c:289: > `IFCAP_POLLING' undeclared here (not in a function) > /usr.src/sbin/ifconfig/ifconfig.c:289: initializer element is not > constant /storage/usr.src/sbin/ifconfig/ifconfig.c:289: (near > initialization for `cmds[72].c_parameter') > > >How-To-Repeat: > > cd /usr/src > make buildworld > My mirror updated at 1825 UTC and I didn't have any problem. Did you wait an hour and re-cvsup. ===> sbin/ifconfig cc -O -pipe -DUSE_IF_MEDIA -DINET6 -DUSE_VLANS -DUSE_IEEE80211 -DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite -strings -Wnested-externs -I.. -c /usr/src/sbin/ifconfig/ifconfig.c cc -O -pipe -DUSE_IF_MEDIA -DINET6 -DUSE_VLANS -DUSE_IEEE80211 -DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite -strings -Wnested-externs -I.. -c /usr/src/sbin/ifconfig/ifmedia.c BTW, the "-I" point to where the non-normal headers are located. You don't need or want the full path in. Kent > >Fix: > > The problem is in /usr/src/sbin/ifconfig/ifconfig.c there is a line: > > #include > > that prevents the new if.h at /usr/src/sys/net/if.h > > from being read. > it should read: > > #include "../../sys/net/if.h" > > inorder to pull the new if.h > > So I am including a patch for /usr/src/sbin/ifconfig/ifconfig.c > below: > PS: I've never sent a patch before, if this is wrong please > explain or tell me where I can find the correct what to do it. > Thanks. > > --- ifconfig.c.ORIG Sun Apr 25 12:38:02 2004 > +++ ifconfig.c Sun Apr 25 12:53:02 2004 > @@ -54,7 +54,11 @@ > #include > > #include > +/************************** > #include > +***************************/ > + #include "../../sys/net/if.h" > +/***************************/ > #include > #include > #include > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org" -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html