Re: [Asterisk-Users] chan_agent.c fails to compile

2005-11-04 Thread BJ Weschke
 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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.origMon 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.
 [EMAIL PROTECTED](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@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

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@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


Re: [Asterisk-Users] chan_agent.c fails to compile

2005-11-04 Thread Dinesh Nair



On 11/04/05 21:50 BJ Weschke said the following:

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


noted. however, i'm still trying to debug a problem which is either with 
the freebsd 4.x threading library or the zaptel drivers on freebsd 4.x. it 
may be unrelated, but no one has been able to assist in this.


--
Regards,   /\_/\   All dogs go to heaven.
[EMAIL PROTECTED](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@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


[Asterisk-Users] chan_agent.c fails to compile

2005-11-03 Thread Matt Hess

Using cvs head downloaded as of just a few minutes ago..

chan_agent.c: In function `action_agents':
chan_agent.c:1446: warning: long int format, time_t arg (arg 7)
chan_agent.c: In function `__login_exec':
chan_agent.c:1684: syntax error before `char'
chan_agent.c:1701: `agent_goodbye' undeclared (first use in this function)
chan_agent.c:1701: (Each undeclared identifier is reported only once
chan_agent.c:1701: for each function it appears in.)
chan_agent.c:1708: `tmpoptions' undeclared (first use in this function)
chan_agent.c:1714: `update_cdr' undeclared (first use in this function)
chan_agent.c:1732: `context' undeclared (first use in this function)
chan_agent.c:1737: `play_announcement' undeclared (first use in this 
function)

chan_agent.c:1864: `filename' undeclared (first use in this function)
gmake[1]: *** [chan_agent.o] Error 1
gmake[1]: Leaving directory `/usr/local/src/asterisk/channels'
gmake: *** [subdirs] Error 1

I am feeling rather blind as I cannot see the issue.. can some kind 
person take a look?


begin:vcard
fn:Matt Hess
n:Hess;Matt
org:LiveWire Networks
adr;dom:;;4577 Pecos St;Denver;CO;80211
email;internet:[EMAIL PROTECTED]
title:Sr. Network Engineer
tel;work:303-458-5667 x 106
tel;fax:303-458-5725
x-mozilla-html:FALSE
url:http://www.livewirenet.com/
version:2.1
end:vcard

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@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

Re: [Asterisk-Users] chan_agent.c fails to compile

2005-11-03 Thread BJ Weschke
 Compiled fine here. What version of GCC are you using?

On 11/3/05, Matt Hess [EMAIL PROTECTED] wrote:
 Using cvs head downloaded as of just a few minutes ago..

 chan_agent.c: In function `action_agents':
 chan_agent.c:1446: warning: long int format, time_t arg (arg 7)
 chan_agent.c: In function `__login_exec':
 chan_agent.c:1684: syntax error before `char'
 chan_agent.c:1701: `agent_goodbye' undeclared (first use in this function)
 chan_agent.c:1701: (Each undeclared identifier is reported only once
 chan_agent.c:1701: for each function it appears in.)
 chan_agent.c:1708: `tmpoptions' undeclared (first use in this function)
 chan_agent.c:1714: `update_cdr' undeclared (first use in this function)
 chan_agent.c:1732: `context' undeclared (first use in this function)
 chan_agent.c:1737: `play_announcement' undeclared (first use in this
 function)
 chan_agent.c:1864: `filename' undeclared (first use in this function)
 gmake[1]: *** [chan_agent.o] Error 1
 gmake[1]: Leaving directory `/usr/local/src/asterisk/channels'
 gmake: *** [subdirs] Error 1

 I am feeling rather blind as I cannot see the issue.. can some kind
 person take a look?



 ___
 --Bandwidth and Colocation sponsored by Easynews.com --

 Asterisk-Users mailing list
 Asterisk-Users@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



___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@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


Re: [Asterisk-Users] chan_agent.c fails to compile

2005-11-03 Thread Matt Hess

gcc version 2.95.3 20010125 (prerelease, propolice)
on OpenBSD 3.6.


