Mark Pokorny wrote:
Hi all,
I am not long after building my LFS-8.1 system and am starting to
build some of the packages from BLFS.
I am currently trying to build xfsprogs 4.12.0. However, the build
fails with the following error:
—————
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib/libreadline.so:
undefined reference to `tputs'
[snip]
collect2: error: ld returned 1 exit status
make[3]: *** [../include/buildrules:46: xfs_io] Error 1
make[2]: *** [include/buildrules:35: io] Error 2
—————
After doing a bit of reading around, it seems that the issue is
readline not being linked against ncurses correctly; is this correct?
Any ideas on how to proceed from here?
As an aside, naturally the package builds if the
“LOCAL_CONFIGURE_OPTIONS="--enable-readline"” part of the command is
removed, though I do not really know the result will be when the
package is used at a later date.
Do you have /usr/lib/libreadline.so? Did you create the symlink
/usr/lib/libreadline.so -> ../../lib/libreadline.so.6 after moving the
libraries to /lib?
In section 6.13. Readline-7.0 of LFS you should have done:
mv -v /usr/lib/lib{readline,history}.so.* /lib
ln -sfv ../../lib/$(readlink /usr/lib/libreadline.so) /usr/lib/libreadline.so
ln -sfv ../../lib/$(readlink /usr/lib/libhistory.so ) /usr/lib/libhistory.so
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page