I was able to get around this by taking a hint from <a href="http://jira.freeswitch.org/browse/FS-1949?focusedCommentId=17458&amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17458">this comment</a>.<div>

<br></div><div>I modified this part of <a href="http://configure.in">configure.in</a> before running bootstrap:</div><div><br></div><div><div>#set SOLINK variable based on compiler and host</div><div>if test &quot;x${ax_cv_c_compiler_vendor}&quot;  =  &quot;xsun&quot; ; then</div>

<div>    SOLINK=&quot;-Bdynamic -dy -G&quot;</div><div>elif test &quot;x${ax_cv_c_compiler_vendor}&quot; = &quot;xgnu&quot; ; then</div><div>    case &quot;$host&quot; in</div><div>        *darwin10.*)</div><div>            SOLINK=&quot;-dynamic -force-flat-namespace&quot;</div>

<div>        ;;</div><div>       <span style="background-color:rgb(255,255,0)"> *darwin*)</span></div><div><span style="background-color:rgb(255,255,0)">            SOLINK=&quot;-dynamic -bundle -force-flat-namespace&quot;</span></div>

<div>        ;;</div><div>        *-solaris2*)</div><div>            SOLINK=&quot;-shared -Xlinker&quot;</div><div>        ;;</div><div>        *)</div><div>            SOLINK=&quot;-shared -Xlinker -x&quot;</div><div>        ;;</div>

<div>    esac</div><div>else</div><div>    AC_ERROR([Please update <a href="http://configure.in">configure.in</a> with SOLINK values for your compiler])</div><div>fi</div><div><br></div><div>OSX Lion uses darwin11, so the first case was not hit. I removed the -bundle flag from the highlighted case and got it to avoid the error.</div>

<div><br></div><div>This is probably something the build system should patch up.</div><div><br></div><div>-Neil</div><br><div class="gmail_quote">On Fri, May 25, 2012 at 6:44 PM, Ken Rice <span dir="ltr">&lt;<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<font face="Monaco, Courier New"><span style="font-size:11pt">Can you do a git bisect on this and figure out where it broke? This should build just fine...<br>
<br>
K<div><div class="h5"><br>
<br>
<br>
On 5/25/12 6:50 PM, &quot;Mario G&quot; &lt;<a href="http://mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>&gt; wrote:<br>
<br>
</div></div></span></font><blockquote><div><div class="h5"><font face="Monaco, Courier New"><span style="font-size:11pt">This is not much help but I just updated with the current git and the make current went fine. However, I am on 10.6.8. Just out of curiosity I did a FIND on -bundle and found it was only used once with mod_lua, -dynamiclib was found only once but it looked to be referenced by several modules. I am not a linux developer so have little idea what the messages mean exactly. I found a few hits on the web, all involved source fixes, I know, not much help...<br>


Mario G<br>
<br>
On May 25, 2012, at 4:03 PM, Neil Patel wrote:<br>
<br>
</span></font></div></div><blockquote><div><div class="h5"><font face="Monaco, Courier New"><span style="font-size:11pt">Hi Mario,<br>
<br>
This looks like a deeper problem. I tried commenting out mod_amr but then it broke on other codecs.<br>
<br>
The error says -bundle not allowed with -dyanmiclib. Seems like these flags are mutually exclusive. Is there a problem in how the FS is configuring the build?<br>
<br>
Thanks,<br>
Neil<br>
<br>
On Fri, May 25, 2012 at 3:53 PM, Mario G &lt;<a href="http://mario_fs@mgtech.com" target="_blank">mario_fs@mgtech.com</a>&gt; wrote:<br>
</span></font></div></div><blockquote><div><div class="h5"><font face="Monaco, Courier New"><span style="font-size:11pt">The impression I get from the wiki is that mod_amr is optional. I would try to comment it out in modules.conf in the FS source dir and see what happens. I wish I had time to futz with FS on Lion but I am trying to resolve 2 other FS issues for over a month with no luck. This is why I put off updating the wiki, I won&#39;t until everything is perfect.<br>


