GHC 7.4.2 build fails on Fedora17
On Fedora 17 the build fails when attempting to run "configure". The relevant section says:
checking for ncurses.h... yes
checking for setupterm in -lncursesw... no
checking for setupterm in -lncurses... no
checking for setupterm in -lcurses... no
configure: error: in `/home/paj/packages/ghc-7.4.2/libraries/terminfo':
configure: error: curses library not found, so this package cannot be built
The relevant section from config.log says:
configure~:3285: gcc -o conftest -g -O2 conftest.c -lncursesw >&5
/usr/bin/ld: /tmp/cc1CCCaI.o: undefined reference to symbol 'setupterm'
/usr/bin/ld: note: 'setupterm' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line
/lib64/libtinfo.so.5: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
I've set the architecture to x86_64 because thats what I run, but I expect it would happen on other Fedora 17s as well.