[Freeswitch-users] Failed to compile sofia.c for ARM

Anthony Minessale anthony.minessale at gmail.com
Wed Jul 7 06:34:58 PDT 2010


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;




On Wed, Jul 7, 2010 at 8:02 AM, mazilo <Nabble at slickdeals.endjunk.com>wrote:

>
> Thanks for the
>
> http://fisheye.freeswitch.org/browse/freeswitch-git/src/mod/endpoints/mod_sofia/sofia.c?r2=088cee65f95c599914be73511095ce4dd9a7feba&r1=f2ea3ee315621f5c345a8fdade7e018990dc4c98
> fisheye  link and that's what I was looking for. As you said, all I did was
> to change the following line:
>
>
>        if (ap) {
> to:
>
>        if (ap_ptr) {
> and the compilation crashed 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:1574: error: 'ap_ptr' undeclared (first use in this function)
> > sofia.c:1574: error: (Each undeclared identifier is reported only once
> > sofia.c:1574: error: for each function it appears in.)
> > make[8]: *** [mod_sofia_la-sofia.lo] Error 1
> > make[8]: Leaving 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'
> Perhaps, the patch won't work on a freeswitch-1.0.6. Oh well, at least we
> tried.
>
>
> humbr wrote:
> >
> > Just to make it easier:-) here is the link to
> >
> http://fisheye.freeswitch.org/browse/freeswitch-git/src/mod/endpoints/mod_sofia/sofia.c?r2=088cee65f95c599914be73511095ce4dd9a7feba&r1=f2ea3ee315621f5c345a8fdade7e018990dc4c98
> > fisheye  for the code change.
> >
> > Gerrit
>
>
> -----
> 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-ARM-tp5252219p5265110.html
> Sent from the freeswitch-users mailing list archive at Nabble.com.
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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 at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100707/c8299503/attachment-0001.html 


More information about the FreeSWITCH-users mailing list