From nobody@FreeBSD.org  Wed May 16 09:29:49 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 3B81C16A402
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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<oschonef@techfak.uni-bielefeld.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: unresovled symbols when loading uart.ko module
X-Send-Pr-Version: www-3.0

>Number:         112706
>Category:       kern
>Synopsis:       unresovled symbols when loading uart.ko module
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    marcel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 16 09:30:04 GMT 2007
>Closed-Date:    Sat Nov 22 20:57:57 UTC 2008
>Last-Modified:  Sat Nov 22 20:57:57 UTC 2008
>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:
Responsible-Changed-From-To: freebsd-bugs->marcel 
Responsible-Changed-By: remko 
Responsible-Changed-When: Wed May 16 14:18:23 UTC 2007 
Responsible-Changed-Why:  
Reassign to Marcel who had been working on uart lately (as far as i remember) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=112706 
State-Changed-From-To: open->patched 
State-Changed-By: marcel 
State-Changed-When: Thu May 17 01:31:32 UTC 2007 
State-Changed-Why:  
Fixed in -CURRENT. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=112706 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/112706: commit references a PR
Date: Thu, 17 May 2007 01:30:15 +0000 (UTC)

 marcel      2007-05-17 01:29:55 UTC
 
   FreeBSD src repository
 
   Modified files:
     sys/conf             files 
   Log:
   Make the serdev I/F non-optional. At least 3 drivers depend on it
   and they can be loaded as a module.
   
   PR: kern/112706
   
   Revision  Changes    Path
   1.1209    +1 -1      src/sys/conf/files
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: Gavin Atkinson <gavin@FreeBSD.org>
To: marcel@FreeBSD.org
Cc: bug-followup@FreeBSD.org
Subject: kern/112706: unresovled symbols when loading uart.ko module
Date: Sun, 1 Jun 2008 17:19:06 +0100 (BST)

 Hi Marcel,
 
 As far as I can tell, this PR can be closed, as it is fixed in 7.0 and 
 HEAD, and the serdev interface doesn't appear to be in 6.x.  Am I correct?
 
 Thanks!
 
 Gavin
State-Changed-From-To: patched->closed 
State-Changed-By: marcel 
State-Changed-When: Sat Nov 22 20:56:57 UTC 2008 
State-Changed-Why:  
This has been fixed a while back. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=112706 
>Unformatted:
