Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue Building on windows #532

Open
BHubbard946 opened this issue Nov 29, 2024 · 3 comments
Open

Issue Building on windows #532

BHubbard946 opened this issue Nov 29, 2024 · 3 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@BHubbard946
Copy link

Hello im having the following issue when trying to build on windows, any idea what the issue might be?

C:\Users\uia77586\Desktop\WebUi\webui>mingw32-make
process_begin: CreateProcess(NULL, uname, ...) failed.
process_begin: CreateProcess(NULL, uname, ...) failed.
process_begin: CreateProcess(NULL, uname, ...) failed.
"Build WebUI library (gcc  release static)..."
C:/Users/uia77586/Desktop/WebUi/webui//src/civetweb/civetweb.c:711:8: error: redefinition of 'struct timespec'
 struct timespec {
        ^~~~~~~~
In file included from C:/Users/uia77586/Desktop/WebUi/webui//src/civetweb/civetweb.c:534:0:
c:\mingw\include\time.h:115:8: note: originally defined here
 struct timespec
        ^~~~~~~~
C:/Users/uia77586/Desktop/WebUi/webui//src/civetweb/civetweb.c:987:1: error: static declaration of 'timegm' follows non-static declaration
 timegm(struct tm *tm)
 ^~~~~~
C:/Users/uia77586/Desktop/WebUi/webui//src/civetweb/civetweb.c:671:8: note: previous declaration of 'timegm' was here
 time_t timegm(struct tm *tm);
        ^~~~~~
C:/Users/uia77586/Desktop/WebUi/webui//src/civetweb/civetweb.c: In function 'mg_read_inner':
C:/Users/uia77586/Desktop/WebUi/webui//src/civetweb/civetweb.c:6635:23: error: 'INT_MAX' undeclared (first use in this function)
      (int64_t)((len > INT_MAX) ? INT_MAX : len); /* since the return value is
                       ^~~~~~~
C:/Users/uia77586/Desktop/WebUi/webui//src/civetweb/civetweb.c:6635:23: note: each undeclared identifier is reported only once for each function it appears in
C:/Users/uia77586/Desktop/WebUi/webui//src/civetweb/civetweb.c: In function 'mg_read':
C:/Users/uia77586/Desktop/WebUi/webui//src/civetweb/civetweb.c:6753:12: error: 'INT_MAX' undeclared (first use in this function)
  if (len > INT_MAX) {
            ^~~~~~~
C:/Users/uia77586/Desktop/WebUi/webui//src/civetweb/civetweb.c: In function 'mg_write':
C:/Users/uia77586/Desktop/WebUi/webui//src/civetweb/civetweb.c:6924:12: error: 'INT_MAX' undeclared (first use in this function)
  if (len > INT_MAX) {
            ^~~~~~~
C:/Users/uia77586/Desktop/WebUi/webui//src/civetweb/civetweb.c: In function 'set_ports_option':
C:/Users/uia77586/Desktop/WebUi/webui//src/civetweb/civetweb.c:16244:29: error: 'INT_MAX' undeclared (first use in this function)
   if ((opt_listen_backlog > INT_MAX) || (opt_listen_backlog < 1)) {
                             ^~~~~~~
GNUmakefile:139: recipe for target '--release' failed
mingw32-make: *** [--release] Error 1```
@AlbertShown
Copy link
Contributor

What MinGW version you are using?

@BHubbard946
Copy link
Author

Im using

GNU Make 3.82.90
Built for i686-pc-mingw32

gcc (MinGW.org GCC-6.3.0-1) 6.3.0

@AlbertShown AlbertShown added the bug Something isn't working label Nov 29, 2024
@AlbertShown
Copy link
Contributor

All those issues are coming from Civetweb.
Reported here: civetweb/civetweb#1311

@AlbertShown AlbertShown added help wanted Extra attention is needed question Further information is requested and removed bug Something isn't working labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants