ghci Problem
Dominic Steinitz
dominic.steinitz at blueyonder.co.uk
Mon May 26 07:17:40 EDT 2008
Dominic Steinitz wrote:
>> Ok I can see in config.log that I don't have editline. That sounds very
>> suspicious. Mind you I'm not sure where to get it from for opensuse.
>> I'll have a hunt around.
>>
>
> I found the editline package but now I have the following. I'm not even
> sure installing the editline package is the right thing to do
>
>> dom at lagrange:~/editline/editline-0.2> ./Setup build
>> Preprocessing library editline-0.2...
>>
>> In file included from Editline.hsc:52:0:
>>
>> include/HsEditline.h:11:0:
>> error: conflicting types for ‘el_get’
>>
>> /usr/include/histedit.h:112:0:
>> error: previous declaration of ‘el_get’ was here
>> compiling dist/build/System/Console/Editline_hsc_make.c failed
>> command was: /usr/local/bin/ghc -c -package base-3.0 -Iinclude dist/build/System/Console/Editline_hsc_make.c -o dist/build/System/Console/Editline_hsc_make.o
>
>
Sorry for the running commentary but you can always hit delete.
This looks a bit dodgy in configure:
> if "${GhcPkgCmd-ghc-pkg}" --show-package editline >/dev/null 2>&1; then
> fp_cv_ghc_has_editline=yes
> else
> fp_cv_ghc_has_editline=no
> fi
As I suspect:
> dom at lagrange:~/ghc> ghc-pkg --show-package editline
> ghc-pkg: unrecognized option `--show-package'
This works but configure doesn't seem to be in darcs so I'm not sure how
to send a patch. Happy to raise a ticket. Let me know.
> if "${GhcPkgCmd-ghc-pkg}" describe editline >/dev/null 2>&1; then
> fp_cv_ghc_has_editline=yes
> else
> fp_cv_ghc_has_editline=no
> fi
Dominic.
More information about the Glasgow-haskell-users
mailing list