This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

[PATCH] Fix sparc64 build


Hi!

sparc64 doesn't have jmpbuf-offsets.h (and doesn't need them, uses
a struct instead).
The i386/fxstatat.c fixes
/usr/src/redhat/BUILD/libc2/obj2/libc_pic.os: In function `fstatat64':
../io/sys/stat.h:507: undefined reference to `__GI___fxstatat64'
and the linux/fxstatat.c change is the same thing.  __fxstatat64
that has libc_hidden_proto on it is redefined throughout the file
to a different name, so libc_hidden_ver rather than libc_hidden_def
is needed.

2006-01-31  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/i386/fxstatat.c [XSTAT_IS_STAT64]
	(__fxstatat64): Add libc_hidden_ver.
	* sysdeps/unix/sysv/linux/fxstatat.c [XSTAT_IS_STAT64] (__fxstatat64):
	Likewise.
	* sysdeps/sparc/sparc64/jmpbuf-unwind.h: Remove jmpbuf-offsets.h
	include.

--- libc/sysdeps/unix/sysv/linux/i386/fxstatat.c.jj	2006-01-11 10:55:32.000000000 -0500
+++ libc/sysdeps/unix/sysv/linux/i386/fxstatat.c	2006-01-31 16:56:54.000000000 -0500
@@ -149,4 +149,5 @@ __fxstatat (int vers, int fd, const char
 #ifdef XSTAT_IS_XSTAT64
 # undef __fxstatat64
 strong_alias (__fxstatat, __fxstatat64);
+libc_hidden_ver (__fxstatat, __fxstatat64)
 #endif
--- libc/sysdeps/unix/sysv/linux/fxstatat.c.jj	2006-01-19 02:58:06.000000000 -0500
+++ libc/sysdeps/unix/sysv/linux/fxstatat.c	2006-01-31 17:03:57.000000000 -0500
@@ -105,4 +105,5 @@ __fxstatat (int vers, int fd, const char
 #ifdef XSTAT_IS_XSTAT64
 # undef __fxstatat64
 strong_alias (__fxstatat, __fxstatat64);
+libc_hidden_ver (__fxstatat, __fxstatat64)
 #endif
--- libc/sysdeps/sparc/sparc64/jmpbuf-unwind.h.jj	2006-01-14 11:41:04.000000000 -0500
+++ libc/sysdeps/sparc/sparc64/jmpbuf-unwind.h	2006-01-31 16:26:25.000000000 -0500
@@ -18,7 +18,6 @@
    02111-1307 USA.  */
 
 #include <setjmp.h>
-#include <jmpbuf-offsets.h>
 #include <stdint.h>
 #include <unwind.h>
 

	Jakub


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