[lfs-dev] Gettext-0.19.8.1 fails to compile

William Harrington kb0iic at berzerkula.org
Wed Dec 20 08:23:54 PST 2017


On Wed, December 20, 2017 05:57, John Frankish wrote:
> Ref:
> Linux From Scratch - Version SVN-20171219
> Chapter 6. Installing Basic System Software
> Gettext-0.19.8.1
>
> ..fails to compile with the error below.
>
> Adding "-lm" to gettext-tools/src/libgettextsrc.la and
> gettext-tools/gnulib-lib/libgettextlib.la solves the problem.
>
> -----
>
> /bin/sh ../libtool  --tag=CC   --mode=link gcc -flto -fuse-linker-plugin
> -mtune=generic -Os -pipe     -o msgfmt msgfmt-msgfmt.o msgfmt-write-mo.o
> msgfmt-write-java.o msgfmt-write-csharp.o msgfmt-write-resources.o
> msgfmt-write-tcl.o msgfmt-write-qt.o msgfmt-write-desktop.o
> msgfmt-write-xml.o ../../gettext-runtime/intl/msgfmt-hash-string.o
> libgettextsrc.la
> libtool: link: gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe -o
> .libs/msgfmt msgfmt-msgfmt.o msgfmt-write-mo.o msgfmt-write-java.o
> msgfmt-write-csharp.o msgfmt-write-resources.o msgfmt-write-tcl.o
> msgfmt-write-qt.o msgfmt-write-desktop.o msgfmt-write-xml.o
> ../../gettext-runtime/intl/msgfmt-hash-string.o  ./.libs/libgettextsrc.so
> /sources/gettext-0.19.8.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so
> -lacl -lc -fopenmp
> /sources/gettext-0.19.8.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so:
> undefined reference to `fmod'
> /sources/gettext-0.19.8.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so:
> undefined reference to `pow'
> /sources/gettext-0.19.8.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so:
> undefined reference to `log10'
> collect2: error: ld returned 1 exit status
> make[5]: *** [Makefile:2766: msgfmt] Error 1
> make[5]: Leaving directory '/sources/gettext-0.19.8.1/gettext-tools/src'
> make[4]: *** [Makefile:2556: all] Error 2
> --

Hello John,

It may be related to this thread, too.

http://lists.linuxfromscratch.org/pipermail/lfs-dev/2016-January/070687.html

Sincerely,

William Harrington




More information about the lfs-dev mailing list