View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009205 | GNUnet | util library | public | 2024-09-22 14:47 | 2024-09-23 13:32 |
Reporter | thejackimonster | Assigned To | Christian Grothoff | ||
Priority | urgent | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
OS | Archlinux | ||||
Product Version | Git master | ||||
Target Version | 0.22.1 | Fixed in Version | 0.22.1 | ||
Summary | 0009205: Build of GNUnet fails because of calling strptime in strings.c | ||||
Description | strings.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 Reproduce | I 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 Information | I 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... | ||||
Tags | No tags attached. | ||||
|
Following commit fixes the issue. https://git.gnunet.org/gnunet.git/commit/?id=7c785c8c5c6c72e26dc8418d9c1279f8ee8c8a3a |
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 |