Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 508404

Summary: app-misc/rlwrap fails to link if ncurses has USE="tinfo"
Product: Gentoo Linux Reporter: Thomas Kahle (RETIRED) <tomka>
Component: Current packagesAssignee: Common Lisp Bugs <common-lisp>
Status: RESOLVED FIXED    
Severity: normal CC: thw
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 457530    
Attachments: updated ebuild
patch to add patch to ebuild
patch to fix configure.ac

Description Thomas Kahle (RETIRED) gentoo-dev 2014-04-22 13:47:36 UTC
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
Comment 1 Timothy West 2014-05-15 02:28:10 UTC
Created attachment 376968 [details]
updated ebuild
Comment 2 Timothy West 2014-05-15 02:28:55 UTC
Created attachment 376970 [details, diff]
patch to add patch to ebuild
Comment 3 Timothy West 2014-05-15 02:30:46 UTC
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
Comment 4 Chema Alonso Josa (RETIRED) gentoo-dev 2015-08-28 16:57:00 UTC
Yes, this seem also fixed in current version of rlwrap (0.42).

Thanks all. Closing bug.