patches/glibc/2.3.3/glibc-2.3.3-alpha-pwrite64.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 Fix for this error:
     2 
     3 crosstool-0.32/build/alpha-unknown-linux-gnu/gcc-3.3.5-glibc-2.3.3/build-glibc/libc_pic.os(.text+0xc8bd0): In function `__posix_fallocate64_l64':
     4 : undefined reference to `__GI___pwrite64'
     5 collect2: ld returned 1 exit status
     6 make[1]: *** [crosstool-0.32/build/alpha-unknown-linux-gnu/gcc-3.3.5-glibc-2.3.3/build-glibc/libc.so] Error 1
     7 make[1]: Leaving directory `crosstool-0.32/build/alpha-unknown-linux-gnu/gcc-3.3.5-glibc-2.3.3/glibc-2.3.3'
     8 make: *** [all] Error 2
     9 
    10 extracted from GLIBC CVS by Dan Kegel
    11 wget 'http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/alpha/sysdep.h.diff?r1=1.16&r2=1.17&cvsroot=glibc'
    12 
    13 cf. 
    14 http://sources.redhat.com/ml/libc-alpha/2003-10/msg00038.html
    15 
    16 
    17 --- glibc-2.3.3/sysdeps/unix/sysv/linux/alpha/sysdep.h.old	2003-06-20 09:24:36.000000000 -0700
    18 +++ glibc-2.3.3/sysdeps/unix/sysv/linux/alpha/sysdep.h	2005-04-27 11:23:46.000000000 -0700
    19 @@ -1,4 +1,4 @@
    20 -/* Copyright (C) 1992, 1993, 1995, 1996, 1997, 2002, 2003
    21 +/* Copyright (C) 1992, 1993, 1995, 1996, 1997, 2002, 2003, 2004
    22     Free Software Foundation, Inc.
    23     This file is part of the GNU C Library.
    24     Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>, August 1995.
    25 @@ -65,6 +65,16 @@
    26  # define __NR_semtimedop	423
    27  #endif
    28  
    29 +/* This is a kludge to make syscalls.list find these under the names
    30 +   pread and pwrite, since some kernel headers define those names
    31 +   and some define the *64 names for the same system calls.  */
    32 +#if !defined __NR_pread && defined __NR_pread64
    33 +# define __NR_pread __NR_pread64
    34 +#endif
    35 +#if !defined __NR_pwrite && defined __NR_pwrite64
    36 +# define __NR_pwrite __NR_pwrite64
    37 +#endif
    38 +
    39  /*
    40   * In order to get the hidden arguments for rt_sigaction set up
    41   * properly, we need to call the assembly version.  This shouldn't