From owner-freebsd-usb@FreeBSD.ORG Fri Feb 26 22:20:02 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3663B1065670 for ; Fri, 26 Feb 2010 22:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 135CF8FC1C for ; Fri, 26 Feb 2010 22:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1QMK1U9084265 for ; Fri, 26 Feb 2010 22:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1QMK1on084264; Fri, 26 Feb 2010 22:20:01 GMT (envelope-from gnats) Resent-Date: Fri, 26 Feb 2010 22:20:01 GMT Resent-Message-Id: <201002262220.o1QMK1on084264@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Matt D. Harris" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D4E51065670 for ; Fri, 26 Feb 2010 22:10:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 6C1728FC19 for ; Fri, 26 Feb 2010 22:10:37 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o1QMAaiU038573 for ; Fri, 26 Feb 2010 22:10:36 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o1QMAa8W038572; Fri, 26 Feb 2010 22:10:36 GMT (envelope-from nobody) Message-Id: <201002262210.o1QMAa8W038572@www.freebsd.org> Date: Fri, 26 Feb 2010 22:10:36 GMT From: "Matt D. Harris" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/144332: Kernel compile fails when aue is enabled but not other USB ethernet drivers X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2010 22:20:02 -0000 >Number: 144332 >Category: usb >Synopsis: Kernel compile fails when aue is enabled but not other USB ethernet drivers >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 26 22:20:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Matt D. Harris >Release: RELENG_8_0 as of 2010-02-26 >Organization: >Environment: FreeBSD vesper.int 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Sat Oct 4 14:45:06 EDT 2008 root@vesper.int:/usr/obj/usr/src/sys/VESPER i386 >Description: When compiling the kernel (to upgrade to RELENG_8_0), the compile fails when the only USB ethernet driver being compiled in is aue. Since I only have an aue device, I don't normally compile in the others. Adding other USB ethernet drivers to the kernel config fixes the issue. The compile fails during linking, and the functions missing are all from sys/dev/usb/net/usb_ethernet.c which leads me to believe that for some reason aue alone just isn't enough to get it to build/link that file, but that some other USB ethernet drivers do cause it to be built and linked. >How-To-Repeat: >Fix: I believe the fix would be to ensure that sys/dev/usb/net/usb_ethernet.c is built and linked if any USB ethernet driver is configured into the kernel via the kernel conf. At least one of the USB [wired] ethernet drivers (I've enabled axe, aue, cue, kue, rue, and udav) causes it to be built and linked, however aue alone (without axe, cue, kue, rue, and udav) does not. >Release-Note: >Audit-Trail: >Unformatted: