#3653: "Missing header file: HsDirectory.h" with old kernel/glibc
-----------------------------+----------------------------------------------
Reporter:  roland            |          Owner:                     
    Type:  bug               |         Status:  new                
Priority:  normal            |      Component:  libraries/directory
 Version:  6.12.1 RC1        |       Severity:  normal             
Keywords:                    |       Testcase:                     
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple   
-----------------------------+----------------------------------------------
 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}}}.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3653>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to