On Tue, Jun 19, 2007 at 08:58:04PM +0200, Arkadiusz Miskiewicz wrote: > > When system ncurses is built with --with-termlib=tinfo option > then there are two libraries - libtinfo (which contains terminal > related functions) and libncurses (rest). > > Correctly link against libtinfo in such case. Why do you need extra -ltinfo? I see: # ldd /lib/libncurses.so.5 linux-gate.so.1 => (0xffffe000) libc.so.6 => /lib/libc.so.6 (0xf7e5c000) libdl.so.2 => /lib/libdl.so.2 (0xf7e57000) libtinfo.so.5 => /lib/libtinfo.so.5 (0xf7e3f000) For example Fedora 7 uses tinfo, and the cal command is compiled without an extra -ltinfo: # ldd /usr/bin/cal libncurses.so.5 => /lib64/libncurses.so.5 (0x0000003b66400000) libc.so.6 => /lib64/libc.so.6 (0x0000003b51a00000) libdl.so.2 => /lib64/libdl.so.2 (0x0000003b52200000) libtinfo.so.5 => /lib64/libtinfo.so.5 (0x0000003b65800000) Karel -- Karel Zak <kzak@xxxxxxxxxx> - To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html