bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /usr/lib/gcc/x86_64-alpine-linux-musl: libgettextlib.so: undefined r


From: Jeffrey Walton
Subject: Re: /usr/lib/gcc/x86_64-alpine-linux-musl: libgettextlib.so: undefined reference to `libiconv'
Date: Mon, 15 Jun 2020 19:34:34 -0400

On Mon, Jun 15, 2020 at 7:29 PM Jeffrey Walton <noloader@gmail.com> wrote:
>
> On Mon, Jun 15, 2020 at 7:19 PM Jeffrey Walton <noloader@gmail.com> wrote:
> > On Mon, Jun 15, 2020 at 4:02 PM Bruno Haible <bruno@clisp.org> wrote:
> > > ...
> > > > I believe I'm doing what the manual says: (1) build libiconv, install
> > > > it, (2) build gettext, install it, (3) build libiconv again, install
> > > > it again.
> > >
> > > And you are now in the step (2)?
> >
> > Yes.
> >
> > > We need to find out why gettext-tools/config.status contains an empty
> > > LIBICONV and LTLIBICONV variable. The place to look is 
> > > gettext-tools/config.log.
> > >
> > > > I think the circular dependency is a very bad idea. But it is not my
> > > > call to make.
> > >
> > > It is not as bad as you think:
> > >   - gettext depends on the iconv _library_.
> > >   - The iconv _program_ depends on gettext and the iconv library.
> > > So, it the iconv library and the iconv program were in separate packages,
> > > there would not be a circular dependency.
> >
> > OK, so I was able to get past the link failures by adding
> > LIBS="-liconv" and then configuring.
> >
> > 'make check' is having some troubles, though. I'm seeing intermittent 
> > failures.
> >
> > PASS: msgcat-1
> > FAIL: msgcat-2
> > FAIL: msgcat-3
> > FAIL: msgcat-4
> > PASS: msgcat-5
>
> So this is kind of weird... GetText was configured with
> --with-libiconv-prefix="$MY_PREFIX".
>
> But then:
>
> $ cat gettext-0.20.2/gettext-tools/tests/test-suite.log
> ...
>
> FAIL: msgcat-2
> ==============
> msgcat: Cannot convert from "ISO-8859-1" to "UTF-8". msgcat relies on
> iconv(). This version was built without iconv().
> FAIL msgcat-2 (exit status: 1)
>
> I'm attaching gettext-tools/config.log.

This is really weird. config.log shows:

configure:18771: checking for iconv.h
configure:18771: gcc -c -g2 -O2 -march=native -fPIC -pthread
-I/home/jwalton/tmp/ok2delete/include -DNDEBUG conftest.c >&5
configure:18771: $? = 0
configure:18771: result: yes

And then later during config tests:

| #define HAVE_ICONV_H 1

I am not sure why the libiconv config goes astray later on.

Jeff



reply via email to

[Prev in Thread] Current Thread [Next in Thread]