[Pkg-uml-pkgs] Bug#494995: [uml-devel] Bug#494995: user-mode-linux: static build fails with multiple definition of `strrchr'

Jeff Dike jdike at addtoit.com
Tue Aug 26 20:20:12 UTC 2008


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





More information about the Pkg-uml-pkgs mailing list