[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
implicit declaration of function 'thread_terminate_release'
From: |
Manolis Ragkousis |
Subject: |
implicit declaration of function 'thread_terminate_release' |
Date: |
Thu, 15 May 2014 21:08:41 +0000 |
When you try to build libpthread, you get message:
> ../libpthread/sysdeps/mach/pt-thread-terminate.c: In function
> '__pthread_thread_terminate':
> ../libpthread/sysdeps/mach/pt-thread-terminate.c:73:3: warning: implicit
> declaration of function 'thread_terminate_release'
> [-Wimplicit-function-declaration]
> err = __thread_terminate_release (kernel_thread, mach_task_self (),
> ^
and the error:
> /tmp/.../build/libpthread/libpthread_pic.a(pt-thread-terminate.os): In
> function `__pthread_thread_terminate':
>
> /tmp/.../glibc-hurd-2.18/libpthread/../libpthread/sysdeps/mach/pt-thread-terminate.c:73:
> undefined reference to `thread_terminate_release'
> collect2: error: ld returned 1 exit status
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.
Since I am using the latest tarball version of gnumach, I patched the
source with commit 22495036a354e209a7f2085bdd2e1fc82895208b and
rebuilt the headers, but nothing changed.
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 (),
libpthread/sysdeps/mach/pt-thread-terminate.c is the only place that
this function appears.
So my questions are, why there is no declaration for it anywhere in
libpthread and what should I do?
I am sending you the build.log so you can have a look for youself.
9hqvz8kdjrxbqmy22gddfjd7vjiw50-glibc-hurd-cross-i686-pc-gnu-2.18.drv.bz2
Description: BZip2 compressed data
- implicit declaration of function 'thread_terminate_release',
Manolis Ragkousis <=