On Tue, Aug 19, 2008 at 08:47:04PM +0900, Mattia Dongili wrote:
> In short statically linking the uml kernel fails with the error below.
> Any idea what may be wrong?

A symbol clash between libc and the kernel.   Try this:

Index: linux-2.6.22/arch/um/Makefile
===================================================================
--- linux-2.6.22.orig/arch/um/Makefile  2008-07-07 12:54:13.000000000 -0400
+++ linux-2.6.22/arch/um/Makefile       2008-08-26 11:56:33.000000000 -0400
@@ -75,7 +75,8 @@ include $(srctree)/$(ARCH_DIR)/Makefile-
 # defines more robust
 
 KERNEL_DEFINES = $(strip -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask 
\
-                        -Dmktime=kernel_mktime $(ARCH_KERNEL_DEFINES))
+                        -Dmktime=kernel_mktime -Dstrrchr=kernel_strrchr \
+                        $(ARCH_KERNEL_DEFINES))
 KBUILD_CFLAGS += $(KERNEL_DEFINES)
 
 PHONY += linux

                        Jeff
-- 
Work email - jdike at linux dot intel dot com



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to