Re: [Haskell-cafe] error with nanocurses-1.5.2

On Sat, Jul 09, 2011 at 01:59:12PM -0300, José Romildo Malaquias wrote:
Hello.
When trying to install nanocurses-1.5.2 on my Fedora Linux system, I am getting the following error:
$ cabal install nanocurses Resolving dependencies... Configuring nanocurses-1.5.2... Preprocessing library nanocurses-1.5.2... In file included from Curses.hsc:42:0: cbits/utils.h:7:20: fatal error: config.h: No such file or directory compilation terminated. compiling dist/build/UI/Nanocurses/Curses_hsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/UI/Nanocurses/Curses_hsc_make.c -o dist/build/UI/Nanocurses/Curses_hsc_make.o -fno-stack-protector -fno-stack-protector -D__GLASGOW_HASKELL__=700 -Dlinux_BUILD_OS -Dlinux_HOST_OS -Dx86_64_BUILD_ARCH -Dx86_64_HOST_ARCH -Icbits -I/usr/lib64/ghc-7.0.2/unix-2.4.2.0/include -I/usr/lib64/ghc-7.0.2/bytestring-0.9.1.10/include -I/usr/lib64/ghc-7.0.2/base-4.3.1.0/include -I/usr/lib64/ghc-7.0.2/include -I/usr/lib64/ghc-7.0.2/include/ cabal: Error: some packages failed to install: nanocurses-1.5.2 failed during the building phase. The exception was: ExitFailure 1
It would be nice to have this buf fixed.
The attached patch fixes the compilation issues. Basically it changes the build type from simple to configure in the cabal file, and it renames the function getline in cbits/utils.{h,c} to mygetline. If appropriate, please release a new version with the fixes. Romildo
participants (1)
-
José Romildo Malaquias