libheif
libheif copied to clipboard
libheif-1.12.0 fails to build tests on systems with glibc 2.34
In file included from /usr/x86_64-pc-linux-gnu/include/signal.h:328,
from catch.hpp:7644,
from main.cc:28:
catch.hpp:10376:58: error: call to non-'constexpr' function 'long int sysconf(int)'
10376 | constexpr static std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
| ^~~~~~~~~~~
In file included from /usr/x86_64-pc-linux-gnu/include/bits/sigstksz.h:24,
from /usr/x86_64-pc-linux-gnu/include/signal.h:328,
from catch.hpp:7644,
from main.cc:28:
/usr/x86_64-pc-linux-gnu/include/unistd.h:641:17: note: 'long int sysconf(int)' declared here
641 | extern long int sysconf (int __name) __THROW;
| ^~~~~~~
In file included from main.cc:28:
catch.hpp:10435:45: error: size of array 'altStackMem' is not an integral constant-expression
10435 | char FatalConditionHandler::altStackMem[sigStackSize] = {};
|
Full build log: libheif-1.12.0-build.log
This has been fixed in upstream catch already, see: https://github.com/catchorg/Catch2/issues/2178