[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ia64 2.3/CVS compile problems
From: |
Ian Wienand |
Subject: |
Re: ia64 2.3/CVS compile problems |
Date: |
Fri, 25 Oct 2002 14:52:26 +1000 |
User-agent: |
Mutt/1.3.28i |
On Tue, Oct 15, 2002 at 08:37:33AM +0200, Andreas Jaeger wrote:
> Ian Wienand <address@hidden> writes:
>
> > Hi,
> >
> > libc.so.6.1: undefined reference to `__GI___pwrite64'
> > libc.so.6.1: undefined reference to `__syscall_exit_group'
fix for __GI___pwrite64 problem :
--- sysdeps/unix/sysv/linux/ia64/sysdep.h~ 2001-07-06 14:56:17.000000000
+1000
+++ sysdeps/unix/sysv/linux/ia64/sysdep.h 2002-10-25 10:27:02.000000000
+1000
@@ -32,6 +32,16 @@
# define SYS_ify(syscall_name) __NR_/**/syscall_name
#endif
+/* This is a kludge to make syscalls.list find these under the names
+ pread and pwrite, since some kernel headers define those names
+ and some define the *64 names for the same system calls. */
+#if !defined __NR_pread && defined __NR_pread64
+# define __NR_pread __NR_pread64
+#endif
+#if !defined __NR_pwrite && defined __NR_pwrite64
+# define __NR_pwrite __NR_pwrite64
+#endif
+
#ifdef __ASSEMBLER__
#undef CALL_MCOUNT
fix for __syscall_exit_group problem (is this right?) :
--- sysdeps/unix/sysv/linux/ia64/syscalls.list~ 2002-10-23 02:07:06.000000000
+1000
+++ sysdeps/unix/sysv/linux/ia64/syscalls.list 2002-10-25 10:34:54.000000000
+1000
@@ -67,6 +67,7 @@
# System calls with wrappers.
s_execve EXTRA execve i:spp __syscall_execve
s_exit exit exit i:i __syscall_exit
+s_exit_group exit_group exit_group i:i __syscall_exit_group
s_getcwd getcwd getcwd i:pi __syscall_getcwd getcwd
s_getdents getdents getdents i:ipi __syscall_getdents getdents
s_getdents64 getdents64 getdents64 i:ipi __syscall_getdents64
with these libc cvs complies OK on ia64 linux.
-i
address@hidden