terminfo-0.4.1.4 breaks a build of hls not finding a specific version of some symbols from libtinfo.so
, one of them being tigetnum
.
There is also this warning, which I see when building other programs:
/lib64/libtinfo.so.5: no version information available (required by terminfo-0.4.1.4/libHSterminfo-0.4.1.4-ghc8.10.7.so)
The following is an error that breaks building of haskell-language-server:
terminfo-0.4.1.4/libHSterminfo-0.4.1.4-ghc8.10.7.so: error: undefined reference to 'tigetnum', version 'NCURSES_TINFO_5.0.19991023'
This is using versioned symbols feature of gcc stack, where you can have symbols with different versions in the same ELF file. However, my copy of libtinfo.so does not have versioned symbols and I don't see anything in terminfo code on github that would indicate it is requiring versioned symbols: that said I am not sure what I should be looking for, just grepped the srcs for the version.
objdump -x invoked on libHSterminfo-0.4.1.4-ghc8.10.7.so:
Version definitions:
1 0x01 0x057dc17f libHSterminfo-0.4.1.4-ghc8.10.7.so
Version References:
required from libtinfo.so.5:
0x02a6c513 0x00 02 NCURSES_TINFO_5.0.19991023
required from libc.so.6:
0x09691a75 0x00 03 GLIBC_2.2.5