[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gettext 0.22 fails to build with mingw gcc
From: |
Biswapriyo Nath |
Subject: |
gettext 0.22 fails to build with mingw gcc |
Date: |
Wed, 28 Jun 2023 10:23:43 +0530 |
* gcc version 13.1.0
* Thread model: posix
* Target: x86_64-w64-mingw32
* Source tarball: https://ftp.gnu.org/pub/gnu/gettext/gettext-0.22.tar.gz
* Configure options:
https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-gettext/PKGBUILD
* Extra patches:
https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-gettext
* Compiler error:
gettext-runtime/libasprintf/lib-asprintf.c:23:18: error: static
declaration of 'libasprintf_asprintf' follows non-static declaration
23 | #define asprintf libasprintf_asprintf
| ^~~~~~~~~~~~~~~~~~~~
gettext-runtime/libasprintf/lib-asprintf.c:23:18: note: previous
declaration of 'libasprintf_asprintf' with type 'int(char **, const
char *, ...)'
23 | #define asprintf libasprintf_asprintf
| ^~~~~~~~~~~~~~~~~~~~
gettext-runtime/libasprintf/vasprintf.h:44:12: note: in expansion of
macro 'asprintf'
44 | extern int asprintf (char **result, const char *format, ...)
| ^~~~~~~~
The same error happen with vasprintf also. How can I fix or
troubleshoot this issue? I can provide further information when
required.
Thank you.
- gettext 0.22 fails to build with mingw gcc,
Biswapriyo Nath <=