Date: Wed, 16 May 2007 09:24:47 GMT From: Oliver Schonefeld<oschonef@techfak.uni-bielefeld.de> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/112706: unresovled symbols when loading uart.ko module Message-ID: <200705160924.l4G9Ola9022461@www.freebsd.org> Resent-Message-ID: <200705160930.l4G9U42b046666@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705160924.l4G9Ola9022461>