bug-gettext
[Top][All Lists]
Advanced

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

Re: [bug-gettext] Can't compile on Windows: multiple definition of reloc


From: Michele Locati
Subject: Re: [bug-gettext] Can't compile on Windows: multiple definition of relocate2
Date: Thu, 2 May 2019 08:57:57 +0200

Hi Bruno,

> > /home/m/build-gettext-windows/static-32/compiled/gettext/lib/libiconv.a(relocatable.o):
> > In function `relocate2':
> > /home/m/build-gettext-windows/static-32/source/libiconv-1.15/lib/relocatable.c:583:
> > multiple definition of `relocate2'
>
> libiconv.a should not export the symbol 'relocate2'. Probably you are using a
> libiconv 1.15, reconfigured with a more recent gnulib.
>
> Instead, please use libiconv 1.16. It fixes this problem.
>
> > /home/m/build-gettext-windows/static-32/configured/gettext-0.20-rc1/gettext-tools/intl/.libs/libintl.a(relocatable.o):
> > In function `relocate2':
> > /home/m/build-gettext-windows/static-32/source/gettext-0.20-rc1/gettext-tools/../gettext-runtime/intl/relocatable.c:582:
> > multiple definition of `relocate2'
>
> libintl.a should not export the symbol 'relocate2' either. This is now fixed
> through
> https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=5a652b9e4d357d12ab7e85fd041064dbda626413


The above changes fixed the "shared" build, but the error is still
present with the "static" build (at least while cross-compiling with
mingw):

libtool: link: i686-w64-mingw32.static-gcc -g -O2
-Wl,--disable-auto-import -o msgcmp.exe msgcmp-msgcmp.o
msgcmp-msgl-fsearch.o gettext.res
-L/home/m/build-gettext-windows/static-32/compiled/gettext/lib
./.libs/libgettextsrc.a
/home/m/build-gettext-windows/static-32/configured/gettext-0.20-rc1/gettext-tools/gnulib-lib/.libs/libgettextlib.a
/home/m/build-gettext-windows/static-32/configured/gettext-0.20-rc1/libtextstyle/lib/.libs/libtextstyle.a
/home/m/build-gettext-windows/static-32/configured/gettext-0.20-rc1/gettext-tools/intl/.libs/libintl.a
/home/m/build-gettext-windows/static-32/compiled/gettext/lib/libiconv.a
/home/m/build-gettext-windows/static-32/configured/gettext-0.20-rc1/gettext-tools/intl/.libs/libintl.a(relocatable.o):
In function `relocate2':
/home/m/build-gettext-windows/static-32/source/gettext-0.20-rc1/gettext-tools/../gettext-runtime/intl/relocatable.c:582:
multiple definition of `relocate2'
/home/m/build-gettext-windows/static-32/configured/gettext-0.20-rc1/gettext-tools/gnulib-lib/.libs/libgettextlib.a(relocatable.o):/home/m/build-gettext-windows/static-32/source/gettext-0.20-rc1/gettext-tools/gnulib-lib/relocatable.c:582:
first defined here

Full build log at https://pastebin.com/nH87VeyY
Compiled using
https://github.com/mlocati/gettext-iconv-windows/tree/858a9dc257f0d1c19d7b2f0c93d59412204677f4
with
./compile-iconv-gettext-windows.sh" --link static --bits 32 --iconv
1.16 --gettext 0.20-rc1

--
Michele



reply via email to

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