#5172: unix-compat does not build because of strangeness in GHC's header files.
-----------------------------+----------------------------------------------
  Reporter:  rtvd            |          Owner:                  
      Type:  bug             |         Status:  closed          
  Priority:  normal          |      Milestone:                  
 Component:  Runtime System  |        Version:  7.0.3           
Resolution:  worksforme      |       Keywords:  unix-compat     
  Testcase:                  |      Blockedby:                  
Difficulty:                  |             Os:  Unknown/Multiple
  Blocking:                  |   Architecture:  Unknown/Multiple
   Failure:  Other           |  
-----------------------------+----------------------------------------------
Changes (by byorgey):

 * cc: byorgey@… (added)


Comment:

 Just as a point of reference for anyone finding this ticket after running
 into this issue, I also ran into this problem (sadly, it seems arch linux
 does not even have any packages providing libutil.h).  Unfortunately,
 removing the `#include "HsUnix.h"` from `include/HsUnixCompat.h` gets me
 past the initial configuration stage but now I get a different error:

 {{{
 src/System/PosixCompat/Files.hsc:54:5:
     Ambiguous occurrence `setSymbolicLinkOwnerAndGroup'
     It could refer to either
 `System.PosixCompat.Files.setSymbolicLinkOwnerAndGroup',
                              defined at
 src/System/PosixCompat/Files.hsc:75:1
                           or
 `System.Posix.Files.setSymbolicLinkOwnerAndGroup',
                              imported from System.Posix.Files at
 src/System/PosixCompat/Files.hsc:69:1-25
 }}}

 One workaround that worked for me (although obviously not ideal) is to
 force the "portable" version of unix-compat with `cabal install -fportable
 unix-compat`.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5172#comment:5>
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