[Asterisk-Users] chan_agent.c fails to compile
Dinesh Nair
dinesh at alphaque.com
Fri Nov 4 00:04:11 MST 2005
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 |
+=========================================================================+
More information about the asterisk-users
mailing list