This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
PATCH: Fix errlist for mips
- From: "H. J. Lu" <hjl at lucon dot org>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>,linux-mips at linux-mips dot org
- Cc: roland at redhat dot com
- Date: Sun, 20 Oct 2002 17:23:31 -0700
- Subject: PATCH: Fix errlist for mips
- References: <20021020164347.A19629@lucon.org>
On Sun, Oct 20, 2002 at 04:43:47PM -0700, H. J. Lu wrote:
> sysdeps/gnu/errlist-compat.awk can't handle holes in errno at all. I
> got
>
> *** errlist.c count 125 vs Versions sys_errlist@GLIBC_2.1 count 1134
>
I was wrong on that. The real problem is sysdeps/unix/sysv/linux/configure.in
doesn't check cross compile.
> I don't believe Linux/mips need GLIBC_2.3 for _sys_errlist, sys_errlist,
> _sys_nerr and sys_nerr.
I think it is true.
Here is a patch for both.
H.J.
----
2002-10-20 H.J. Lu <hjl@gnu.org>
* sysdeps/unix/sysv/linux/configure.in: Don't check
/lib/modules/`uname -r`/build/include for kernel headers if
cross compiling.
* sysdeps/unix/sysv/linux/configure.in: Rebuild.
* sysdeps/unix/sysv/linux/mips/Versions: Remove _sys_errlist,
sys_errlist, _sys_nerr and sys_nerr from GLIBC_2.3. Fix
#errlist-compat for GLIBC_2.0.
--- sysdeps/unix/sysv/linux/configure.in.errlist Sat Sep 28 14:31:34 2002
+++ sysdeps/unix/sysv/linux/configure.in Sun Oct 20 17:03:49 2002
@@ -6,6 +6,7 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the
# /lib/modules/$(uname -r)/build/include
# Check whether this directory is available.
if test -z "$sysheaders" &&
+ test $cross_compiling" = no &&
test -d /lib/modules/`uname -r`/build/include; then
sysheaders="/lib/modules/`uname -r`/build/include"
ccheaders=`$CC -print-file-name=include`
--- sysdeps/unix/sysv/linux/mips/Versions.errlist Thu Aug 29 00:18:51 2002
+++ sysdeps/unix/sysv/linux/mips/Versions Sun Oct 20 16:38:47 2002
@@ -5,7 +5,7 @@ libc {
# for all GNU/Linux configurations.
GLIBC_2.0 {
- #errlist-compat 1134
+ #errlist-compat 123
_sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
# Exception handling support functions from libgcc
@@ -29,8 +29,4 @@ libc {
# _*
_test_and_set;
}
- GLIBC_2.3 {
- #errlist-compat 1134
- _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
- }
}