"Missing header file: HsDirectory.h" with old kernel/glibc
Configuring ghc-6.12.1rc1 on a machine with linux kernel 2.6.9 and glibc 2.3.4 gives:
$ ./configure
[...]
Configuring directory-1.0.1.0...
[...]
configure: creating ./config.status
config.status: creating include/HsDirectoryConfig.h
ghc-cabal: Missing dependency on a foreign library:
* Missing header file: HsDirectory.h
[...]
The file HsDirectory.h
is actually there, but it fails to compile.
$ cd libraries/directory
$ runhaskell Setup configure -v3
[...]
include/HsDirectory.h:58: error: syntax error before "__hscore_S_IRUSR"
include/HsDirectory.h:59: error: syntax error before "__hscore_S_IWUSR"
include/HsDirectory.h:60: error: syntax error before "__hscore_S_IXUSR"
include/HsDirectory.h:61: error: syntax error before "__hscore_S_IFDIR"
[...]
The problem can be fixed by adding #include <sys/types.h>
at the beginning of HsDirectory.h
.
Trac metadata
Trac field | Value |
---|---|
Version | 6.12.1 RC1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries/directory |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |