[Pkg-tcltk-devel] Bug#488288: Bug#488288: FTBFS: pthread_attr_t needs inclusion of pthread.h

Sergei Golovan sgolovan at nes.ru
Fri Jun 27 20:09:21 UTC 2008


On 6/27/08, Samuel Thibault <samuel.thibault at ens-lyon.org> wrote:
>
>  tcl8.5 currently FTBFS on hurd-i386 because tclUnixPort.h uses
>  pthread_attr_t without including pthead.h first. The attached patch
>  fixes that.

On Linux tclUnixPort.h doesn't include pthread.h as well. It includes
sys/types.h which includes bits/pthreadtypes.h with the necessary
declaration. On hurd-i386 the file bits/pthreadtypes.h is empty.

Is it safe to include pthread.h in Linux also? Or it's better to do
that only on hurd-i386?

BTW, this issue arised only after some recent changes in glibc. Tcl
8.5 never FTBFS on hurd-i386 before.

-- 
Sergei Golovan





More information about the Pkg-tcltk-devel mailing list