From owner-freebsd-current@FreeBSD.ORG Tue Feb 14 22:35:33 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D39EE16A420 for ; Tue, 14 Feb 2006 22:35:33 +0000 (GMT) (envelope-from ambrisko@ambrisko.com) Received: from mail.ambrisko.com (mail.ambrisko.com [64.174.51.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7710643D48 for ; Tue, 14 Feb 2006 22:35:33 +0000 (GMT) (envelope-from ambrisko@ambrisko.com) Received: from server2.ambrisko.com (HELO www.ambrisko.com) ([192.168.1.2]) by mail.ambrisko.com with ESMTP; 14 Feb 2006 14:35:33 -0800 Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.12.11/8.12.9) with ESMTP id k1EMZWSu007337; Tue, 14 Feb 2006 14:35:33 -0800 (PST) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.12.11/8.12.11/Submit) id k1EMZW9C007336; Tue, 14 Feb 2006 14:35:32 -0800 (PST) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200602142235.k1EMZW9C007336@ambrisko.com> In-Reply-To: <20060214220119.GA99615@troutmask.apl.washington.edu> To: Steve Kargl Date: Tue, 14 Feb 2006 14:35:32 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Cc: freebsd-current@freebsd.org Subject: Re: Buildworld broken on amd64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2006 22:35:33 -0000 Steve Kargl writes: | cc -O2 -fno-strict-aliasing -pipe -march=opteron -Wall -Wmissing-prototypes -Wcast-qual -Wwrite | -strings -Wnested-externs -DRESCUE -c /usr/src/sbin/ifconfig/ifmedia.c | /usr/src/sbin/ifconfig/ifmedia.c:345: error: `IFM_10GBASE_SR' undeclared here (not in a functio | n) | /usr/src/sbin/ifconfig/ifmedia.c:345: error: initializer element is not constant | /usr/src/sbin/ifconfig/ifmedia.c:345: error: (near initialization for `ifm_subtype_ethernet_des | criptions[16].ifmt_word') | /usr/src/sbin/ifconfig/ifmedia.c:345: error: initializer element is not constant | /usr/src/sbin/ifconfig/ifmedia.c:345: error: (near initialization for `ifm_subtype_ethernet_des | criptions[16]') | /usr/src/sbin/ifconfig/ifmedia.c:345: error: `IFM_10GBASE_LR' undeclared here (not in a functio | n) | /usr/src/sbin/ifconfig/ifmedia.c:345: error: initializer element is not constant | /usr/src/sbin/ifconfig/ifmedia.c:345: error: (near initialization for `ifm_subtype_ethernet_des | criptions[17].ifmt_word') | /usr/src/sbin/ifconfig/ifmedia.c:345: error: initializer element is not constant | /usr/src/sbin/ifconfig/ifmedia.c:345: error: (near initialization for `ifm_subtype_ethernet_des | criptions[17]') | /usr/src/sbin/ifconfig/ifmedia.c:345: error: initializer element is not constant | /usr/src/sbin/ifconfig/ifmedia.c:345: error: (near initialization for `ifm_subtype_ethernet_des | criptions[18]') | *** Error code 1 | | Stop in /usr/src/sbin/ifconfig. | *** Error code 1 | | Stop in /usr/obj/usr/src/rescue/rescue. | *** Error code 1 I think the commit to if_media.h broke it. Try: Index: if_media.h =================================================================== RCS file: /usr/local/cvsroot/freebsd/src/sys/net/if_media.h,v retrieving revision 1.31 diff -u -p -r1.31 if_media.h --- if_media.h 14 Feb 2006 12:10:03 -0000 1.31 +++ if_media.h 14 Feb 2006 22:33:28 -0000 @@ -328,8 +328,8 @@ struct ifmedia_description { { IFM_1000_T, "1000baseTX" }, \ { IFM_1000_T, "1000baseT" }, \ { IFM_HPNA_1, "homePNA" }, \ - { IFM_10GBASE_SR, "10GBASE-SR" }, \ - { IFM_10GBASE_LR, "10GBASE-LR" }, \ + { IFM_10G_SR, "10GBASE-SR" }, \ + { IFM_10G_LR, "10GBASE-LR" }, \ { 0, NULL }, \ } to fix it. I'm not sure why 18/19 where flipped. Maybe to sync. with NetBSD? Doug A.