From owner-freebsd-bugs@FreeBSD.ORG Wed May 16 09:30:05 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1997516A405 for ; Wed, 16 May 2007 09:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id D6B1B13C4B0 for ; Wed, 16 May 2007 09:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4G9U4dp046667 for ; Wed, 16 May 2007 09:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4G9U42b046666; Wed, 16 May 2007 09:30:04 GMT (envelope-from gnats) Resent-Date: Wed, 16 May 2007 09:30:04 GMT Resent-Message-Id: <200705160930.l4G9U42b046666@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Oliver Schonefeld Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3B81C16A402 for ; Wed, 16 May 2007 09:29:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 2B9A513C447 for ; Wed, 16 May 2007 09:29:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4G9TmKG033931 for ; Wed, 16 May 2007 09:29:48 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l4G9Ola9022461; Wed, 16 May 2007 09:24:47 GMT (envelope-from nobody) Message-Id: <200705160924.l4G9Ola9022461@www.freebsd.org> Date: Wed, 16 May 2007 09:24:47 GMT From: Oliver Schonefeld To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: kern/112706: unresovled symbols when loading uart.ko module X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 09:30:05 -0000 >Number: 112706 >Category: kern >Synopsis: unresovled symbols when loading uart.ko module >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 16 09:30:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Oliver Schonefeld >Release: 7.0-CURRENT >Organization: >Environment: FreeBSD 7.0-CURRENT-200704-ZFS FreeBSD 7.0-CURRENT-ZFS #1: Sun Apr 15 17:11:32 UTC 2007 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: The symbol serdev_ihand_desc is not found when uart(4) is loaded as module. The following can be observed in the kernel logs: [..] link_elf: symbol serdev_ihand_desc undefined KLD file uart.ko - could no finalize loading [..] >How-To-Repeat: - Boot using FreeBSD-CURRENT snapshot cd - escape to loader prompt - "load uart" - "boot" - observe kernel output >Fix: It seems this is related to the addition of scc(4). uart_bus_ihand has been added to uart_core.c and this function returns serdev_intr_t which is not built into the kernel. The attached patch helps, but it this is a rather hackish solution. Patch attached with submission follows: --- files Wed May 16 10:34:24 2007 +++ files.orig Wed May 16 10:34:23 2007 @@ -1425,7 +1425,7 @@ kern/sched_4bsd.c optional sched_4bsd kern/sched_core.c optional sched_core kern/sched_ule.c optional sched_ule -kern/serdev_if.m standard +kern/serdev_if.m optional puc | scc | uart kern/subr_acl_posix1e.c standard kern/subr_autoconf.c standard kern/subr_blist.c standard >Release-Note: >Audit-Trail: >Unformatted: