Bug 1984919

Summary: device-mapper-multipath: FTBFS due to type of PTHREAD_STACK_MIN in glibc 2.34
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: device-mapper-multipathAssignee: LVM and device-mapper development team <lvm-team>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: agk, bmarzins, cfeist, heinzm, kzak, lvm-team, mcsontos, msnitzer, prajnoha, prockai, releng
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: device-mapper-multipath-0.8.6-5.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1984921 (view as bug list) Environment:
Last Closed: 2021-07-30 19:45:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1927309, 1984921    

Description Florian Weimer 2021-07-22 13:24:21 UTC
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.

Comment 1 Ben Marzinski 2021-07-30 19:20:27 UTC
*** Bug 1987420 has been marked as a duplicate of this bug. ***

Comment 2 Ben Marzinski 2021-07-30 19:45:38 UTC
Thanks for the heads-up. Fixed by patch 0023-libmultipath-deal-with-dynamic-PTHREAD_STACK_MIN.patch in device-mapper-multipath-0.8.6-5.fc35