LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-18-2022, 09:15 AM   #1
GlitchedLesbian
LQ Newbie
 
Registered: Mar 2022
Posts: 2

Rep: Reputation: 0
Unhappy Undefined reference to libtextstyle when compiling gettext.


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.
 
Old 03-19-2022, 02:28 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,611
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
The problem starts a bit higher up.
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
The libtextstyle links couldn't be found because they weren't made. They weren't made because the find command wasn't available. Findutils should have been built in Chapter 5.
 
Old 03-19-2022, 07:54 AM   #3
GlitchedLesbian
LQ Newbie
 
Registered: Mar 2022
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hazel View Post
The problem starts a bit higher up.
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
The libtextstyle links couldn't be found because they weren't made. They weren't made because the find command wasn't available. Findutils should have been built in Chapter 5.
Thank you! I thought I had installed them correctly, but I must have gotten something wrong.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
undefined reference to `yywrap' compiling PAM Mahonri Debian 5 12-30-2011 06:00 PM
Several "undefined reference to" error when compiling a C programm acer_peri Programming 8 12-11-2008 05:45 AM
Undefined errno reference while compiling loadable module kesher Linux - Software 3 04-10-2006 01:22 AM
Undefined reference to WxGtk libraries when compiling Xchm Darwish Linux - Software 0 09-03-2005 11:11 PM
undefined reference to `cfb_fillrect' and more when compiling kernel KR-data Linux - Software 0 09-03-2005 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration