PostgreSQL installation fails because of strchrnul
When running mise install on MacOS (Apple M4 Max), the following error happens:
snprintf.c:414:27: error: 'strchrnul' is only available on macOS 15.4 or newer [-Werror,-Wunguarded-availability-new]
414 | const char *next_pct = strchrnul(format + 1, '%');
| ^~~~~~~~~
snprintf.c:366:14: note: 'strchrnul' has been marked as being introduced in macOS 15.4 here, but the deployment target is macOS 15.0.0
366 | extern char *strchrnul(const char *s, int c);
| ^
snprintf.c:414:27: note: enclose 'strchrnul' in a __builtin_available check to silence this warning
414 | const char *next_pct = strchrnul(format + 1, '%');
| ^~~~~~~~~
415 |
416 | /* Dump literal data we just scanned over */
417 | dostr(format, next_pct - format, target);
418 | if (target->failed)
419 | break;
420 |
421 | if (*next_pct == '\0')
422 | break;
423 | format = next_pct;
|
1 error generated.
make[2]: *** [snprintf.o] Error 1
make[1]: *** [all-port-recurse] Error 2
make: *** [all-src-recurse] Error 2
mise ERROR Failed to install tool: postgres@17.2
This seems similar to PostgreSQL installation fails on macOS 15.4 due... (gitlab-development-kit#2556 - closed).
Edited by Angelo Gulina