bug-coreutils
[Top][All Lists]
Advanced

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

windows.h: No such file or directory


From: John Taylor
Subject: windows.h: No such file or directory
Date: Fri, 21 Aug 2009 22:53:55 +0200

Hello,

I'm trying to build coreutils-7.4 with a cross-compilator (gcc-4.4.1)
that runs on i686-unknown-linux-gnu and produces code for
x86_64-unknown-linux-gnu. When building coreutils, I get the following
error message:

../../coreutils-7.4/lib/rename.c:33:21: error: windows.h: No such file
or directory
../../coreutils-7.4/lib/rename.c: In function 'rpl_rename':
../../coreutils-7.4/lib/rename.c:46: warning: implicit declaration of
function 'MoveFileEx'
../../coreutils-7.4/lib/rename.c:51: warning: implicit declaration of
function 'GetLastError'
../../coreutils-7.4/lib/rename.c:52: error: 'ERROR_FILE_EXISTS'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:52: error: (Each undeclared
identifier is reported only once
../../coreutils-7.4/lib/rename.c:52: error: for each function it appears in.)
../../coreutils-7.4/lib/rename.c:52: error: 'ERROR_ALREADY_EXISTS'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:54: error:
'MOVEFILE_REPLACE_EXISTING' undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:62: error: 'ERROR_FILE_NOT_FOUND'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:63: error: 'ERROR_PATH_NOT_FOUND'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:64: error: 'ERROR_BAD_PATHNAME'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:65: error: 'ERROR_DIRECTORY'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:69: error: 'ERROR_ACCESS_DENIED'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:70: error: 'ERROR_SHARING_VIOLATION'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:74: error: 'ERROR_OUTOFMEMORY'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:78: error: 'ERROR_CURRENT_DIRECTORY'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:82: error: 'ERROR_NOT_SAME_DEVICE'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:86: error: 'ERROR_WRITE_PROTECT'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:90: error: 'ERROR_WRITE_FAULT'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:91: error: 'ERROR_READ_FAULT'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:92: error: 'ERROR_GEN_FAILURE'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:96: error: 'ERROR_HANDLE_DISK_FULL'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:97: error: 'ERROR_DISK_FULL'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:98: error:
'ERROR_DISK_TOO_FRAGMENTED' undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:107: error: 'ERROR_BUFFER_OVERFLOW'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:108: error:
'ERROR_FILENAME_EXCED_RANGE' undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:112: error: 'ERROR_INVALID_NAME'
undeclared (first use in this function)
../../coreutils-7.4/lib/rename.c:113: error: 'ERROR_DELETE_PENDING'
undeclared (first use in this function)
make[4]: *** [rename.o] Error 1
make[4]: Leaving directory `/mnt/clfs/sources/coreutils-build/lib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/clfs/sources/coreutils-build/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/clfs/sources/coreutils-build/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/clfs/sources/coreutils-build'
make: *** [all] Error 2

I found that I can fix this problem by adding
gl_cv_func_rename_trailing_slash_bug=no to the configure arguments
list. Is this the normal and recommended way to proceed? Are we in
front of a bug, instead?

Thanks.




reply via email to

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