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.
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.
Hmm, we can actually link libreadline in rawhide with libtinfo as both libncurses and libncursesw are now linked with the same libtinfo.