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: PATCH: Fix build on alpha and mips


Thank you vey much. Do you know how long it takes to get these patches into
CVS?
regards
matt

-----Original Message-----
From: libc-alpha-owner@sources.redhat.com
[mailto:libc-alpha-owner@sources.redhat.com]On Behalf Of H . J . Lu
Sent: Monday, April 15, 2002 8:13 PM
To: GNU C Library
Subject: PATCH: Fix build on alpha and mips


Here is a patch I used to build on alpha and mips. BTW, I got quite
a few "make check" failures on alpha:

make[3]: ***
[/export/build/gnu/glibc/build-alpha-linux/math/test-double.out]
Error 1
make[3]: ***
[/export/build/gnu/glibc/build-alpha-linux/math/test-ifloat.out]
Error 1
make[3]: ***
[/export/build/gnu/glibc/build-alpha-linux/math/test-idouble.out]
Error 1
make[2]: *** [math/tests] Error 2
make[3]: *** [/export/build/gnu/glibc/build-alpha-linux/misc/tst-efgcvt.out]
Error 40


H.J.
----
2002-04-15  H.J. Lu  <hjl@gnu.org>

	* include/math.h (__finitel_internal): Declare only if
	__NO_LONG_DOUBLE_MATH is not defined.
	(__isinfl_internal): Likewise.
	(__isnanl_internal): Likewise.

	* sysdeps/unix/sysv/linux/alpha/syscalls.list: Add
	__connect_internal.
	* sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
	* sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
	* sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.

	* sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
	__fcntl_internal.

	* sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
	* sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.

