serras/scion-class-browser — Issue #7: cabal install scion-browser fails under Fedora 16
Author: bokesan
Created: 2011-11-14 11:57:18+00:00
State: open

Because of a change in linker behavior, scion-browser fails to build under Fedora 16.

$ cabal install scion-browser
...
Linking dist/build/scion-browser/scion-browser ...
/usr/bin/ld: /home/breitko/.cabal/lib/terminfo-0.3.2.3/ghc-7.0.4/libHSterminfo-0.3.2.3.a(Base.o): undefined reference to symbol 'tparm'
/usr/bin/ld: note: 'tparm' 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: ld returned 1 exit status
cabal: Error: some packages failed to install:

The cause is explained here: http://lists.fedoraproject.org/pipermail/devel/2010-March/133601.html

I got it to build by adding this to the executable section of scion-browser.cabal:

Extra-libraries:
tinfo

However, I have no idea if this will break the build on other systems and if it is the "right" way to fix it.