kern/112706: unresovled symbols when loading uart.ko module
Oliver Schonefeld
oschonef at techfak.uni-bielefeld.de
Wed May 16 09:30:05 UTC 2007
>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 at 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:
More information about the freebsd-bugs
mailing list