[GHC] #1931: readline/rlstdc.h not found (and other errors) when building readline on Mac OS X with framework GNUreadline

GHC trac at galois.com
Mon Nov 26 07:51:44 EST 2007


#1931: readline/rlstdc.h not found (and other errors) when building readline on
Mac OS X with framework GNUreadline
-------------------------------+--------------------------------------------
 Reporter:  thorkilnaur        |          Owner:         
     Type:  bug                |         Status:  new    
 Priority:  normal             |      Milestone:         
Component:  libraries (other)  |        Version:  6.9    
 Severity:  normal             |     Resolution:         
 Keywords:                     |     Difficulty:  Unknown
 Testcase:                     |   Architecture:  Unknown
       Os:  MacOS X            |  
-------------------------------+--------------------------------------------
Comment (by maeder):

 I noticed this problem, too (#1395, comment 7). Adding a "GNUreadline/"
 prefix to some include lines was not sufficient and should be reverted!
 Setting include-dirs in readline.cabal is only a solution if the framework
 is (always) installed under /Library/Frameworks. (It would not work with
 my local framework.)

 When I built ghc-6.8.1 on mac I've put the following into `mk/build.mk`:

 {{{
 SRC_HC_OPTS += -optl-F/home/maeder/Library/Frameworks -optl-framework
 -optlGNU
 readline
 CC_OPTS += -I/home/maeder/Library/Frameworks/GNUreadline.framework/Headers
 }}}

 I've also added the following last line to the target
 `stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).%` in
 libraries/Makefile
 so that cabal knows how to include my header files:

 {{{
                   --with-hsc2hs=../../utils/hsc2hs/hsc2hs-inplace \
                   --hsc2hs-options="-C $(CC_OPTS)" \
 }}}

 (A GNUreadline framework indicator is missing in my distro's package.conf,
 because configure did not recognize it, anyway.)

 See also #1798

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1931#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list