View Issue Details

IDProjectCategoryView StatusLast Update
0009205GNUnetutil librarypublic2024-09-23 13:32
Reporterthejackimonster Assigned ToChristian Grothoff  
PriorityurgentSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
OSArchlinux 
Product VersionGit master 
Target Version0.22.1Fixed in Version0.22.1 
Summary0009205: Build of GNUnet fails because of calling strptime in strings.c
Descriptionstrings.c: In function 'GNUNET_STRINGS_fancy_time_to_absolute':
strings.c:318:15: error: implicit declaration of function 'strptime'; did you mean 'strftime'? [-Wimplicit-function-declaration]
  318 | if ((eos != strptime (fancy_time, "%a %b %d %H:%M:%S %Y", &tv)) &&
      | ^~~~~~~~
      | strftime
strings.c:318:12: warning: comparison between pointer and integer
  318 | if ((eos != strptime (fancy_time, "%a %b %d %H:%M:%S %Y", &tv)) &&
      | ^~
strings.c:319:12: warning: comparison between pointer and integer
  319 | (eos != strptime (fancy_time, "%c", &tv)) &&
      | ^~
strings.c:320:12: warning: comparison between pointer and integer
  320 | (eos != strptime (fancy_time, "%Ec", &tv)) &&
      | ^~
strings.c:321:12: warning: comparison between pointer and integer
  321 | (eos != strptime (fancy_time, "%Y-%m-%d %H:%M:%S", &tv)) &&
      | ^~
strings.c:322:12: warning: comparison between pointer and integer
  322 | (eos != strptime (fancy_time, "%Y-%m-%d %H:%M", &tv)) &&
      | ^~
strings.c:323:12: warning: comparison between pointer and integer
  323 | (eos != strptime (fancy_time, "%x", &tv)) &&
      | ^~
strings.c:324:12: warning: comparison between pointer and integer
  324 | (eos != strptime (fancy_time, "%Ex", &tv)) &&
      | ^~
strings.c:325:12: warning: comparison between pointer and integer
  325 | (eos != strptime (fancy_time, "%Y-%m-%d", &tv)) &&
      | ^~
strings.c:326:12: warning: comparison between pointer and integer
  326 | (eos != strptime (fancy_time, "%Y-%m", &tv)) &&
      | ^~
strings.c:327:12: warning: comparison between pointer and integer
  327 | (eos != strptime (fancy_time, "%Y", &tv)))
      | ^~
make[4]: *** [Makefile:2806: libgnunetutil_la-strings.lo] Error 1
Steps To ReproduceI assume this could be related to my build system:
- gcc (GCC) 14.2.1 20240910
- automake (GNU automake) 1.17
- autoconf (GNU Autoconf) 2.72
- GNU Make 4.4.1

But I simply run following:
./bootstrap
./configure
make
Additional InformationI have found this which might be related:
https://stackoverflow.com/questions/35234152/strptime-giving-implicit-declaration-and-undefined-reference

So potentially the configuration just setup bad defaults...
TagsNo tags attached.

Activities

Issue History

Date Modified Username Field Change
2024-09-22 14:47 thejackimonster New Issue
2024-09-22 14:48 thejackimonster Steps to Reproduce Updated
2024-09-23 13:30 thejackimonster Assigned To => Christian Grothoff
2024-09-23 13:30 thejackimonster Status new => resolved
2024-09-23 13:30 thejackimonster Resolution open => fixed
2024-09-23 13:30 thejackimonster Fixed in Version => 0.22.1
2024-09-23 13:30 thejackimonster Note Added: 0023348