[Hackage] #552: Cabal fails because header file is missing. But in fact the header file is erroneous.

Hackage trac at galois.com
Fri May 15 08:46:07 EDT 2009


#552: Cabal fails because header file is missing. But in fact the header file is
erroneous.
---------------------------------+------------------------------------------
  Reporter:  mgross              |        Owner:         
      Type:  enhancement         |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.6.0.1
  Severity:  normal              |     Keywords:         
Difficulty:  unknown             |   Ghcversion:         
  Platform:  Mac OS              |  
---------------------------------+------------------------------------------
 When trying to install HERA 0.2 the
 {{{
 runhaskell Setup.hs configure
 }}}

 command fails with:
 {{{
 Setup.hs: Missing dependency on a foreign library:
 * Missing header file: hsmpfr.h
 This problem can usually be solved by installing the system package that
 provides this library (you may need the "-dev" version). If the library is
 already installed but in a non-standard location then you can use the
 flags
 --extra-include-dirs= and --extra-lib-dirs= to specify where it is.
 }}}

 But in fact the header file is present.
 The real problem is an include in the header file.

 The include
 {{{
 #include <malloc.h>
 }}}
 fails on Mac OS systems.

 It would be better if Cabal would report the compile error.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/552>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list