ok i guess its hopeless then,<div><br><br><div class="gmail_quote">On Wed, Jul 7, 2010 at 10:51 AM, mazilo <span dir="ltr">&lt;<a href="mailto:Nabble@slickdeals.endjunk.com">Nabble@slickdeals.endjunk.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Thanks for your quick response. I went ahead to add the *ap_ptr declaration,<br>
and another error message surfaced as shown below:<br>
<div class="im"><br>
make[7]: Entering directory<br>
`/opt/tmp/openwrt-svn-trunk-ARM/build_dir/target-arm_v5te_uClibc-0.9.30.1_eabi/freeswitch-1.0.6/src/mod/endpoints/mod_sofia&#39;<br>
&gt; make[8]: Entering directory<br>
&gt; `/opt/tmp/openwrt-svn-trunk-ARM/build_dir/target-arm_v5te_uClibc-0.9.30.1_eabi/freeswitch-1.0.6/src/mod/endpoints/mod_sofia&#39;<br>
&gt; Creating mod_sofia_la-sofia.lo<br>
&gt; Compiling sofia.c ...<br>
&gt; sofia.c: In function &#39;logger&#39;:<br>
</div>&gt; sofia.c:1573: error: aggregate value used where an integer was expected<br>
<div class="im">&gt; make[8]: *** [mod_sofia_la-sofia.lo] Error 1<br>
</div>I believe the problem with if(ap) line I encountered above has something to<br>
do with the gcc-4.3.3 with CodeSourcery enhancements compiler. If I use the<br>
plain gcc-4.3.3 compiler, if(ap) line won&#39;t cause an error in compilation.<br>
So long as I stay using the plain gcc-4.3.3, the compilation will<br>
successfully produce mod_sofia.so file.<br>
<div class="im"><br>
Anthony Minessale wrote:<br>
&gt;<br>
&gt; you forgot part of the patch =D<br>
&gt;<br>
&gt; The following 2 lines should be the first 2 lines in the function.<br>
&gt;<br>
&gt;  /* gcc 4.4 gets mad at us for testing if (ap) so let&#39;s try to work around<br>
&gt; it....*/<br>
&gt;     void *ap_ptr = (void *) (intptr_t) ap;<br>
<br>
<br>
</div><div class="im">-----<br>
don&#39;t and stop are the ONLY two 4-letter words considered offensive to men,<br>
but not when used together.<br>
--<br>
</div>View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/Failed-to-compile-sofia-c-for-ARM-tp5252219p5265912.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/Failed-to-compile-sofia-c-for-ARM-tp5252219p5265912.html</a><br>

<div><div></div><div class="h5">Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>