Project

General

Profile

Actions

Bug #3051

closed

mingw/msys: compile errors

Added by Victor Julien over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

After updating my mingw packages through pacman, I now see these errors as well. See also #2994

  CC       util-unittest-helper.o
  CC       util-var.o
util-time.c: In function 'SCUtcTime':
util-time.c:222:12: error: implicit declaration of function 'gmtime_r'; did you mean 'gmtime_s'? [-Werror=implicit-function-declaration]
  222 |     return gmtime_r(&timep, result);
      |            ^~~~~~~~
      |            gmtime_s
util-time.c:222:12: warning: returning 'int' from a function with return type 'struct tm *' makes pointer from integer without a cast [-Wint-conversion]
  222 |     return gmtime_r(&timep, result);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~
util-time.c: In function 'SCLocalTime':
util-time.c:305:9: error: implicit declaration of function 'localtime_r'; did you mean 'localtime_s'? [-Werror=implicit-function-declaration]
  305 |         localtime_r(&timep, &cached_local_tm[lru]);
      |         ^~~~~~~~~~~
      |         localtime_s
util-time.c:321:56: warning: comparison between pointer and integer
  321 |         if (localtime_r(&timep, &cached_local_tm[lru]) == NULL)
      |                                                        ^~
cc1.exe: some warnings being treated as errors
  CC       util-var-name.o
make[2]: *** [Makefile:1752: util-time.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  CC       win32-syscall.o
make[2]: Leaving directory '/c/Gitlab-Runner/builds/hNRUpEPe/3/inliniac/suricata-ci/suricata/src'
make[1]: *** [Makefile:498: all-recursive] Error 1
make[1]: Leaving directory '/c/Gitlab-Runner/builds/hNRUpEPe/3/inliniac/suricata-ci/suricata'
make: *** [Makefile:424: all] Error 2
ERROR: Job failed: exit status 2

Related issues 1 (0 open1 closed)

Related to Suricata - Support #2994: Cygwin compilation of Suricata failsClosedActions
Actions

Also available in: Atom PDF