[SERVER-74633] Fix build with clang16 compiler on 32bit hosts Created: 03/Mar/23  Updated: 27/Oct/23  Resolved: 13/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Khem Raj Assignee: Backlog - Security Team
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File 0001-Fix-type-mismatch-on-32bit-arches.patch    
Assigned Teams:
Server Security
Operating System: ALL
Participants:

 Description   

4.19 release fails to build with clang16+ 

src/mongo/util/processinfo_linux.cpp:424:16: error: no matching function for call to 'max'
        return std::max(socketIds.size(), 1ul);



 Comments   
Comment by Elizabeth Roytburd [ 13/Mar/23 ]

Closing this out since we dropped support for 32bit.

Comment by Khem Raj [ 09/Mar/23 ]

Feel free to take this patch I am not interested in CLA

Comment by Chris Kelly [ 09/Mar/23 ]

Hi raj.khem@gmail.com,

Thanks for bringing up this issue, and suggesting a fix!

If you would like attribution for this, please create a pull request here and sign our Contributor's Agreement as part of our considering the PR.

Christopher

Comment by Khem Raj [ 03/Mar/23 ]

attached is the fix

Generated at Thu Feb 08 06:28:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.