When compiling Gettext from Chapter 7 of LFS 11.1, when attempting to compile, there were several errors.
Code:
libtool: link: (cd .libs/libtextstyle.lax/libcroco_rpl.a && ar x "/sources/gettext-0.21/libtextstyle/lib/./.libs/libcroco_rpl.a")
../libtool: line 5691: find: command not found
libtool: link: (cd .libs/libtextstyle.lax/libglib_rpl.a && ar x "/sources/gettext-0.21/libtextstyle/lib/./.libs/libglib_rpl.a")
../libtool: line 5691: find: command not found
libtool: link: (cd .libs/libtextstyle.lax/libxml_rpl.a && ar x "/sources/gettext-0.21/libtextstyle/lib/./.libs/libxml_rpl.a")
../libtool: line 5691: find: command not found
libtool: link: ar cru .libs/libtextstyle.a gl_array_list.o basename-lgpl.o binary-io.o c-ctype.o c-strcasecmp.o c-strncasecmp.o cloexec.o concat-filename.o exitfail.o fatal-signal.o fd-hook.o fd-ostream.o file-ostream.o full-write.o get_ppid_of.o get_progname_of.o getprogname.o html-ostream.o html-styled-ostream.o iconv-ostream.o gl_list.o glthread/lock.o malloca.o math.o mem-hash-map.o memory-ostream.o noop-styled-ostream.o ostream.o printf-frexp.o printf-frexpl.o safe-read.o safe-write.o sig-handler.o sockets.o stat-time.o styled-ostream.o sys_socket.o term-ostream.o term-style-control.o term-styled-ostream.o glthread/threadlib.o unistd.o unistr/u8-mbtouc.o unistr/u8-mbtouc-aux.o xmalloc.o xstrdup.o xconcat-filename.o xgethostname.o gl_xlist.o xsize.o xvasprintf.o xasprintf.o color.o misc.o version.o asnprintf.o fcntl.o obstack.o printf-args.o printf-parse.o vasnprintf.o
libtool: link: ranlib .libs/libtextstyle.a
libtool: link: rm -fr .libs/libtextstyle.lax
libtool: link: ( cd ".libs" && rm -f "libtextstyle.la" && ln -s "../libtextstyle.la" "libtextstyle.la" )
make[5]: Leaving directory '/sources/gettext-0.21/libtextstyle/lib'
make[4]: Leaving directory '/sources/gettext-0.21/libtextstyle/lib'
Making all in tests
make[4]: Entering directory '/sources/gettext-0.21/libtextstyle/tests'
make all-recursive
make[5]: Entering directory '/sources/gettext-0.21/libtextstyle/tests'
Making all in .
make[6]: Entering directory '/sources/gettext-0.21/libtextstyle/tests'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/sources/gettext-0.21/libtextstyle/tests'
make[5]: Leaving directory '/sources/gettext-0.21/libtextstyle/tests'
make[4]: Leaving directory '/sources/gettext-0.21/libtextstyle/tests'
Making all in adhoc-tests
make[4]: Entering directory '/sources/gettext-0.21/libtextstyle/adhoc-tests'
gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I../lib -I./../lib -DSRCDIR=\"./\" -g -O2 -MT hello.o -MD -MP -MF .deps/hello.Tpo -c -o hello.o hello.c
mv -f .deps/hello.Tpo .deps/hello.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o hello hello.o ../lib/libtextstyle.la
libtool: link: gcc -g -O2 -o hello hello.o ../lib/.libs/libtextstyle.a -lm -lncurses
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: ../lib/.libs/libtextstyle.a(term-styled-ostream.o): in function `style_compute_color_value':
/sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:289: undefined reference to `libtextstyle_cr_rgb_is_set_to_inherit'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: /sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:291: undefined reference to `libtextstyle_cr_rgb_is_set_to_transparent'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: /sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:302: undefined reference to `libtextstyle_cr_rgb_copy'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: /sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:303: undefined reference to `libtextstyle_cr_rgb_compute_from_percentage'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: ../lib/.libs/libtextstyle.a(term-styled-ostream.o): in function `term_styled_ostream__free':
/sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:108: undefined reference to `libtextstyle_cr_cascade_destroy'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: /sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:109: undefined reference to `libtextstyle_cr_sel_eng_destroy'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: ../lib/.libs/libtextstyle.a(term-styled-ostream.o): in function `match':
/sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:431: undefined reference to `libtextstyle_xmlNewNode'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: /sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:449: undefined reference to `libtextstyle_xmlNewNode'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: /sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:451: undefined reference to `libtextstyle_xmlSetProp'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: /sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:454: undefined reference to `libtextstyle_xmlAddChild'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: ../lib/.libs/libtextstyle.a(term-styled-ostream.o): in function `crx_sel_eng_get_matched_style':
/sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:190: undefined reference to `libtextstyle_cr_sel_eng_get_matched_properties_from_cascade'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: ../lib/.libs/libtextstyle.a(term-styled-ostream.o): in function `crx_style_new':
/sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:155: undefined reference to `libtextstyle_cr_style_new'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: ../lib/.libs/libtextstyle.a(term-styled-ostream.o): in function `crx_sel_eng_get_matched_style':
/sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:230: undefined reference to `libtextstyle_cr_prop_list_get_decl'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: /sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:231: undefined reference to `libtextstyle_cr_style_set_style_from_decl'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: /sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:226: undefined reference to `libtextstyle_cr_prop_list_get_next'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: /sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:265: undefined reference to `libtextstyle_cr_prop_list_destroy'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: ../lib/.libs/libtextstyle.a(term-styled-ostream.o): in function `crx_style_destroy':
/sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:173: undefined reference to `libtextstyle_cr_style_destroy'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: ../lib/.libs/libtextstyle.a(term-styled-ostream.o): in function `match':
/sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:509: undefined reference to `libtextstyle_xmlFreeNodeList'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: ../lib/.libs/libtextstyle.a(term-styled-ostream.o): in function `crx_sel_eng_get_matched_style':
/sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:243: undefined reference to `libtextstyle_cr_string_peek_raw_str'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: ../lib/.libs/libtextstyle.a(term-styled-ostream.o): in function `term_styled_ostream_create':
/sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:649: undefined reference to `libtextstyle_cr_om_parser_simply_parse_file'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: /sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:657: undefined reference to `libtextstyle_cr_cascade_new'
/usr/lib/gcc/x86_64-lfs-linux-gnu/11.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld: /sources/gettext-0.21/libtextstyle/lib/term-styled-ostream.oo.c:658: undefined reference to `libtextstyle_cr_sel_eng_new'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:1567: hello] Error 1
make[4]: Leaving directory '/sources/gettext-0.21/libtextstyle/adhoc-tests'
make[3]: *** [Makefile:1786: all-recursive] Error 1
make[3]: Leaving directory '/sources/gettext-0.21/libtextstyle'
make[2]: *** [Makefile:1714: all] Error 2
make[2]: Leaving directory '/sources/gettext-0.21/libtextstyle'
make[1]: *** [Makefile:403: all-recursive] Error 1
make[1]: Leaving directory '/sources/gettext-0.21'
make: *** [Makefile:359: all] Error 2
(lfs chroot) root:/sources/gettext-0.21#
Attempting to delete the directory and recompile was unsuccessful.