Building device-mapper-multipath against glibc 2.34 results in the following build failure:
util.c: In function 'setup_thread_attr':
util.c:226:23: error: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Werror=sign-compare]
226 | if (stacksize < PTHREAD_STACK_MIN)
| ^
cc1: all warnings being treated as errors
make[1]: *** [../Makefile.inc:154: util.o] Error 1
The reason for the warning is that PTHREAD_STACK_MIN is now non-constant and has type long int. Previously its type was int, but it was a constant, so the compiler was able to suppress the warning.
Building device-mapper-multipath against glibc 2.34 results in the following build failure: util.c: In function 'setup_thread_attr': util.c:226:23: error: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'long int' [-Werror=sign-compare] 226 | if (stacksize < PTHREAD_STACK_MIN) | ^ cc1: all warnings being treated as errors make[1]: *** [../Makefile.inc:154: util.o] Error 1 The reason for the warning is that PTHREAD_STACK_MIN is now non-constant and has type long int. Previously its type was int, but it was a constant, so the compiler was able to suppress the warning.