if ncurses is built with USE="tinfo" then the terminfo stuff is in a separate library and rlwrap doesn't add it to the link line: x86_64-pc-linux-gnu-gcc -DDATADIR=\"/usr/share\" -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -o rlwrap main.o signals.o readline.o pty.o completion.o term.o ptytty.o utils.o string_utils.o malloc_debug.o filter.o -lutil -lreadline /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: term.o: undefined reference to symbol 'tputs' /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'tputs' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line Reproducible: Always
Created attachment 376968 [details] updated ebuild
Created attachment 376970 [details, diff] patch to add patch to ebuild
Created attachment 376972 [details, diff] patch to fix configure.ac Upstream fixed this for 0.41, relavent commit: https://github.com/hanslub42/rlwrap/commit/3806f22daad79df50e040ce2b61850e85b5e1f40
Yes, this seem also fixed in current version of rlwrap (0.42). Thanks all. Closing bug.