--- libc/include/math.h.internal	Mon Apr 15 09:43:10 2002
+++ libc/include/math.h	Mon Apr 15 11:27:17 2002
@@ -9,17 +9,21 @@ extern int __finite_internal (double __v
      __attribute__ ((__const__)) attribute_hidden;
 extern int __finitef_internal (float __value)
      __attribute__ ((__const__)) attribute_hidden;
-extern int __finitel_internal (long double __value)
-     __attribute__ ((__const__)) attribute_hidden;

 extern int __isinf_internal (double __value)
      __attribute__ ((__const__)) attribute_hidden;
-extern int __isinfl_internal (long double __value)
-     __attribute__ ((__const__)) attribute_hidden;
 extern int __isnan_internal (double __value)
      __attribute__ ((__const__)) attribute_hidden;
+
+#ifndef __NO_LONG_DOUBLE_MATH
+extern int __finitel_internal (long double __value)
+     __attribute__ ((__const__)) attribute_hidden;
+
+extern int __isinfl_internal (long double __value)
+     __attribute__ ((__const__)) attribute_hidden;
 extern int __isnanl_internal (long double __value)
      __attribute__ ((__const__)) attribute_hidden;
+#endif

 #if !defined NOT_IN_libc || defined IS_IN_libm
 # undef isfinite
--- libc/sysdeps/unix/sysv/linux/alpha/syscalls.list.internal	Fri Feb 16
10:12:10 2001
+++ libc/sysdeps/unix/sysv/linux/alpha/syscalls.list	Mon Apr 15 10:31:35
2002
@@ -36,7 +36,7 @@ sys_mknod	xmknod	mknod		3	__syscall_mkno
 # proper socket implementations:
 accept		-	accept		3	__libc_accept	__accept accept
 bind		-	bind		3	__bind		bind
-connect		-	connect		3	__libc_connect	__connect connect
+connect		-	connect		3	__libc_connect	__connect_internal __connect connect
 getpeername	-	getpeername	3	__getpeername	getpeername
 getsockname	-	getsockname	3	__getsockname	getsockname
 getsockopt	-	getsockopt	5	__getsockopt	getsockopt
--- libc/sysdeps/unix/sysv/linux/fxstat.c.internal	Sun Apr 14 09:48:18 2002
+++ libc/sysdeps/unix/sysv/linux/fxstat.c	Mon Apr 15 12:24:07 2002
@@ -20,9 +20,11 @@
 /* Ho hum, if xstat == xstat64 we must get rid of the prototype or gcc
    will complain since they don't strictly match.  */
 #define __fxstat64 __fxstat64_disable
+#define __fxstat64_internal __fxstat64_internal_disable

 #include <errno.h>
 #include <stddef.h>
+#include <sys/types.h>
 #include <sys/stat.h>
 #include <kernel_stat.h>

@@ -57,6 +59,7 @@ INTDEF(__fxstat)
 weak_alias (__fxstat, _fxstat);
 #ifdef XSTAT_IS_XSTAT64
 #undef __fxstat64
+#undef __fxstat64_internal
 strong_alias (__fxstat, __fxstat64);
 INTDEF(__fxstat64)
 #endif
--- libc/sysdeps/unix/sysv/linux/hppa/syscalls.list.internal	Thu Jun  7
14:01:58 2001
+++ libc/sysdeps/unix/sysv/linux/hppa/syscalls.list	Mon Apr 15 10:31:10 2002
@@ -16,7 +16,7 @@ semctl		-	semctl		i:iiii	__semctl	semctl
 # proper socket implementations:
 accept		-	accept		i:iBN	__libc_accept	__accept accept
 bind		-	bind		i:ipi	__bind		bind
-connect		-	connect		i:ipi	__libc_connect	__connect connect
+connect		-	connect		i:ipi	__libc_connect	__connect_internal __connect
connect
 getpeername	-	getpeername	i:ipp	__getpeername	getpeername
 getsockname	-	getsockname	i:ipp	__getsockname	getsockname
 getsockopt	-	getsockopt	i:iiiBN	__getsockopt	getsockopt
--- libc/sysdeps/unix/sysv/linux/ia64/syscalls.list.internal	Fri Apr 27
21:25:21 2001
+++ libc/sysdeps/unix/sysv/linux/ia64/syscalls.list	Mon Apr 15 10:31:47 2002
@@ -32,7 +32,7 @@ semctl		-	semctl		i:iiii	__semctl	semctl
 # proper socket implementations:
 accept		-	accept		i:iBN	__libc_accept	__accept accept
 bind		-	bind		i:ipi	__bind		bind
-connect		-	connect		i:ipi	__libc_connect	__connect connect
+connect		-	connect		i:ipi	__libc_connect	__connect_internal __connect
connect
 getpeername	-	getpeername	i:ipp	__getpeername	getpeername
 getsockname	-	getsockname	i:ipp	__getsockname	getsockname
 getsockopt	-	getsockopt	i:iiiBN	__getsockopt	getsockopt
--- libc/sysdeps/unix/sysv/linux/lxstat.c.internal	Mon Apr 15 09:44:03 2002
+++ libc/sysdeps/unix/sysv/linux/lxstat.c	Mon Apr 15 12:43:34 2002
@@ -20,6 +20,7 @@
 /* Ho hum, if xstat == xstat64 we must get rid of the prototype or gcc
    will complain since they don't strictly match.  */
 #define __lxstat64 __lxstat64_disable
+#define __lxstat64_internal __lxstat64_internal_disable

 #include <errno.h>
 #include <stddef.h>
@@ -59,6 +60,7 @@ INTDEF(__lxstat)
 weak_alias (__lxstat, _lxstat);
 #ifdef XSTAT_IS_XSTAT64
 #undef __lxstat64
-INTDEF(__lxstat64)
+#undef __lxstat64_internal
 strong_alias (__lxstat, __lxstat64);
+INTDEF(__lxstat64)
 #endif
--- libc/sysdeps/unix/sysv/linux/mips/syscalls.list.internal	Sun May 27
13:21:00 2001
+++ libc/sysdeps/unix/sysv/linux/mips/syscalls.list	Mon Apr 15 10:31:54 2002
@@ -16,7 +16,7 @@ s_sigsuspend	sigsuspend sigsuspend	i:p	_
 #
 accept		-	accept		i:iBN	__libc_accept	__accept accept
 bind		-	bind		i:ipi	__bind		bind
-connect		-	connect		i:ipi	__libc_connect	__connect connect
+connect		-	connect		i:ipi	__libc_connect	__connect_internal __connect
connect
 getpeername	-	getpeername	i:ipp	__getpeername	getpeername
 getsockname	-	getsockname	i:ipp	__getsockname	getsockname
 getsockopt	-	getsockopt	i:iiiBN	__getsockopt	getsockopt
--- libc/sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list.internal	Fri Mar
22 08:59:14 2002
+++ libc/sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list	Mon Apr 15
10:32:03 2002
@@ -27,7 +27,7 @@ semctl		-	semctl		i:iiii	__semctl	semctl
 # proper socket implementations:
 accept		-	accept		i:iBN	__libc_accept	__accept accept
 bind		-	bind		i:ipi	__bind		bind
-connect		-	connect		i:ipi	__libc_connect	__connect connect
+connect		-	connect		i:ipi	__libc_connect	__connect_internal __connect
connect
 getpeername	-	getpeername	i:ipp	__getpeername	getpeername
 getsockname	-	getsockname	i:ipp	__getsockname	getsockname
 getsockopt	-	getsockopt	i:iiiBN	__getsockopt	getsockopt
--- libc/sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list.internal	Fri
Feb 16 10:12:11 2001
+++ libc/sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list	Mon Apr 15
10:32:10 2002
@@ -16,7 +16,7 @@ mmap		-	mmap		6	__mmap		mmap __mmap64 mm
 select		-	select		5	__select	select
 accept		-	accept		3	__libc_accept	__accept accept
 bind		-	bind		3	__bind		bind
-connect		-	connect		3	__libc_connect	__connect connect
+connect		-	connect		3	__libc_connect	__connect_internal __connect connect
 getpeername	-	getpeername	3	__getpeername	getpeername
 getsockname	-	getsockname	3	__getsockname	getsockname
 getsockopt	-	getsockopt	5	__getsockopt	getsockopt
--- libc/sysdeps/unix/sysv/linux/syscalls.list.internal	Sun Apr 14 09:48:18
2002
+++ libc/sysdeps/unix/sysv/linux/syscalls.list	Mon Apr 15 09:55:11 2002
@@ -60,3 +60,6 @@ swapon		-	swapon		i:si	__swapon	swapon
 swapoff		-	swapoff		i:s	__swapoff	swapoff
 uselib		EXTRA	uselib		i:s	uselib
 wait4		-	wait4		i:iWiP	__wait4		wait4
+
+chown		-	chown		i:sii	__chown_internal __chown chown
+fcntl		-	fcntl		i:iiF	__libc_fcntl	__fcntl_internal __fcntl fcntl
--- libc/sysdeps/unix/sysv/linux/x86_64/syscalls.list.internal	Thu Apr  4
09:13:40 2002
+++ libc/sysdeps/unix/sysv/linux/x86_64/syscalls.list	Mon Apr 15 10:32:18
2002
@@ -32,7 +32,7 @@ semctl		-	semctl		i:iiii	__semctl	semctl
 # proper socket implementations:
 accept		-	accept		i:iBN	__libc_accept	__accept accept
 bind		-	bind		i:ipi	__bind		bind
-connect		-	connect		i:ipi	__libc_connect	__connect connect
+connect		-	connect		i:ipi	__libc_connect	__connect_internal __connect
connect
 getpeername	-	getpeername	i:ipp	__getpeername	getpeername
 getsockname	-	getsockname	i:ipp	__getsockname	getsockname
 getsockopt	-	getsockopt	i:iiiBN	__getsockopt	getsockopt


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