bug-coreutils
[Top][All Lists]
Advanced

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

coreutils-5.0.91: compilation error in utime.c


From: Bruno Haible
Subject: coreutils-5.0.91: compilation error in utime.c
Date: Thu, 4 Dec 2003 12:12:23 +0100
User-agent: KMail/1.5

On SuSE Linux 6.3 compilation fails:

gcc -DHAVE_CONFIG_H 
-DLIBDIR=\"/nfs/visu/telecom/users/haible/gnu/arch/linuxlibc6/lib\" -I. 
-I../../lib -I..  -I.. -I../../lib 
-I/nfs/visu/telecom/users/haible/gnu/arch/linuxlibc6/include  -g -O2 -c `test 
-f '../../lib/utime.c' || echo '../../lib/'`../../lib/utime.c
../../lib/utime.c: In function `utime_null':
../../lib/utime.c:56: storage size of `sb' isn't known
../../lib/utime.c:58: `O_RDWR' undeclared (first use in this function)
../../lib/utime.c:58: (Each undeclared identifier is reported only once
../../lib/utime.c:58: for each function it appears in.)
../../lib/utime.c:62: `SEEK_SET' undeclared (first use in this function)
../../lib/utime.c:68: `st' undeclared (first use in this function)
make[3]: *** [utime.o] Error 1

Adding a

#include <sys/stat.h>
#include <fcntl.h>

right after

#include <sys/types.h>

and s/st\./sb./ in the code below fixes it.

Bruno





reply via email to

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