| Summary: | _FORTIFY_SOURCE=2 in default XCFLAGS causes NSS build failure with devtoolset-4 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Kai Engert (:kaie) (inactive account) <kengert> |
| Component: | nss | Assignee: | nss-nspr-maint <nss-nspr-maint> |
| Status: | CLOSED NOTABUG | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.8 | CC: | dueno, fweimer, hkario, huzaifas, rrelyea, thoger |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-08-26 20:55:14 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: | |
| Bug Depends On: | |||
| Bug Blocks: | 1298690 | ||
|
Description
Kai Engert (:kaie) (inactive account)
2016-08-26 20:40:23 UTC
Who knows why RHEL 6 rpm builds enable these fortify features by default? Is it acceptable for RHEL 6 builds to override that and build without it? If not, are we reqiured to use downstream patches that add code that tricks the compiler into believing we're not ignoring the return values? Is there any simpler workaround? You can use -Wno-error=unused-result, either globally, or for specific targets. In general, the assumption is that you do not build with -Werror. (In reply to Florian Weimer from comment #2) > You can use -Wno-error=unused-result, either globally, or for specific > targets. > > In general, the assumption is that you do not build with -Werror. The upstream NSS sources have been changed to build with -Werror Florian, thanks a lot for your help. That compiler option fixes the problem! FWIW, those warnings can be found in the build.log for the regular RHEL-6 NSS build. So building with -Werror should break that build as well. |