multiple definitions of setreuid and __lll_lock_wait_private

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Mon Aug 18 10:06:53 UTC 2014


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.nop at 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.petazzoni at 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!


More information about the uClibc mailing list