<br>
On May 25, 2012, at 2:53 PM, Neil Patel wrote:<br>
<br>
</span></font></div></div><blockquote><font face="Monaco, Courier New"><span style="font-size:11pt"><div><div class="h5">Hi All, I am getting this error when trying to build latest git on Mac OSX Lion, after fresh checkout and running ./boostraph.sh and ./configure:<br>


<br>
making all mod_amr <br>
Creating mod_amr.so... <br>
i686-apple-darwin11-llvm-gcc-4.2: -bundle not allowed with -dynamiclib <br>
gcc -I/usr/local/src/freeswitch/libs/curl/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/libs/libteletone/src -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DMACOSX -DHAVE_OPENSSL -g -O2 -Wall -std=c99 -pedantic -Wdeclaration-after-statement -D_GNU_SOURCE -DAMR_PASSTHROUGH -shared -o .libs/mod_amr.so -dynamic -bundle -force-flat-namespace .libs/mod_amr.o /usr/local/src/freeswitch/.libs/libfreeswitch.dylib -lodbc -lresolv -L/usr/local/src/freeswitch/libs/apr-util/xml/expat/lib -lpq /usr/local/src/freeswitch/libs/apr-util/xml/expat/lib/.libs/libexpat.a /usr/local/src/freeswitch/libs/apr/.libs/libapr-1.a -lpthread -lm -L/usr/local/src/freeswitch/libs/srtp -ldl -lssl -lcrypto -lz -lncurses /usr/local/lib/libjpeg.dylib /usr/local/lib/libodbc.dylib -liconv  <br>


make[5]: *** [mod_amr.so] Error 1 <br>
make[4]: *** [all] Error 1 <br>
make[3]: *** [mod_amr-all] Error 1 <br>
make[2]: *** [all-recursive] Error 1 <br>
make[1]: *** [all-recursive] Error 1 <br>
make: *** [all] Error 2 <br>
<br>
Heeding Mario&#39;s advice, I tried making with open-ssl flag, but that didn&#39;t help. If I go about commenting out offending modules, the same &quot;bundle not allowed with -dynamiclib&quot; appears for any number of other mods. I have installed all the prerequisites for Mac OSX (to my knowledge), including Apple and Unix dev tools. I am 100% macports/fink/brew free, AFAIK. Jira filed, but no response for a while:<br>


<br>
<a href="http://jira.freeswitch.org/browse/FS-4240" target="_blank">http://jira.freeswitch.org/browse/FS-4240</a><br>
<br>
My sense this is a missing tool or config issue with my setup (pretty much fresh Lion install). Thanks in advance for your help!<br>
Neil<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="http://consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
</div></div><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a> &lt;<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com/</a>&gt; <br>

<div class="im">
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
</div><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a> &lt;<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com/</a>&gt; <br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> &lt;<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a>&gt; <br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a> &lt;<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org/</a>&gt; <br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> &lt;<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a>&gt; <br><div class="im">
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="http://FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
</div><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> &lt;<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a>&gt; <br>
</span></font></blockquote><font face="Monaco, Courier New"><span style="font-size:11pt"><div class="im"><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="http://consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
</div><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a> &lt;<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com/</a>&gt; <br>

<div class="im">
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
</div><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a> &lt;<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com/</a>&gt; <br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> &lt;<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a>&gt; <br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a> &lt;<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org/</a>&gt; <br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> &lt;<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a>&gt; <br><div class="im">
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="http://FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
</div><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> &lt;<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a>&gt; <br>
<br>
</span></font></blockquote><div><div class="h5"><font face="Monaco, Courier New"><span style="font-size:11pt"><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="http://consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="http://FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</span></font></div></div></blockquote><div><div class="h5"><font face="Monaco, Courier New"><span style="font-size:11pt"><br>
<br>
<hr align="CENTER" size="3" width="95%"></span></font><font><font face="Consolas, Courier New, Courier"><span style="font-size:10pt">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="http://consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="http://FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</span></font></font></div></div></blockquote>
</div>


<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>