bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Coreutils 6.7 build error and patch


From: VinX
Subject: Coreutils 6.7 build error and patch
Date: Mon, 12 Feb 2007 16:54:18 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061221)

Hi,
I'd a little problem with this version, it didn't compile.
The error is:
---
gcc -std=gnu99 -I. -g -O2 -MT utimens.o -MD -MP -MF .deps/utimens.Tpo -c -o utimens.o utimens.c
utimens.c: In function `futimens':
utimens.c:117: warning: implicit declaration of function `futimesat'
utimens.c:117: error: `AT_FDCWD' undeclared (first use in this function)
utimens.c:117: error: (Each undeclared identifier is reported only once
utimens.c:117: error: for each function it appears in.)
make[2]: *** [utimens.o] Error 1
---
My system is a gentoo with:
- glibc 2.5
- coreutils 6.7
- linux-headers 2.6.20

I build a little patch (attached in this mail) to fix this error, now it seems to be ok!

Best Regards,
        VinX
diff -ruNp coreutils-6.7/lib/chdir-long.c coreutils-6.7-VinX/lib/chdir-long.c
--- coreutils-6.7/lib/chdir-long.c      2006-09-14 11:53:58.000000000 +0200
+++ coreutils-6.7-VinX/lib/chdir-long.c 2007-02-12 16:02:31.000000000 +0100
@@ -21,6 +21,7 @@
 
 #include "chdir-long.h"
 
+#define __USE_ATFILE
 #include <fcntl.h>
 #include <stdlib.h>
 #include <stdbool.h>
diff -ruNp coreutils-6.7/lib/fts_.h coreutils-6.7-VinX/lib/fts_.h
--- coreutils-6.7/lib/fts_.h    2006-11-12 18:17:58.000000000 +0100
+++ coreutils-6.7-VinX/lib/fts_.h       2007-02-12 16:01:22.000000000 +0100
@@ -61,7 +61,7 @@
 #  undef __END_DECLS
 #  define __END_DECLS
 # endif
-
+#define __USE_ATFILE
 # include <stddef.h>
 # include <sys/types.h>
 # include <sys/stat.h>
diff -ruNp coreutils-6.7/lib/openat.h coreutils-6.7-VinX/lib/openat.h
--- coreutils-6.7/lib/openat.h  2006-11-21 00:32:38.000000000 +0100
+++ coreutils-6.7-VinX/lib/openat.h     2007-02-12 16:05:38.000000000 +0100
@@ -16,7 +16,7 @@
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 /* written by Jim Meyering */
-
+#define __USE_ATFILE
 #include <fcntl.h>
 
 #include <sys/types.h>
diff -ruNp coreutils-6.7/lib/timespec.h coreutils-6.7-VinX/lib/timespec.h
--- coreutils-6.7/lib/timespec.h        2005-09-19 19:44:10.000000000 +0200
+++ coreutils-6.7-VinX/lib/timespec.h   2007-02-12 16:03:33.000000000 +0100
@@ -16,6 +16,7 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
+#define __USE_ATFILE
 #if ! defined TIMESPEC_H
 # define TIMESPEC_H
 
diff -ruNp coreutils-6.7/src/chown-core.c coreutils-6.7-VinX/src/chown-core.c
--- coreutils-6.7/src/chown-core.c      2006-10-22 18:54:15.000000000 +0200
+++ coreutils-6.7-VinX/src/chown-core.c 2007-02-12 16:06:11.000000000 +0100
@@ -22,7 +22,7 @@
 #include <sys/types.h>
 #include <pwd.h>
 #include <grp.h>
-
+#define __USE_ATFILE
 #include "system.h"
 #include "chown-core.h"
 #include "error.h"
diff -ruNp coreutils-6.7/src/remove.c coreutils-6.7-VinX/src/remove.c
--- coreutils-6.7/src/remove.c  2006-11-26 18:43:25.000000000 +0100
+++ coreutils-6.7-VinX/src/remove.c     2007-02-12 16:07:17.000000000 +0100
@@ -22,7 +22,7 @@
 #include <sys/types.h>
 #include <setjmp.h>
 #include <assert.h>
-
+#define __USE_ATFILE
 #include "system.h"
 #include "cycle-check.h"
 #include "dirfd.h"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]