Subject: kern/29630: undefined symbols 'linux_ioctl_mtio' in /usr/lkm/compat_linux.o
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <tnozaki@NetBSD.org>
List: netbsd-bugs
Date: 03/08/2005 15:08:00
>Number:         29630
>Category:       kern
>Synopsis:       undefined symbols 'linux_ioctl_mtio' in /usr/lkm/compat_linux.o
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 08 15:08:00 +0000 2005
>Originator:     Takehiko NOZAKI
>Release:        2.99.16
>Organization:
>Environment:
NetBSD xxx.example.jp 2.99.16 NetBSD 2.99.16 (XXX) #0: Mon Mar 7 14:39:02 JST 2005 tnozaki@xxx.example.jp:/usr/src/sys/arch/i386/compile/XXX i386
>Description:
undefined symbols 'linux_ioctl_mtio' in /usr/lkm/compat_linux.o.
see section `Fix to the problem', thanks.
>How-To-Repeat:
nm /usr/lkm/compat_linux.o | grep linux_ioctl_mtio

>Fix:
Index: sys/lkm/compat/linux/Makefile
===================================================================
RCS file: /cvsroot/src/sys/lkm/compat/linux/Makefile,v
retrieving revision 1.24
diff -u -r1.24 Makefile
--- sys/lkm/compat/linux/Makefile	10 Feb 2005 17:37:35 -0000	1.24
+++ sys/lkm/compat/linux/Makefile	7 Mar 2005 05:50:15 -0000
@@ -22,7 +22,7 @@
 	linux_socket.c linux_termios.c linux_time.c linux_uselib.c
 SRCS+=	linux_machdep.c linux_syscalls.c linux_sysent.c
 SRCS+=	linux_fdio.c linux_hdio.c linux_blkio.c linux_sysctl.c
-SRCS+=	linux_sg.c
+SRCS+=	linux_sg.c linux_mtio.c
 
 # XXXX - temporary, not applicable for kernel with COMPAT_43, OSSAUDIO
 #.PATH: $S/compat/common $S/compat/ossaudio