All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Mattia Dongili <malattia@linux.it>
Cc: 494995@bugs.debian.org,
	UML-devel <user-mode-linux-devel@lists.sourceforge.net>,
	Graham Cobb <graham@cobb.uk.net>
Subject: Re: [uml-devel] Bug#494995: user-mode-linux: static build fails	with multiple definition of `strrchr'
Date: Tue, 26 Aug 2008 16:20:12 -0400	[thread overview]
Message-ID: <20080826202012.GF24342@c2.user-mode-linux.org> (raw)
In-Reply-To: <20080819114704.GB7425@inferi.kami.home>

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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2008-08-26 20:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080813175125.19829.80844.reportbug@carrera.home.cobb.me.uk>
     [not found] ` <20080813221905.GA16104@inferi.kami.home>
     [not found]   ` <200808140936.50696.graham@cobb.uk.net>
     [not found]     ` <20080814113619.GA21758@inferi.kami.home>
2008-08-19 11:47       ` [uml-devel] Bug#494995: user-mode-linux: static build fails with multiple definition of `strrchr' Mattia Dongili
2008-08-26 20:20         ` Jeff Dike [this message]
2008-08-27  8:04           ` Graham Cobb
2008-08-27 15:01             ` Jeff Dike

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080826202012.GF24342@c2.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=494995@bugs.debian.org \
    --cc=graham@cobb.uk.net \
    --cc=malattia@linux.it \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.