[SERVER-32161] MongoDB 3.2+ fails to compile on PPC64LE with glibc 2.26+ Created: 04/Dec/17  Updated: 30/Oct/23  Resolved: 16/Jan/18

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

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.6
Sprint: Platforms 2018-01-29
Participants:

 Description   

In Glibc 2.26+, the ucontext struct was changed from

typedef struct ucontext { ... } ucontext_t

to

typedef struct ucontext_t { ... } ucontext_t

This breaks compilation due to the presence of this line:

typedef ucontext ucontext_t;

in
src/third_party/gperftools-2.2/src/stacktrace_powerpc-linux-inl.h
src/third_party/gperftools-2.5/src/stacktrace_powerpc-linux-inl.h

This was fixed upstream in: https://github.com/gperftools/gperftools/commit/e41bc414048eb4a37743e294bed3f1c63a1fa559

This was reported original by Jim Van Fleet at IBM.



 Comments   
Comment by Githook User [ 18/Jan/18 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-32161 MongoDB 3.2+ fails to compile on PPC64LE with glibc 2.26+

(cherry picked from commit 2f788aa745ca1366704b821087225af49ce3285a)
Branch: v3.6
https://github.com/mongodb/mongo/commit/d19a842e54d9bf08a37b97f559bbca598e551c6c

Comment by Githook User [ 16/Jan/18 ]

Author:

{'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto', 'username': 'markbenvenuto'}

Message: SERVER-32161 MongoDB 3.2+ fails to compile on PPC64LE with glibc 2.26+
Branch: master
https://github.com/mongodb/mongo/commit/2f788aa745ca1366704b821087225af49ce3285a

Generated at Thu Feb 08 04:29:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.