[asterisk-bugs] [JIRA] (ASTERISK-24032) warning: "_FORTIFY_SOURCE" redefined

cloos (JIRA) noreply at issues.asterisk.org
Thu Jul 31 01:29:56 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=221088#comment-221088 ] 

cloos commented on ASTERISK-24032:
----------------------------------

I should add, Gentoo patches gcc adding to gcc/c-family/c-cppbuiltin.c:

+  /* Fortify Source enabled by default w/optimization.  */
+  cpp_define (pfile, "_FORTIFY_SOURCE=((defined __OPTIMIZE__ && __OPTIMIZE__ > 0) ? 2 : 0)");
+

This can be seen by running:

:; gcc -O2 -dM -E - </dev/null |grep FORT
#define _FORTIFY_SOURCE ((defined __OPTIMIZE__ && __OPTIMIZE__ > 0) ? 2 : 0)

Some other dists do this – or something like it – too.


> warning: "_FORTIFY_SOURCE" redefined
> ------------------------------------
>
>                 Key: ASTERISK-24032
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24032
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: 11.11.0
>            Reporter: Kilburn
>            Assignee: Kilburn
>            Severity: Minor
>         Attachments: config.log, makeopts, makeopts.embed_rules, makeopts.in
>
>
> running make with asterisk 11.11.0, I get 
> <command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
> Changelog show changes against ast 1.8 but do not know if this was carried over to ast 11.
> Thanks



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list