Cannot share RPC handles between threads
Peter S. Mazinger
ps.m at gmx.net
Mon May 15 09:20:21 UTC 2006
On Sun, 14 May 2006, Claus Klein wrote:
> On Wednesday 03 May 2006 21:56, Peter S. Mazinger wrote:
>
> ...
>
> >Your patch won't work if UCLIBC_HAS_THREADS is not defined (__libc_once
> >undefined).
>
> Sorry, that's right. I overlooked this.
>
> >Could you also provide a test case that could be added to uClibc?
>
> Certainly. There's definitely a lack of tests.
>
> >I wonder, while you were there, why haven't you synced all of the file to
> >the glibc version (especially if it would result in a size win)?
>
> The purpose of my first posting was actually to find out why this
> hasn't been done in the first place :-)
>
> I've done it now.
>
> claus
Thanks doing it, libc_hidden_def(authnone_create) is missing, so the final
libc will miss the function.
Sadly the object is bigger, on x86 text(old 259)+52, bss(old 0)+68
For tests, it would be better to guard within .c w/
#if defined __UCLIBC_HAS_RPC__ /*for -mt && defined __UCLIBC_HAS_THREADS__*/
but I do not see how to get around LDFLAGS_... := -lpthread if threads are
disabled
Mike, any idea?
You could also use TESTS_DISABLED := rpc_svc
Peter
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
More information about the uClibc
mailing list