Hello,

I tried to build Octave for Windows after updating gnulib from 
6213c5bd72d15ca5e1ea9c34122899e02fed448c to 
f3d96537413f1fc0913cd290b1eea35386295b1b.
I'm using mingw-w64 at commit cf5c50cce0b4f8610eafd95443d1d3767de386a5.

Some configure tests are failing now that have been passing previously with 
errors like the following in config.log:

configure:91729: checking for libqhull_r/libqhull_r.h
configure:91729: gcc -c -g -ggdb -O0 -pthread -fopenmp -fexceptions   
conftest.c >&5
In file included from C:/msys64/mingw64/include/libqhull_r/user_r.h:33,
                 from C:/msys64/mingw64/include/libqhull_r/libqhull_r.h:29,
                 from conftest.c:503:
C:/msys64/mingw64/include/time.h:274:22: error: 'daylight' redeclared as 
different kind of symbol
  274 |   _CRTIMP extern int daylight __MINGW_ATTRIB_DEPRECATED_UCRT;
      |                      ^~~~~~~~
conftest.c:330:20: note: previous declaration of 'daylight' with type 'int 
*(void)'
  330 | #define __daylight daylight
      |                    ^~~~~~~~


If I try to run make anyway, it fails with a similar error:

In file included from ./time.h:54,
                 from ./sys/stat.h:51,
                 from ./fcntl.h:65,
                 from ../../libgnu/access.c:23:
C:/msys64/mingw64/include/time.h:274:22: error: 'daylight' redeclared as 
different kind of symbol
  274 |   _CRTIMP extern int daylight __MINGW_ATTRIB_DEPRECATED_UCRT;
      |                      ^~~~~~~~
In file included from ../../libgnu/access.c:17:
../config.h:3195:20: note: previous declaration of 'daylight' with type 'int 
*(void)'
 3195 | #define __daylight daylight
      |                    ^~~~~~~~


Am I doing something wrong? Is that an issue in mingw-w64? Can gnulib do 
something about it?

Markus


Reply via email to