Summary: | net-misc/curl-7.29.0-r1 on hardened with -D_FORTIFY_SOURCE in CFLAGS - configure: CFLAGS error: CFLAGS may only be used to specify C compiler flags, not macro definitions. Use CPPFLAGS for: -D_FORTIFY_SOURCE=2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bruno <bonbons> |
Component: | Current packages | Assignee: | Anthony Basile <blueness> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | gregkh |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
config.log
emerge --info build.log |
Description
Bruno
2013-03-19 08:58:31 UTC
Created attachment 342610 [details]
config.log
Created attachment 342612 [details]
emerge --info
Use CPPFLAGS for -D_FORTIFY_SOURCE=2 doesn't sound right. Can you attatch the build log? Created attachment 342842 [details]
build.log
(In reply to comment #4) > Created attachment 342842 [details] > build.log Okay this occurs if you have CFLAGS="-D_FORTIFY_SOURCE=2" anywhere in your environment. Can you see if you have that in your make.conf? Or maybe somewhere else you in system? There's nothing for me to do with curl since curl never touches _FORTIFY_SOURCE and it does respect CPP/CFLAGS. (In reply to comment #5) > Okay this occurs if you have CFLAGS="-D_FORTIFY_SOURCE=2" anywhere in your > environment. Can you see if you have that in your make.conf? Or maybe > somewhere else you in system? There's nothing for me to do with curl since > curl never touches _FORTIFY_SOURCE and it does respect CPP/CFLAGS. I had it in CFLAGS/CXXFLAGS via /etc/portage/bashrc (), dating back from early hardening some longer time ago. Removed it from there as hardened gcc profile is expected to handle it. With that fixed, curl compile. (In reply to comment #6) > (In reply to comment #5) > > Okay this occurs if you have CFLAGS="-D_FORTIFY_SOURCE=2" anywhere in your > > environment. Can you see if you have that in your make.conf? Or maybe > > somewhere else you in system? There's nothing for me to do with curl since > > curl never touches _FORTIFY_SOURCE and it does respect CPP/CFLAGS. > > I had it in CFLAGS/CXXFLAGS via /etc/portage/bashrc (), dating back from > early hardening some longer time ago. > Removed it from there as hardened gcc profile is expected to handle it. With > that fixed, curl compile. thanks. |