Bug 232277 - libreadline not linked with libncurses
Summary: libreadline not linked with libncurses
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: readline
Version: 6
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-03-14 17:31 UTC by David Cantrell
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-03-15 15:03:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Cantrell 2007-03-14 17:31:44 UTC
While trying to compile a new parted release on FC-6, I received undefined
symbol messages when linking with libreadline:

/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined
reference to `PC'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined
reference to `tgetflag'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined
reference to `tgetent'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined
reference to `UP'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined
reference to `tputs'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined
reference to `tgoto'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined
reference to `tgetnum'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined
reference to `BC'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined
reference to `tgetstr'

libreadline should be linked with libncurses since it requires that library. 
Adding -lncurses to the linker flags will work in some cases, but autoconf
'configure' scripts will fail over and over when searching for libreadline
because they will not necessarily add -lncurses to the linker flags.

This problem also affects rawhide.

I need this library fixed ASAP in rawhide so I can get a new parted merged in
for F7.

Comment 1 Miroslav Lichvar 2007-03-14 17:51:31 UTC
Unfortunately this isn't possible to do since libreadline can be linked with
libtermcap or libncurses or libncursesw. Linking readline with one library would
break applications that are linked with the other lib.

Comment 2 Miroslav Lichvar 2007-03-15 13:24:40 UTC
Hmm, we can actually link libreadline in rawhide with libtinfo as both
libncurses and libncursesw are now linked with the same libtinfo.


Note You need to log in before you can comment on or make changes to this bug.