Subject: kern/34478: modload compat_linux.o fail
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <tnozaki@NetBSD.org>
List: netbsd-bugs
Date: 09/05/2006 17:15:00
>Number:         34478
>Category:       kern
>Synopsis:       modload compat_linux.o fail
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 05 17:15:00 +0000 2006
>Originator:     Takehiko NOZAKI
>Release:        NetBSD 4.99.1 i386
>Organization:
>Environment:
NetBSD spooky.example.com 4.99.1 NetBSD 4.99.1 (SPOOKY) #0: Sat Sep  2 22:19:27 JST 2006  NetBSD spooky.example.com 4.99.1 NetBSD 4.99.1 (SPOOKY) #0: Sat Sep  2 22:19:27 JST 2006  root@spooky.example.com:/usr/src/sys/arch/i386/compile/obj/SPOOKY i386

>Description:
modload compat_linux.o fail with following message:

# modload /usr/lkm/compat_linux.o
/usr/lkm/compat_linux.o: In function `linux_sys_ptrace':
: undefined reference to `linux_sys_ptrace_arch'
modload: can't prelink `/usr/lkm/compat_linux.o' creating `/usr/lkm/compat_linux'
>How-To-Repeat:
$ nm /usr/lkm/compat_linux.o | grep linux_sys_ptrace_arch
         U linux_sys_ptrace_arch
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/src/sys/lkm/compat/linux/Makefile,v
retrieving revision 1.28
diff -u -r1.28 Makefile
--- Makefile	31 Aug 2006 14:00:29 -0000	1.28
+++ Makefile	2 Sep 2006 13:44:16 -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 linux_mtio.c
+SRCS+=	linux_sg.c linux_mtio.c linux_ptrace.c
 
 # XXXX - temporary, not applicable for kernel with COMPAT_43, OSSAUDIO
 #.PATH: $S/compat/common $S/compat/ossaudio