Re: [uml-devel] [RESEND][REGRESSION] um: CONFIG_STATIC_LINK=ybroken

From: Mattia Dongili
Date: Fri Jun 18 2010 - 11:44:51 EST


On Fri, Jun 18, 2010 at 04:27:31PM +0200, Geert Uytterhoeven wrote:
> On Fri, Jun 18, 2010 at 15:49, richard -rw- weinberger
> <richard.weinberger@xxxxxxxxx> wrote:
> > Andrew, Linus, Jeff, ... anyone?
> > Please apply this patch.
> >
> > CONFIG_STATIC_LINK is still broken. :(
>
> I wanted to verify Tim's patch, but after enabling CONFIG_STATIC_LINK,
> it fails to link
> (with or without your patch):

I had this patch applied to the debian package for quite some time:

it came from Jeff initially, but it's definitely unrelated....

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494995
Fix symbol clash between libc and the kernel.

Index: linux-source-2.6.30/arch/um/Makefile
===================================================================
--- linux-source-2.6.30.orig/arch/um/Makefile 2009-07-07 21:18:57.964418085 +0900
+++ linux-source-2.6.30/arch/um/Makefile 2009-07-07 21:19:34.828766443 +0900
@@ -66,7 +66,8 @@
# 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

--
mattia
:wq!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/