This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
cris build error with glibc-2.3.2: errno-loc.c:39: error: `pthread_descr'undeclared
- From: Dan Kegel <dank at kegel dot com>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: libc-alpha at sources dot redhat dot com, Uwe_Reimann at gmx dot net
- Date: Sun, 15 Jun 2003 15:57:07 -0700
- Subject: cris build error with glibc-2.3.2: errno-loc.c:39: error: `pthread_descr'undeclared
- References: <200306121430.h5CEUlmT016443@ignucius.se.axis.com>
Hi Hans-Peter,
I've successfully built a gcc-3.2.3/glibc-2.2.5 toolchain for cris
(with the build script at http://kegel.com/crosstool), but building
glibc-2.3.2 with gcc-3.3 fails with
../linuxthreads/sysdeps/pthread/errno-loc.c: In function `__errno_location':
../linuxthreads/sysdeps/pthread/errno-loc.c:39: error: `pthread_descr' undeclared (first use in this function)
../linuxthreads/sysdeps/pthread/errno-loc.c:39: error: 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: error: `self' undeclared (first use in this function)
../linuxthreads/sysdeps/pthread/errno-loc.c:40: error: `p_errnop' undeclared (first use in this function)
../linuxthreads/sysdeps/pthread/errno-loc.c:40: warning: return makes pointer from integer without a cast
make[2]: *** [/build/cris-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/build-glibc/csu/errno-loc.o] Error 1
According to http://sources.redhat.com/ml/libc-alpha/2003-01/msg00008.html
this implies the port maintainer needs to write
linuxthreads/sysdeps/unix/sysv/linux/cris/sysdep-cancel.h
As the maintainer :-), do you have that file, or some other workaround?
I searched a bit on the net, and didn't see anything.
Thanks,
Dan
--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045