Send MinGW-Notify mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.osdn.me/mailman/listinfo/mingw-notify
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of MinGW-Notify digest..."
Please do not reply to this notification; the sender address is unable to
accept incoming e-mail. If you wish to unsubscribe you can do so at
https://lists.osdn.me/mailman/listinfo/mingw-notify.
Today's Topics:
1. [mingw] #39677: Compilation of gettext-0.20.1 fails with
"conflicting types for '_findclose'" error (MinGW Notification List)
----------------------------------------------------------------------
Message: 1
Date: Tue, 15 Oct 2019 15:10:45 +0100
From: MinGW Notification List <[email protected]>
To: OSDN Ticket System <[email protected]>
Subject: [MinGW-Notify] [mingw] #39677: Compilation of gettext-0.20.1
fails with "conflicting types for '_findclose'" error
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8
#39677: Compilation of gettext-0.20.1 fails with "conflicting types for
'_findclose'" error
Open Date: 2019-10-14 17:47
Last Update: 2019-10-15 15:10
URL for this Ticket:
https://osdn.net//projects/mingw/ticket/39677
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=39677
---------------------------------------------------------------------
Last Changes/Comment on this Ticket:
2019-10-15 15:10 Updated by: keith
Comment:
Technically, this should be classified as a GnuLib defect ... it really should
not subvert the system's <stdint.h> typedef of intptr_t, (as it does in
statement #2 in the second code block of the preceding comment), in cases where
the system implementation has provided one. (ISO C99, and later, leave it as
optional for the system implementation to provide intptr_t, but when it is
provided — as it is in mingwrt — then it becomes mandatory to also provide
INTPTR_MIN and INTPTR_MAX macro definitions, so GnuLib could — and should —
readily check availability).
Notwithstanding that this issue arises from a GnuLib bug, its effect may be
mitigated by the attached patch.
---------------------------------------------------------------------
Ticket Status:
Reporter: keith
Owner: (None)
Type: Issues
Status: Open
Priority: 5 - Medium
MileStone: (None)
Component: WSL
Severity: 5 - Medium
Resolution: None
---------------------------------------------------------------------
Ticket details:
When compiling GNU gettext-0.20.1 with GCC-8.2.0 and mingwrt-5.2.2, I see:
mingw32-gcc -DLOCALEDIR=\"/mingw/share/locale\"
-DBISON_LOCALEDIR=\"/usr/share/locale\"
-DLOCALE_ALIAS_PATH=\"/mingw/share/locale\" -DUSEJAVA=1
-DGETTEXTJAR=\"/mingw/share/gettext/gettext.jar\" -DLIBDIR=\"/mingw/lib\"
-DGETTEXTDATADIR=\"/mingw/share/gettext\"
-DPROJECTSDIR=\"/mingw/share/gettext/projects\" -DEXEEXT=\".exe\"
-DHAVE_CONFIG_H -I. -I../../../src/gettext-0.20.1/gettext-tools/src -I.. -I.
-I../../../src/gettext-0.20.1/gettext-tools/src -I..
-I../../../src/gettext-0.20.1/gettext-tools
-I../../../src/gettext-0.20.1/gettext-tools/libgrep -I../gnulib-lib
-I../../../src/gettext-0.20.1/gettext-tools/gnulib-lib -I../intl
-I../../../src/gettext-0.20.1/gettext-tools/../gettext-runtime/intl
-DINSTALLDIR=\"/mingw/bin\" -I/mingw/include -g -O2 -c -o msgfmt-write-qt.o
`test -f 'write-qt.c' || echo
'../../../src/gettext-0.20.1/gettext-tools/src/'`write-qt.c
In file included from ../gnulib-lib/sys/stat.h:542,
from ../gnulib-lib/fcntl.h:58,
from
../../../src/gettext-0.20.1/gettext-tools/gnulib-lib/binary-io.h:22,
from
../../../src/gettext-0.20.1/gettext-tools/src/write-qt.c:43:
/home/keith/mingw32-gcc-8.2.0/include/io.h:484:38: error: conflicting types for
'_findclose'
_CRTIMP __cdecl __MINGW_NOTHROW int _findclose (intptr_t);
^~~~~~~~~~
In file included from /home/keith/mingw32-gcc-8.2.0/include/wchar.h:254,
from ../gnulib-lib/wchar.h:87,
from /mingw/include/iconv.h:110,
from ../gnulib-lib/iconv.h:27,
from
../../../src/gettext-0.20.1/gettext-tools/src/po-charset.h:25,
from
../../../src/gettext-0.20.1/gettext-tools/src/write-qt.c:35:
/home/keith/mingw32-gcc-8.2.0/include/io.h:484:38: note: previous declaration
of '_findclose' was here
_CRTIMP __cdecl __MINGW_NOTHROW int _findclose (intptr_t);
^~~~~~~~~~
make[5]: *** [Makefile:3324: msgfmt-write-qt.o] Error 1
--
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN
Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net
URL for this Ticket:
https://osdn.net/projects/mingw/ticket/39677
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=39677
------------------------------
Subject: Digest Footer
_______________________________________________
MinGW-Notify mailing list
[email protected]
https://lists.osdn.me/mailman/listinfo/mingw-notify
------------------------------
End of MinGW-Notify Digest, Vol 25, Issue 9
*******************************************