This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: is sysdep-cancel.h needed for any linux arch?


On Thu, Jan 02, 2003 at 04:17:35PM +0100, Guido Guenther wrote:
> Hi,
> 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
to others.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]