[Home]

Summary:ASTERISK-24753: warning happens when compiling with don't optimize
Reporter:Private Name (falves11)Labels:
Date Opened:2015-02-02 16:20:29.000-0600Date Closed:2015-02-02 16:53:32.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:13.1.1 Frequency of
Occurrence
Related
Issues:
Environment:Fedora 20Attachments:
Description:This warning gets printed hundreds of times when I chose "don't optimize". I think the flag "FORTIFY_SOURCE" should not be on if we are not optimizing
           from func_sorcery.c:33:
/usr/include/features.h:327:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
#  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
   ^
  [LD] func_sorcery.o -> func_sorcery.so
  [CC] func_shell
Comments:By: Matt Jordan (mjordan) 2015-02-02 16:53:32.676-0600

Asterisk does not fortify the source. I'm not sure what modifications you've made or what proprietary modules you are compiling, but that exists outside of the Asterisk tree and is not a bug with Asterisk.

And, as the warning implies, if you have a module that is attempting to fortify the source, it requires that the optimization be enabled.

By: Private Name (falves11) 2015-02-02 16:59:03.602-0600

I am compiling a clear svn copy, nothing added to it.
What you say this "fortification" is from an outside source?
Asterisk is the only app in the machine.