bug-gettext
[Top][All Lists]
Advanced

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

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


From: Michele Locati
Subject: [bug-gettext] Can't compile on Windows: multiple definition of relocate2
Date: Tue, 16 Apr 2019 11:08:55 +0200

I'm trying to cross-compile gettext-tools 0.20-rc1 with mxe (like I
did for gettext 0.19.8.1), but I have this error:

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
/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'
/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
collect2: error: ld returned 1 exit status
Makefile:2907: recipe for target 'msgcmp.exe' failed
make[3]: *** [msgcmp.exe] Error 1
make[3]: Leaving directory
'/home/m/build-gettext-windows/static-32/configured/gettext-0.20-rc1/gettext-tools/src'

You can find the full log here: https://pastebin.com/m9uW2BA2

I really don't know how to fix this issue...

To replicate this error:
- I use Ubuntu 18.04
- checkout the gettext-0.20 branch of
https://github.com/mlocati/gettext-iconv-windows
- run this command:
./compile-iconv-gettext-windows.sh --iconv 1.15 --gettext 0.20-rc1
--bits 32 --link static

--
Michele



reply via email to

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