<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Asterisk requires GCC to build properly. The most recent version of Xcode symlinks gcc to Clang’s compiler. Which is… unfortunate.</div><div><br></div><div>I install GCC myself (gcc-4.8 for 12 and trunk; gcc-4.2 for 11 and earlier) for compiling Asterisk on OS X. Both are easily installed via Homebrew (brew install apple-gcc42 gcc48), and work fine for me.</div><div><br></div><div>You select the compiler by setting CC and CXX in the environment when you invoke configure:</div><div><br></div><div> CC=gcc-4.2 CXX=g++-4.2 ./configure</div><div><br></div><div>If you just want Asterisk installed on OS X, I have a Homebrew tap that works for me, but it hasn’t gotten a lot of mileage beyond that. That might work for you. And I’ll happily accept any pull requests that improve the tap.</div><div><br></div><div><a href="https://github.com/leedm777/homebrew-asterisk">https://github.com/leedm777/homebrew-asterisk</a></div><div><br></div><div>Good luck!</div><div><br></div><div>
<div>-- <br>David M. Lee<br>Digium, Inc. | Software Developer<br>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>Check us out at: <a href="http://www.digium.com">www.digium.com</a> & <a href="http://www.asterisk.org">www.asterisk.org</a></div>
</div>
<br><div><div>On Feb 27, 2014, at 12:36 PM, Maruen Mehana <<a href="mailto:maruen@gmail.com">maruen@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi all,<div>Does anyone could get asterisk work in Mac OS X Mavericks?</div><div>When I try to install it and compile the source I got the following error:</div><div><br></div><div><p class=""><i> [CC] astcanary.c -> astcanary.o</i></p><p class=""><i>clang: warning: argument unused during compilation: '-fnested-functions'</i></p><p class=""><i><span class=""><b>error: </b></span><b>invalid value '6' in '-O6'</b></i></p><p class=""><i>make[1]: *** [astcanary.o] Error 1</i></p><p class=""><i>make: *** [utils] Error 2</i></p><p class=""><i>maruen@Mehanas-Mac~/Local/asterisk-11.7.0$ </i></p></div><div><br></div><div>Does anyone can help me to solve this issue?</div><div><br></div><div>Thanks</div><div><br></div><div><br clear="all"><div>-- <br>
<br><div><font face="tahoma, sans-serif"><i><span style="color:rgb(51,133,173);line-height:15px">Maruen Mehana </span><br><font color="#3385ad"><span style="line-height:15px">Mobile</span></font>: <span style="color:rgb(51,133,173);line-height:15px">+55 (011</span><span style="color:rgb(51,133,173);line-height:15px">) 9</span><font color="#3385ad"><span style="line-height:15px">8438.8499 </span></font><br>
</i></font><div><font face="tahoma, sans-serif"><i><span style="color:rgb(51,133,173);line-height:15px"></span><span style="color:rgb(51,133,173);line-height:15px"></span></i></font></div><div><font face="tahoma, sans-serif"><i><span style="color:rgb(51,133,173);line-height:15px">São Paulo - </span><span style="color:rgb(51,133,173);line-height:15px">SP</span> <font color="#3385ad"><span style="line-height:15px">/ Brasil<br>
<br>The way of the righteous is like the first gleam of dawn,<br>which shines ever brighter until the full light of day. - Proverbs 4:18<br></span></font></i></font></div></div></div>
</div></div>
-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br><br>asterisk-dev mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote></div><br></body></html>