This is the mail archive of the
mailing list for the glibc project.
Re: is sysdep-cancel.h needed for any linux arch?
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Guido Guenther <agx at sigxcpu dot org>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 2 Jan 2003 16:22:56 +0100
- Subject: Re: is sysdep-cancel.h needed for any linux arch?
- References: <20030102151735.GH628@bogon.ms20.nix>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Jan 02, 2003 at 04:17:35PM +0100, Guido Guenther wrote:
> current glibc cvs fails to compile on linux mips with:
> ../linuxthreads/sysdeps/pthread/errno-loc.c: In function `__errno_location':
> ../linuxthreads/sysdeps/pthread/errno-loc.c:39: `pthread_descr' undeclared (first use in this function)
> ../linuxthreads/sysdeps/pthread/errno-loc.c:39: (Each undeclared identifier is reported only once
> ../linuxthreads/sysdeps/pthread/errno-loc.c:39: for each function it appears in.)
> ../linuxthreads/sysdeps/pthread/errno-loc.c:39: parse error before "self"
> ../linuxthreads/sysdeps/pthread/errno-loc.c:40: warning: implicit declaration of function `LIBC_THREAD_GETMEM'
> ../linuxthreads/sysdeps/pthread/errno-loc.c:40: `self' undeclared (first use in this function)
> ../linuxthreads/sysdeps/pthread/errno-loc.c:40: `p_errnop' undeclared (first use in this function)
> ../linuxthreads/sysdeps/pthread/errno-loc.c:40: warning: return makes pointer from integer without a cast
> This can be worked around by including <linuxthreads/internals.h> (which
> for other archs gets included by sysdep-cancel.h). Compilation of
> alloca_cutoff.c fails later with the same problem. So is linuxthreads/
> supposed to work at all without sysdep-cancel.h or is it a must have for
> every arch?
Yes, sysdep-cancel.h needs to be added for all arches.
Even if you succeeded to make the thing compile, it wouldn't work properly
(ie. cancellation points would not actually be cancellation points).
But it requires understanding of lots of architecture details, so
it would be best added by the respective architecture maintainers.
Will try to finish alpha, would prefer to leave the rest of arches