linux-um archives
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Antoine Martin <antoine@nagafix.co.uk>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] link failure, multiple definition of 'in6addr_any'
Date: Fri, 13 Jul 2007 12:05:00 -0400	[thread overview]
Message-ID: <20070713160500.GB7468@c2.user-mode-linux.org> (raw)
In-Reply-To: <46975C78.5010903@nagafix.co.uk>

On Fri, Jul 13, 2007 at 12:05:28PM +0100, Antoine Martin wrote:
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libc.a(in6_addr.o):(.rodata+0x0): 
> multiple definition of `in6addr_any'
> net/built-in.o:(.rodata+0x5380): first defined here
> collect2: ld returned 1 exit status

I hate to do this, but can you check the patch below?

I really need to find a way to separate the kernel and libc namespaces.

				Jeff

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

Index: linux-2.6.21-mm/arch/um/Makefile
===================================================================
--- linux-2.6.21-mm.orig/arch/um/Makefile	2007-06-28 16:11:29.000000000 -0400
+++ linux-2.6.21-mm/arch/um/Makefile	2007-07-13 11:59:21.000000000 -0400
@@ -60,7 +60,8 @@ SYS_DIR		:= $(ARCH_DIR)/include/sysdep-$
 
 CFLAGS += $(CFLAGS-y) -D__arch_um__ -DSUBARCH=\"$(SUBARCH)\"	\
 	$(ARCH_INCLUDE) $(MODE_INCLUDE) -Dvmap=kernel_vmap	\
-	-Din6addr_loopback=kernel_in6addr_loopback
+	-Din6addr_loopback=kernel_in6addr_loopback \
+	-Din6addr_any=kernel_in6addr_any
 
 AFLAGS += $(ARCH_INCLUDE)
 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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:[~2007-07-13 16:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-13 11:05 [uml-devel] link failure, multiple definition of 'in6addr_any' Antoine Martin
2007-07-13 16:05 ` Jeff Dike [this message]
2007-07-13 18:09   ` Antoine Martin
2007-07-13 18:45     ` Jeff Dike
2007-07-31 17:46       ` [uml-devel] 2.6.21.5 crashes [was link failure, multiple definition of 'in6addr_any'] Antoine Martin
2007-08-03 17:53         ` Jeff Dike
2007-08-09 12:17           ` Antoine Martin
2007-08-03 18:29         ` Jeff Dike
2007-08-07 15:21         ` Jeff Dike
2007-08-07 16:04           ` Antoine Martin
2007-08-15 14:58             ` Antoine Martin
2007-08-16 14:57               ` Antoine Martin
2007-08-22 18:59               ` 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=20070713160500.GB7468@c2.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=antoine@nagafix.co.uk \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox