Dear all,

On 08/18/2014 11:06 AM, Bernhard Reutner-Fischer wrote:
On Fri, Jul 25, 2014 at 02:10:00PM +0800, Tony Wu wrote:
On Fri, Jul 25, 2014 at 4:18 AM, Bernhard Reutner-Fischer
<rep.dot....@gmail.com> wrote:
On Mon, Jun 30, 2014 at 02:56:37PM +0800, Tony Wu wrote:
On Sat, Jun 28, 2014 at 3:52 AM, Thomas Petazzoni
<thomas.petazz...@free-electrons.com> wrote:
Hello all,

Any feedback on the problem reported by Vicente? We're having this
problem regularly in Buildroot with various symbols when linking
statically. It would be good to have some input on how to fix the
problem.

Thanks,

Thomas


Attached please find the workaround we currently use. We simply mark
non-pthread __lll_lock_wait_private weak, so it wont interfere with
the one in pthread under static link mode.

Well ok, not entirely happy but for static linking i do not immediately
see a better way to handle that.
Can you please use weak_alias (or suitable construct, see
include/cancel.h for explanations) and fix all arches, not just arm?

Rewrote using weak_function, and hopefully fixed for all arches.
Please see attachment.

Applied, thanks!

not all arches were fixed. MIPS and PowerPC still failing:

--------------------------------------------------
[ 51%] Built target usal
make[3]: Entering directory `/br/output/build/cdrkit-1.1.11'
make[3]: Leaving directory `/br/output/build/cdrkit-1.1.11'
make[3]: Entering directory `/br/output/build/cdrkit-1.1.11'
Linking C executable devdump
/br/output/host/usr/powerpc-buildroot-linux-uclibc/sysroot/usr/lib/libc.a(setreuid.os): In function `setreuid':
setreuid.c:(.text+0x0): multiple definition of `setreuid'
/br/output/host/usr/powerpc-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
make[3]: *** [genisoimage/devdump] Error 1
--------------------------------------------------

Best regards,
--
Vicente Olivert Riera
Graduate Software Engineer, MIPS Processor IP
Imagination Technologies Limited
t: +44 (0)113 2429814
www.imgtec.com
_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to