Hello,

Manolis Ragkousis, le Thu 15 May 2014 21:08:41 +0000, a écrit :
> I grep-searhed both glibc and libpthread and I can't find any
> declaration of thread_terminate_release anywhere in them.
> 
> Justus told me that it got recently added to gnumach.

Yes, as an RPC.  The declaration and definition
are thus generated during the glibc build into
build_tree/mach/RPC_thread_terminate_release.c and
build_tree/mach/mach/gnumach.h

> Since I am using the latest tarball version of gnumach, I patched the
> source with commit 22495036a354e209a7f2085bdd2e1fc82895208b and
> rebuilt the headers, but nothing changed.

But did you install the updated .defs file?  That's what RPC stubs are
generated from.

> So I commented the part that calls this function out and glibc gets
> built succefully with libpthread.
> >  err = __thread_terminate_release (kernel_thread, mach_task_self (),

That should be fine, yes, IIRC I left a thread_terminate call just
below, which should work enough for your needs.

Samuel

Reply via email to