book 10.1 gettext-0.21 make error
by librosay from LinuxQuestions.org on (#5JENA)
when I cd gettext-0.21 in chroot environment, and configure && make by:
./configure --disable-shared
make
It occured errors. Some messages are available here:
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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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
./configure --disable-shared
make
It occured errors. Some messages are available here:
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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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/10.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