bug-gettext
[Top][All Lists]
Advanced

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

Cross-compiling for Windows: __stat64 redefined


From: Michele Locati
Subject: Cross-compiling for Windows: __stat64 redefined
Date: Mon, 17 Oct 2022 15:23:56 +0200

I'm cross-compiling gettext 0.21.1 with mingw.

I configure it with:

./configure --enable-relocatable --prefix=/gettext --disable-shared \
    --enable-static --quiet --enable-silent-rules \
    --host=x86_64-w64-mingw32.static --config-cache \
    --disable-dependency-tracking --disable-java --disable-native-java \
    --disable-csharp --disable-rpath --disable-openmp --disable-curses \
    --without-emacs --disable-acl --enable-threads=windows \
    --with-included-libxml --without-bzip2 --without-xz \
    ac_cv_func__set_invalid_parameter_handler=no \
    CPPFLAGS="-D__USE_MINGW_ANSI_STDIO=0 -Wno-int-to-pointer-cast
-Wno-attributes -Wno-write-strings -g0 -O2 -DLIBXML_STATIC"

I have this warning about __stat64 being redefined:

  CC       tempname.lo
[...]/gettext-tools/gnulib-lib/tempname.c:65:0: warning: "__stat64" redefined
 # define __stat64(file, buf) stat (file, buf)
 ^
In file included from
/root/mxe/usr/x86_64-w64-mingw32.static/include/sys/stat.h:58:0,
                 from ./sys/stat.h:47,
                 from ./fcntl.h:64,
                 from [...]/gettext-tools/gnulib-lib/tempname.c:50:
/root/mxe/usr/x86_64-w64-mingw32.static/include/_mingw_stat64.h:97:0:
note: this is the location of the previous definition
 #define __stat64 _stat64
 ^

I *think* this can be solved by upgrading gnulib, since I *think* that
its commit 044bf893acee0a55b22b4be0ede0e3ce010c480a may fix this
issue...
(please remark the two "I *think*" ;) )

--
Michele



reply via email to

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