[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gettext] 0.19.8.1 mingw-w64 build failure due to DLL variable e
From: |
Bruno Haible |
Subject: |
Re: [bug-gettext] 0.19.8.1 mingw-w64 build failure due to DLL variable exports |
Date: |
Wed, 14 Mar 2018 18:36:07 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-112-generic; KDE/5.18.0; x86_64; ; ) |
Hi,
> I get errors at the gettext-tools compilation stage:
>
> GEN libgettextlib.la
> .libs/argmatch.o: In function `_argmatch_die':
> gettext-0.19.8.1/gettext-tools/gnulib-lib/argmatch.c:63: undefined reference
> to
> `_imp__exit_failure'
> .libs/backupfile.o: In function `get_version':
> gettext-0.19.8.1/gettext-tools/gnulib-lib/backupfile.c:219: undefined
> reference
> to `_imp__argmatch_die'
> .libs/clean-temp.o: In function `gl_list_nx_create_empty':
> gettext-0.19.8.1/gettext-tools/gnulib-lib/gl_list.h:562: undefined reference
> to
> `_imp__gl_linkedhash_list_implementation'
> gettext-0.19.8.1/gettext-tools/gnulib-lib/gl_list.h:562: undefined reference
> to
> `_imp__gl_linkedhash_list_implementation'
> .libs/error-progname.o: In function `maybe_print_progname':
> gettext-0.19.8.1/gettext-tools/gnulib-lib/error-progname.c:39: undefined
> reference to `_imp__program_name'
> .libs/html-ostream.o: In function `gl_list_nx_create_empty':
> gettext-0.19.8.1/gettext-tools/gnulib-lib/gl_list.h:562: undefined reference
> to
> `_imp__gl_array_list_implementation'
> ../woe32dll/.libs/c++html-styled-ostream.o: In function
> `_static_initialization_and_destruction_0':
> bld\gettext-tools\gnulib-lib/html-styled-ostream.c:55: undefined reference to
> `_imp__styled_ostream_typeinfo'
> ../woe32dll/.libs/c++term-styled-ostream.o: In function
> `_static_initialization_and_destruction_0':
> bld\gettext-tools\gnulib-lib/term-styled-ostream.c:74: undefined reference to
> `_imp__styled_ostream_typeinfo'
> .libs/xerror.o: In function `multiline_warning':
> gettext-0.19.8.1/gettext-tools/gnulib-lib/xerror.c:51: undefined reference to
> `_imp__error_with_progname'
> gettext-0.19.8.1/gettext-tools/gnulib-lib/xerror.c:53: undefined reference to
> `_imp__program_name'
> .libs/xerror.o: In function `multiline_error':
> gettext-0.19.8.1/gettext-tools/gnulib-lib/xerror.c:94: undefined reference to
> `_imp__rpl_error_message_count'
> .libs/obstack.o: In function `print_and_abort':
> gettext-0.19.8.1/gettext-tools/gnulib-lib/obstack.c:342: undefined reference
> to
> `_imp__exit_failure'
> collect2.exe: error: ld returned 1 exit status
> Makefile:2868: recipe for target 'libgettextlib.la' failed
If you followed the build instructions [1], please register a bug at the tracker
[2], and tell whether you are compiling with 32-bit or 64-bit mingw-w64.
> This is preceded by numerous warnings, like:
>
> gettext-0.19.8.1/gettext-tools/gnulib-lib/argmatch.c:68:18: warning:
> 'argmatch_die' redeclared without dllimport attribute: previous dllimport
> ignored [-Wattributes]
> argmatch_exit_fn argmatch_die = __argmatch_die;
You can ignore these warnings.
> I have no idea how this was supposed to work.
Consider the code and comments in
gnulib-local/lib/exitfail.h.diff
m4/woe32-dll.m4
gettext-tools/woe32dll/export.h
gettext-tools/woe32dll/*-exports.c
It is possible that the #if in gettext-tools/woe32dll/export.h needs to be
adjusted.
Bruno
[1] http://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob;f=INSTALL.windows
[2] https://savannah.gnu.org/bugs/?group=gettext