[SERVER-12456] Debug builds on solaris fail to link Created: 23/Jan/14 Updated: 11/Jul/16 Resolved: 25/Jan/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | 2.5.5 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Andrew Morrow (Inactive) | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | build | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | Solaris |
| Steps To Reproduce: | Build on solaris with --dbg=on |
| Participants: |
| Description |
|
When building the server on solaris with the --dbg=on flag, all targets fail to link, with errors like:
The problem appears to be that we are not linking libssp.so as required on solaris to satisfy these symbols. |
| Comments |
| Comment by Githook User [ 25/Jan/14 ] |
|
Author: {u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}Message: |
| Comment by Andrew Morrow (Inactive) [ 23/Jan/14 ] |
|
Looked into this a bit more, I think the issue is that we are adding -fstack-protector to CCFLAGS, but not to LINKFLAGS or SHLINKFLAGS. Since we don't propagate CCFLAGS to our link step, the link doesn't see -fstack-protector so doesn't know to pull in libssp.so. The fix is to add -fstack-protector to LINKFLAGS and SHLINKFLAGS when we add it to CCFLAGS. |