Re: [Asterisk-Users] app_icd compile problem

2004-11-18 Thread TC



> Hi all,> I try to compile app_icd to test it but I can't 
compile it. I have> installed asterisk 1.0.2 and I download ICD and put 
files into> /usr/src/asterisk/apps/icd directory. I think that make.conf 
in icd> directory is ok but when I try to compile icd I obtain next 
error:>>  ===> Compile: 
/usr/src/asterisk/apps/icd/app_icd.c (app_icd.o)> app_icd.c:66:
icd lives off cvs head, if you want ifdef the
callerid strucs changes, and the ast_bridge parm chgs
I'll take those into icd cvs, other wise till we have any 
larger user base other than our own custom installs
we are at the leading/bleeding edge here:)
 
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
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] app_icd compile problem

2004-11-18 Thread steve szmidt
On Thursday 18 November 2004 07:49 am, Sergio Serrano wrote:
> Hi all,
>   I try to compile app_icd to test it but I can't compile it. I have
> installed asterisk 1.0.2 and I download ICD and put files into
> /usr/src/asterisk/apps/icd directory. I think that make.conf in icd
> directory is ok but when I try to compile icd I obtain next error:
>
>  ===> Compile: /usr/src/asterisk/apps/icd/app_icd.c (app_icd.o)
> app_icd.c:66:

Hi,

Please don't start a new thread in someone elses thread.

I know you changed the subject line, but that does not remove the old thread, 
as that information is stored in the header of the email.

The correct way to save keystrokes is not to change the subject but to right 
click on the list name and selecting New. 

Thanks,
-- 

Steve Szmidt

"They that would give up essential liberty for temporary safety 
deserve neither liberty nor safety."
Benjamin Franklin
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] app_icd compile problem

2004-11-18 Thread Sergio Serrano
Hi all,
I try to compile app_icd to test it but I can't compile it. I have
installed asterisk 1.0.2 and I download ICD and put files into
/usr/src/asterisk/apps/icd directory. I think that make.conf in icd
directory is ok but when I try to compile icd I obtain next error:

 ===> Compile: /usr/src/asterisk/apps/icd/app_icd.c (app_icd.o)
app_icd.c:66:
`__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__'
undeclared here (not in a function)
make: *** [app_icd.o] Error 1

If I change line 66 from 
static ast_mutex_t icdlock = AST_MUTEX_INITIALIZER;
To
static ast_mutex_t icdlock = AST_MUTEX_DEFINE_STATIC;

I obtain next error:
 ===> Compile: /usr/src/asterisk/apps/icd/app_icd.c (app_icd.o)
app_icd.c:67: `AST_MUTEX_DEFINE_STATIC' undeclared here (not in a function)
make: *** [app_icd.o] Error 1


My make.conf is the next:

# what compiler
CC=gcc 

# uncomment this if your asterisk is > version 1.0
CFLAGS += -DAST_POST_10

# where is the asterisk source tree
ASTSRC = /usr/src/asterisk


#
# copy these from the asterisk top level Makefile
INSTALL_PREFIX=
ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk
ASTVARLIBDIR=$(INSTALL_PREFIX)/var/lib/asterisk
ASTETCDIR=$(INSTALL_PREFIX)/etc/asterisk
ASTSPOOLDIR=$(INSTALL_PREFIX)/var/spool/asterisk
ASTLOGDIR=$(INSTALL_PREFIX)/var/log/asterisk
ASTHEADERDIR=$(INSTALL_PREFIX)/usr/include/asterisk
ASTCONFPATH=$(ASTETCDIR)/asterisk.conf
ASTBINDIR=$(INSTALL_PREFIX)/usr/bin
ASTSBINDIR=$(INSTALL_PREFIX)/usr/sbin
ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run
MODULES_DIR=$(ASTLIBDIR)/modules
AGI_DIR=$(ASTVARLIBDIR)/agi-bin

INCLUDES =  -I$(ASTSRC) -I$(ASTSRC)/include -I. -I/usr/src/asterisk/include
CFLAGS +=  $(INCLUDES)
CFLAGS +=  -DINSTALL_PREFIX=\"$(INSTALL_PREFIX)\"
-DASTETCDIR=\"$(ASTETCDIR)\" -DASTLIBDIR=\"$(ASTLIBDIR)\"
CFLAGS +=  -DASTVARLIBDIR=\"$(ASTVARLIBDIR)\"
-DASTVARRUNDIR=\"$(ASTVARRUNDIR)\" -DASTSPOOLDIR=\"$(ASTSPOOLDIR)\"
-DASTLOGDIR=\"$(ASTLOGDIR)\"
CFLAGS +=  -DASTCONFPATH=\"$(ASTCONFPATH)\" -DASTMODDIR=\"$(MODULES_DIR)\"
-DASTAGIDIR=\"$(AGI_DIR)\" -D_GNU_SOURCE 
CFLAGS += -O0 -g
CFLAGS += -Wall
#CFLAGS += -DNDEBUG

LDFLAGS  = 





Anyone could help me?


Best reagards,


srsergio

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.797 / Virus Database: 541 - Release Date: 15/11/2004
 

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users