kern/112706: unresovled symbols when loading uart.ko module

Oliver Schonefeld oschonef at
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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 16 09:30:04 GMT 2007
>Originator:     Oliver Schonefeld
>Release:        7.0-CURRENT
FreeBSD 7.0-CURRENT-200704-ZFS FreeBSD 7.0-CURRENT-ZFS #1: Sun Apr 15 17:11:32 UTC 2007 root at i386
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

- Boot using FreeBSD-CURRENT snapshot cd
- escape to loader prompt
- "load uart"
- "boot"
- observe kernel output

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


More information about the freebsd-bugs mailing list