Multiple definition of vfork() when linking statically

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Aug 30 09:22:40 UTC 2014


Hello,

On Fri, 29 Aug 2014 15:14:30 +0200, Thomas Petazzoni wrote:

> This happens with uClibc 0.9.33.2 + the set of patches visible at
> http://git.buildroot.net/buildroot/tree/package/uclibc/0.9.33.2?id=2014.05-rc1.

The exact same problem can be reproduced with the latest uClibc master
(git commit 88041f133f06d81a9bf6c72fc6e41a604eddf4b8).

aserver.o: In function `pcm_shm_cmd':
aserver.c:(.text+0x18cc): warning: 
aserver.o: In function `main':
aserver.c:(.text.startup+0x44c): warning: gethostbyname is obsolescent, use getnameinfo() instead.
/home/test/outputs/uclibc/host/usr/powerpc-buildroot-linux-uclibc/sysroot/usr/lib/libc.a(vfork.os): In function `__GI_vfork':
(.text+0x0): multiple definition of `__vfork'
/home/test/outputs/uclibc/host/usr/powerpc-buildroot-linux-uclibc/sysroot/usr/lib/libpthread.a(pt-vfork.os):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status

It's worth mentioning that apparently, ARM is not affected by the
problem, but at least SuperH, PowerPC, x86 and x86-64 are affected.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the uClibc mailing list