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

Mattia Dongili malattia at linux.it
Wed Aug 13 22:19:05 UTC 2008


On Wed, Aug 13, 2008 at 06:51:25PM +0100, Graham Cobb wrote:
> Package: user-mode-linux
> Version: 2.6.24-1um-1
> Severity: minor
> 
> I was attempting to rebuild user-mode-linux from source but choosing the 
> UML-specific kernel option to link the image statically.
> 
> The build failed at the link stage with the following messages:
> 
>   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/uml-maemo-2.6.25-1um/linux-source-2.6.25/lib/string.c:304: first defined here
> arch/um/drivers/built-in.o: In function `vde_open_real':
> (.text+0x5073): 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+0x4cff): 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

can you try building 2.6.26 from unstable?
thanks
-- 
mattia
:wq!





More information about the Pkg-uml-pkgs mailing list