you forgot part of the patch =D<div><br></div><div>The following 2 lines should be the first 2 lines in the function.</div><div><br></div><div><div> /* gcc 4.4 gets mad at us for testing if (ap) so let's try to work around it....*/</div>
<div> void *ap_ptr = (void *) (intptr_t) ap;</div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">On Wed, Jul 7, 2010 at 8:02 AM, mazilo <span dir="ltr"><<a href="mailto:Nabble@slickdeals.endjunk.com">Nabble@slickdeals.endjunk.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Thanks for the<br>
<div class="im"><a href="http://fisheye.freeswitch.org/browse/freeswitch-git/src/mod/endpoints/mod_sofia/sofia.c?r2=088cee65f95c599914be73511095ce4dd9a7feba&r1=f2ea3ee315621f5c345a8fdade7e018990dc4c98" target="_blank">http://fisheye.freeswitch.org/browse/freeswitch-git/src/mod/endpoints/mod_sofia/sofia.c?r2=088cee65f95c599914be73511095ce4dd9a7feba&r1=f2ea3ee315621f5c345a8fdade7e018990dc4c98</a><br>
</div>fisheye link and that's what I was looking for. As you said, all I did was<br>
to change the following line:<br>
<br>
<br>
if (ap) {<br>
to:<br>
<br>
if (ap_ptr) {<br>
and the compilation crashed as shown below:<br>
<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'<br>
<div class="im">> make[8]: 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'<br>
> Creating mod_sofia_la-sofia.lo<br>
> Compiling sofia.c ...<br>
</div><div class="im">> sofia.c: In function 'logger':<br>
</div>> sofia.c:1574: error: 'ap_ptr' undeclared (first use in this function)<br>
> sofia.c:1574: error: (Each undeclared identifier is reported only once<br>
> sofia.c:1574: error: for each function it appears in.)<br>
<div class="im">> make[8]: *** [mod_sofia_la-sofia.lo] Error 1<br>
</div>> make[8]: Leaving 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'<br>
Perhaps, the patch won't work on a freeswitch-1.0.6. Oh well, at least we<br>
tried.<br>
<div class="im"><br>
<br>
humbr wrote:<br>
><br>
> Just to make it easier:-) here is the link to<br>
> <a href="http://fisheye.freeswitch.org/browse/freeswitch-git/src/mod/endpoints/mod_sofia/sofia.c?r2=088cee65f95c599914be73511095ce4dd9a7feba&r1=f2ea3ee315621f5c345a8fdade7e018990dc4c98" target="_blank">http://fisheye.freeswitch.org/browse/freeswitch-git/src/mod/endpoints/mod_sofia/sofia.c?r2=088cee65f95c599914be73511095ce4dd9a7feba&r1=f2ea3ee315621f5c345a8fdade7e018990dc4c98</a><br>
> fisheye for the code change.<br>
><br>
> Gerrit<br>
<br>
<br>
</div><div class="im">-----<br>
don'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-tp5252219p5265110.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/Failed-to-compile-sofia-c-for-ARM-tp5252219p5265110.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>