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:19:27 -0400

On Mon, Jun 15, 2020 at 4:02 PM Bruno Haible <bruno@clisp.org> wrote:
>
> Jeffrey Walton wrote:
> > > Jeffrey Walton wrote:
> > > > $ grep ICONV gettext-tools/config.status
> > > > S["ICONV_H"]="iconv.h"
> > > > S["LTLIBICONV"]=""
> > > > S["LIBICONV"]=""
> > >
> > > This is the situation that is expected when you use the libc's built-in
> > > iconv facility.
> > >
> > > The error, on the other hand, indicates that you're using libiconv's
> > > <iconv.h>.
> > >
> > > Possibly you configured gettext before installing libiconv, and are now
> > > compiling gettext after installing libiconv? This is not supported. If
> > > the list of packages on your system changes significantly, you must
> > > reconfigure gettext.
> >
> > 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

PASS: msgcomm-3
FAIL: msgcomm-4
FAIL: msgcomm-5
FAIL: msgcomm-6
FAIL: msgcomm-7
PASS: msgcomm-8

PASS: msgcomm-15
FAIL: msgcomm-16
PASS: msgcomm-17

FAIL: msgconv-1
FAIL: msgconv-2
PASS: msgconv-3
PASS: msgconv-4
FAIL: msgconv-5
FAIL: msgconv-6
FAIL: msgconv-7

Let me see if I can find out what is going on with Alpine.

Jeff



reply via email to

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