[Asterisk-Users] app_icd compile problem

Sergio Serrano sergio.serrano at avanzada7.com
Thu Nov 18 05:49:10 MST 2004


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
 




More information about the asterisk-users mailing list