multiple definitions of setreuid and __lll_lock_wait_private
Vicente Olivert Riera
Vincent.Riera at imgtec.com
Tue Jun 3 10:38:46 UTC 2014
I'm trying to compile cdrkit for static and I'm getting compilation
errors due to multiple definitions of setreuid and __lll_lock_wait_private.
It works fine in a shared built.
Here are the relevant lines of the build log:
--------------------------------------
Linking C executable devdump
/home/test/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot/usr/lib/libc.a(setreuid.os):
In function `setreuid':
setreuid.c:(.text+0x0): multiple definition of `setreuid'
/home/test/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot/usr/lib/libpthread.a(pthread_setreuid.os):pthread_setreuid.c:(.text+0x0):
first defined here
collect2: error: ld returned 1 exit status
--------------------------------------
and
--------------------------------------
Linking C executable genisoimage
/home/test/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot/usr/lib/libpthread.a(lowlevellock.os):
In function `__lll_lock_wait_private':
lowlevellock.c:(.text+0x0): multiple definition of `__lll_lock_wait_private'
/home/test/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot/usr/lib/libc.a(libc-lowlevellock.os):libc-lowlevellock.c:(.text+0x0):
first defined here
collect2: error: ld returned 1 exit status
--------------------------------------
Full build log: http://www.pastebin.ca/2792067
Distribution: BuildRoot
Platform: MIPS32 LittleEndian
--
Vincent
More information about the uClibc
mailing list