BJ Weschke wrote:

 Compiled fine here. What version of GCC are you using?

On 11/3/05, Matt Hess [EMAIL PROTECTED] wrote:


Using cvs head downloaded as of just a few minutes ago..

chan_agent.c: In function `action_agents':
chan_agent.c:1446: warning: long int format, time_t arg (arg 7)
chan_agent.c: In function `__login_exec':
chan_agent.c:1684: syntax error before `char'
chan_agent.c:1701: `agent_goodbye' undeclared (first use in this function)
chan_agent.c:1701: (Each undeclared identifier is reported only once
chan_agent.c:1701: for each function it appears in.)
chan_agent.c:1708: `tmpoptions' undeclared (first use in this function)
chan_agent.c:1714: `update_cdr' undeclared (first use in this function)
chan_agent.c:1732: `context' undeclared (first use in this function)
chan_agent.c:1737: `play_announcement' undeclared (first use in this
function)
chan_agent.c:1864: `filename' undeclared (first use in this function)
gmake[1]: *** [chan_agent.o] Error 1
gmake[1]: Leaving directory `/usr/local/src/asterisk/channels'
gmake: *** [subdirs] Error 1

I am feeling rather blind as I cannot see the issue.. can some kind
person take a look?



___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@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





___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@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


begin:vcard
fn:Matt Hess
n:Hess;Matt
org:LiveWire Networks
adr;dom:;;4577 Pecos St;Denver;CO;80211
email;internet:[EMAIL PROTECTED]
title:Sr. Network Engineer
tel;work:303-458-5667 x 106
tel;fax:303-458-5725
x-mozilla-html:FALSE
url:http://www.livewirenet.com/
version:2.1
end:vcard

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@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

Re: [Asterisk-Users] chan_agent.c fails to compile

2005-11-03 Thread BJ Weschke
 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 [EMAIL PROTECTED] wrote:
 gcc version 2.95.3 20010125 (prerelease, propolice)
 on OpenBSD 3.6.


 BJ Weschke wrote:
   Compiled fine here. What version of GCC are you using?
 
  On 11/3/05, Matt Hess [EMAIL PROTECTED] wrote:
 
 Using cvs head downloaded as of just a few minutes ago..
 
 chan_agent.c: In function `action_agents':
 chan_agent.c:1446: warning: long int format, time_t arg (arg 7)
 chan_agent.c: In function `__login_exec':
 chan_agent.c:1684: syntax error before `char'
 chan_agent.c:1701: `agent_goodbye' undeclared (first use in this function)
 chan_agent.c:1701: (Each undeclared identifier is reported only once
 chan_agent.c:1701: for each function it appears in.)
 chan_agent.c:1708: `tmpoptions' undeclared (first use in this function)
 chan_agent.c:1714: `update_cdr' undeclared (first use in this function)
 chan_agent.c:1732: `context' undeclared (first use in this function)
 chan_agent.c:1737: `play_announcement' undeclared (first use in this
 function)
 chan_agent.c:1864: `filename' undeclared (first use in this function)
 gmake[1]: *** [chan_agent.o] Error 1
 gmake[1]: Leaving directory `/usr/local/src/asterisk/channels'
 gmake: *** [subdirs] Error 1
 
 I am feeling rather blind as I cannot see the issue.. can some kind
 person take a look?
 
 
 
 ___
 --Bandwidth and Colocation sponsored by Easynews.com --
 
 Asterisk-Users mailing list
 Asterisk-Users@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
 
 
 
 
  ___
  --Bandwidth and Colocation sponsored by Easynews.com --
 
  Asterisk-Users mailing list
  Asterisk-Users@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
 
 


 ___
 --Bandwidth and Colocation sponsored by Easynews.com --

 Asterisk-Users mailing list
 Asterisk-Users@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



___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@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


Re: [Asterisk-Users] chan_agent.c fails to compile

2005-11-03 Thread Dinesh Nair



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 [EMAIL PROTECTED] 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.origMon 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.
[EMAIL PROTECTED](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@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