[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] 0.19.8.1 mingw-w64 build failure due to DLL variable expor
From: |
lrn1986 |
Subject: |
[bug-gettext] 0.19.8.1 mingw-w64 build failure due to DLL variable exports |
Date: |
Wed, 14 Mar 2018 16:27:15 +0300 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:59.0) Gecko/20100101 Thunderbird/59.0 |
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
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;
gcc version is 4.9.2
My impression is that headers declare variables with dllimport, which means
that the linker (when linking in files that use exit_failure, other than
exitfil.o itself) is looking for things like _imp__exit_failure, whereas the
actual exitfail.o has just _exit_failure, because there is no special magic for
naming the symbol in the object file, and previous dllimport attribute from the
header is ignored by gcc.
I have no idea how this was supposed to work.
signature.asc
Description: OpenPGP digital signature
- [bug-gettext] 0.19.8.1 mingw-w64 build failure due to DLL variable exports,
lrn1986 <=