[Asterisk-Users] chan_agent.c fails to compile

BJ Weschke bweschke at gmail.com
Fri Nov 4 06:50:29 MST 2005


 It may compile, but there's no assurances from any of the dev team
that you're not going to have other wierd stuff going on from a build
that was built with < 3.0 gcc. There are multiple areas in the code
that now use >= 3.0 gcc optimizations. It's important that use a
compliant compiler for not only being able to build correctly, but
also to make sure that the performance and functionality ends up being
what we intended it to be.

On 11/4/05, Dinesh Nair <dinesh at alphaque.com> wrote:
>
>
> On 11/04/05 03:26 BJ Weschke said the following:
> >  gcc 3.0 and up is now a minimum requirement to build Asterisk.
> >
> >  This is most likely your problem.
> >
> > On 11/3/05, Matt Hess <mhess at livewirenet.com> wrote:
> >
> >>gcc version 2.95.3 20010125 (prerelease, propolice)
> >>on OpenBSD 3.6.
>
> which was the same problem i faced when i tryed to compile asterisk cvs
> head on freebsd 4.x as well. a simple patch (attached) to chan_agent.c
> fixes this problem and allows a clean compile with gcc 2.95.
>
> -------- CUT HERE -----------
> --- ./channels/chan_agent.c.orig        Mon Oct 31 16:30:28 2005
> +++ ./channels/chan_agent.c     Mon Oct 31 16:34:03 2005
> @@ -1680,7 +1680,7 @@
>                             AST_APP_ARG(agent_id);
>                             AST_APP_ARG(options);
>                             AST_APP_ARG(extension);
> -               );
> +               )
>        char *tmpoptions = NULL;
>        char *context = NULL;
>        int play_announcement = 1;
> -------- CUT HERE -----------
>
> --
> Regards,                           /\_/\   "All dogs go to heaven."
> dinesh at alphaque.com                (0 0)    http://www.alphaque.com/
> +==========================----oOO--(_)--OOo----==========================+
> | for a in past present future; do                                        |
> |   for b in clients employers associates relatives neighbours pets; do   |
> |   echo "The opinions here in no way reflect the opinions of my $a $b."  |
> | done; done                                                              |
> +=========================================================================+
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
>
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list