[SERVER-12468] Remove glibc version check Created: 24/Jan/14  Updated: 11/Jul/16  Resolved: 04/Dec/14

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 2.8.0-rc3

Type: Task Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Jonathan Reams
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change
Sprint: BUILD 2.8.0-rc2
Participants:

 Description   

During our work to establish a build baseline for 2.5.5, we have uncovered some facts that seem to undermine the value of the glibc version check that we perform.

Specifically, it is possible that when building on a system offering glibc > 2.2 the generated binary may only be dependent on GLIBC_2.2 level symbols, but still may not be able to run on systems offering only glibc 2.2.

The incompatibility arises when the system gcc has been configured to expect feature support compatible with a glibc newer than 2.2, since that is what is shipped on the system (see DT_GNU_HASH and https://bugzilla.redhat.com/show_bug.cgi?id=482848).

Since our glibc version check can't detect this sort of misconfiguration, it doesn't actually offer any protection, and we should remove it.



 Comments   
Comment by Jonathan Reams [ 04/Dec/14 ]

This was resolved. Going forward, specifying --no-glibc-check will cause an error in scons.

Comment by Githook User [ 04/Dec/14 ]

Author:

{u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}

Message: SERVER-12468 Remove no-glibc-check from LSM variant
Branch: master
https://github.com/10gen/mci/commit/f7b8d16e1df657f4c4afd17c7894b3ad76ddf58a

Comment by Githook User [ 04/Dec/14 ]

Author:

{u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}

Message: SERVER-12468 Remove no-glibc-check option from scons
Branch: master
https://github.com/mongodb/mongo/commit/7a135d1c39374a3600ff6009ac8cfac816b4ff2b

Comment by Githook User [ 04/Dec/14 ]

Author:

{u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}

Message: SERVER-12468 Remove no-glibc-check from master projects
Branch: master
https://github.com/10gen/mci/commit/c13e6364385b6bf5fe5917a8c93b0af295613848

Comment by Jonathan Reams [ 06/Nov/14 ]

The first CR (http://codereview.10gen.com/4757293119832064) disables the option in scons, and the second disables it in MCI. They will need to be deployed roughly simultaneously.

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