ok i guess its hopeless then, On Wed, Jul 7, 2010 at 10:51 AM, mazilo <Nabble@slickdeals.endjunk.com>wrote:
Thanks for your quick response. I went ahead to add the *ap_ptr declaration, and another error message surfaced as shown below:
make[7]: Entering directory
`/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'
make[8]: Entering directory
`/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'
Creating mod_sofia_la-sofia.lo Compiling sofia.c ... sofia.c: In function 'logger': sofia.c:1573: error: aggregate value used where an integer was expected make[8]: *** [mod_sofia_la-sofia.lo] Error 1 I believe the problem with if(ap) line I encountered above has something to do with the gcc-4.3.3 with CodeSourcery enhancements compiler. If I use the plain gcc-4.3.3 compiler, if(ap) line won't cause an error in compilation. So long as I stay using the plain gcc-4.3.3, the compilation will successfully produce mod_sofia.so file.
Anthony Minessale wrote:
you forgot part of the patch =D
The following 2 lines should be the first 2 lines in the function.
/* gcc 4.4 gets mad at us for testing if (ap) so let's try to work
around
it....*/ void *ap_ptr = (void *) (intptr_t) ap;
----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Failed-to-compile-sofia-c-for-... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900