[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: glibc-2.2.2
From: |
Andreas Jaeger |
Subject: |
Re: glibc-2.2.2 |
Date: |
07 Mar 2001 16:16:51 +0100 |
User-agent: |
Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.1 (Channel Islands) |
address@hidden writes:
> Hi,
> I'm compiling glibc-2.2.2 on Linux/Alpha 2.4.2.
>
> The file ./sysdeps/unix/sysv/linux/alpha/ftruncate64.c
> contains only one line:
> /* ftruncate64 is the same as ftruncate */
> I suggest to write it like:
>
> int
> __ftruncate64 (fd, length)
> int fd;
> off_t length;
> {
> return __ftruncate (fd, length);
> }
>
> weak_alias (__ftruncate64, ftruncate64)
>
> stub_warning (ftruncate64)
> #include <stub-tag.h>
>
> If we have only the remark, the make will fail
> with:
>
> ../libc.so.6.1: undefined reference to `__ftruncate64'
> collect2: ld returned 1 exit status
>
> Best Regards,
That's wrong - the right fix is the following patch,
Andreas
Index: sysdeps/unix/sysv/linux/alpha/syscalls.list
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/alpha/syscalls.list,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- syscalls.list 2000/08/23 06:54:33 1.41
+++ syscalls.list 2001/02/16 18:12:10 1.42
@@ -26,7 +26,7 @@
statfs - statfs 2 __statfs statfs statfs64
getrlimit - getrlimit 2 __getrlimit getrlimit
getrlimit64
setrlimit - setrlimit 2 __setrlimit setrlimit64
setrlimit
-ftruncate - ftruncate 2 __ftruncate ftruncate
ftruncate64
+ftruncate - ftruncate 2 __ftruncate ftruncate
__ftruncate64 ftruncate64
truncate - truncate 2 truncate truncate64
# these are actually common with the x86:
--
Andreas Jaeger
SuSE Labs address@hidden
private address@hidden
http://www.suse.de/~aj
- glibc-2.2.2, m . brulisauer, 2001/03/07
- Re: glibc-2.2.2,
Andreas Jaeger <=