You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compile error due to undefined PRId64, noticed on FreeBSD (noticed when building the libucl python bindings in the textproc/py-ucl port)...
cc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -I/usr/local/include -fstack-protector-strong -fno-strict-aliasing -fPIC -DCURL_FOUND=1 -Iinclude -Isrc -Iuthash -Iklib -c src/ucl_schema.c -o build/temp.freebsd-12.4-STABLE-20221129-amd64-cpython-39/src/ucl_schema.o
src/ucl_schema.c:387:46: error: expected ')'
"string is too big: %u, maximum is: %" PRId64,
^
src/ucl_schema.c:398:48: error: expected ')'
"string is too short: %u, minimum is: %" PRId64,
^
In this case, there is a uthash.h in /usr/local/include (from uthash 2.3.0). The older uthash.h (from 1.9.9) bundled with libucl includes inttypes.h - that was removed in newer uthash because it does not need inttypes.h (Avoid inclusion of inttypes.h).
If ucl_schema.c uses PRId64, it should explicitly include the header that provides PRId64 (regardless of the header files that uthash.h may or may not include). Here's a patch to remedy that...
libucl could import the latest version of uthash.h, but looking at changes from the current bundled version (1.9.9) to 2.3.0, I don't see any critical updates (no security fixes nor any significant changes that would lead to performance improvement).
The text was updated successfully, but these errors were encountered:
Compile error due to undefined PRId64, noticed on FreeBSD (noticed when building the libucl python bindings in the textproc/py-ucl port)...
In this case, there is a uthash.h in /usr/local/include (from uthash 2.3.0). The older uthash.h (from 1.9.9) bundled with libucl includes inttypes.h - that was removed in newer uthash because it does not need inttypes.h (Avoid inclusion of inttypes.h).
If ucl_schema.c uses PRId64, it should explicitly include the header that provides PRId64 (regardless of the header files that uthash.h may or may not include). Here's a patch to remedy that...
libucl could import the latest version of uthash.h, but looking at changes from the current bundled version (1.9.9) to 2.3.0, I don't see any critical updates (no security fixes nor any significant changes that would lead to performance improvement).
The text was updated successfully, but these errors were encountered: