[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 17:38:53 EST 2007


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

  * architecture:  Unknown => Multiple
  * milestone:  => 6.8.2

Comment:

 The problem is with {{{GNUreadline.framework}}} itself.  The files
 {{{readline.h, history.h}}} etc. all import {{{<readline/rlstdc.h>}}}
 instead of {{{<GNUreadline/readline/rlstdc.h>}}}.  The latter is needed to
 correctly import from the framework when compiling the readline package..

 If some other version of readline were installed at e.g.
 {{{/usr/local/include/readline}}}, then headers from that directory would
 be used instead of throwing an error.  My machine was set up like that,
 which is why I didn't see this issue when I fixed #1395.

 I've edited, tested and attached the script that generates the framework.
 My rebuild of the framework is at [http://www.math.ucla.edu/~jjacobson/ghc
 /GNUreadline-framework.zip].  (The framework contains the script {{{build-
 framework-R.sh}}} inside itself.)

 Thorkil, can you please test this on your buildbots and see if it fixes
 the problem?  If so, we should probably start distributing this new
 version of the framework along with 6.8.2.

 Christian, I took a look at your comments on #1395 and #1798; with this
 change you shouldn't need
 {{{-I/Library/Frameworks/GNUreadline.framework/Headers}}} anymore.  Of
 course, for now you'll still need to use {{{-F}}} if you want to store
 frameworks in your home directory.

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


More information about the Glasgow-haskell-bugs mailing list