* [uml-devel] Bug#494995: user-mode-linux: static build fails with multiple definition of `strrchr' [not found] ` <20080814113619.GA21758@inferi.kami.home> @ 2008-08-19 11:47 ` Mattia Dongili 2008-08-26 20:20 ` Jeff Dike 0 siblings, 1 reply; 4+ messages in thread From: Mattia Dongili @ 2008-08-19 11:47 UTC (permalink / raw) To: UML-devel; +Cc: 494995, Graham Cobb Hi Jeff, I received this bug report in the Debian BTS (submitter and bug Cc-ed). The full bug report hisory is here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494995 and the .config from the submitter here: http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=25;filename=config.i386.gz;att=1;bug=494995 In short statically linking the uml kernel fails with the error below. Any idea what may be wrong? On Thu, Aug 14, 2008 at 08:36:19PM +0900, Mattia Dongili wrote: > On Thu, Aug 14, 2008 at 09:36:49AM +0100, Graham Cobb wrote: > > On Wednesday 13 August 2008 23:19:05 Mattia Dongili wrote: > > > can you try building 2.6.26 from unstable? > > > > Exactly the same problem: > > > > LD init/built-in.o > > LD .tmp_vmlinux1 > > /usr/lib/gcc/i486-linux-gnu/4.3.1/../../../../lib/libc.a(strrchr.o): In > > function `rindex': > > (.text+0x0): multiple definition of `strrchr' > > lib/lib.a(string.o):/home/cobb/share/qemu/my-uml-32/user-mode-linux-2.6.26-1um/linux-source-2.6.26/lib/string.c:304: > > first defined here > > arch/um/drivers/built-in.o: In function `vde_open_real': > > (.text+0x5023): warning: Using 'getgrnam' in statically linked applications > > requires at runtime the shared libraries from the glibc version used for > > linking > > arch/um/drivers/built-in.o: In function `vde_open_real': > > (.text+0x4caf): warning: Using 'getpwuid' in statically linked applications > > requires at runtime the shared libraries from the glibc version used for > > linking > > collect2: ld returned 1 exit status > > KSYM .tmp_kallsyms1.S > > nm: '.tmp_vmlinux1': No such file > > No valid symbol. > > make[1]: *** [.tmp_kallsyms1.S] Error 1 > > Sorry I didn't ask for this before, but can you attach your .config? > Also, are you using make-kpkg, or are you rebuilding the binary package > from the source (i.e.: using dpkg-buildpackage)? Or are you just using > plain make? > > thanks > -- > mattia > :wq! > > > > -- mattia :wq! ------------------------------------------------------------------------- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] Bug#494995: user-mode-linux: static build fails with multiple definition of `strrchr' 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 2008-08-27 8:04 ` Graham Cobb 0 siblings, 1 reply; 4+ messages in thread From: Jeff Dike @ 2008-08-26 20:20 UTC (permalink / raw) To: Mattia Dongili; +Cc: 494995, UML-devel, Graham Cobb 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] Bug#494995: user-mode-linux: static build fails with multiple definition of `strrchr' 2008-08-26 20:20 ` Jeff Dike @ 2008-08-27 8:04 ` Graham Cobb 2008-08-27 15:01 ` Jeff Dike 0 siblings, 1 reply; 4+ messages in thread From: Graham Cobb @ 2008-08-27 8:04 UTC (permalink / raw) To: Jeff Dike; +Cc: Mattia Dongili, 494995, UML-devel On Tuesday 26 August 2008 21:20:12 Jeff Dike wrote: > A symbol clash between libc and the kernel. Try this: >... The patch itself didn't apply for me (probably because I copy/paste'd it from the email) but making the change by hand to the Makefile worked and fixed the problem. ------------------------------------------------------------------------- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] Bug#494995: user-mode-linux: static build fails with multiple definition of `strrchr' 2008-08-27 8:04 ` Graham Cobb @ 2008-08-27 15:01 ` Jeff Dike 0 siblings, 0 replies; 4+ messages in thread From: Jeff Dike @ 2008-08-27 15:01 UTC (permalink / raw) To: Graham Cobb; +Cc: Mattia Dongili, 494995, UML-devel On Wed, Aug 27, 2008 at 09:04:29AM +0100, Graham Cobb wrote: > On Tuesday 26 August 2008 21:20:12 Jeff Dike wrote: > > A symbol clash between libc and the kernel. Try this: > >... > > The patch itself didn't apply for me (probably because I copy/paste'd it from > the email) but making the change by hand to the Makefile worked and fixed the > problem. Great, thanks for the testing. 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-27 15:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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
2008-08-27 8:04 ` Graham Cobb
2008-08-27 15:01 ` Jeff Dike
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.