Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 232277 - libreadline not linked with libncurses
Summary: libreadline not linked with libncurses
Alias: None
Product: Fedora
Classification: Fedora
Component: readline
Version: 6
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact:
Depends On:
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:
Last Closed: 2007-03-15 15:03:58 UTC

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/../../../ undefined
reference to `PC'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../ undefined
reference to `tgetflag'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../ undefined
reference to `tgetent'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../ undefined
reference to `UP'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../ undefined
reference to `tputs'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../ undefined
reference to `tgoto'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../ undefined
reference to `tgetnum'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../ undefined
reference to `BC'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../ 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.