[Asterisk-Users] Asterisk-cvs does not compile on Red Hat 9

Glenn Powers glenn at net127.com
Wed Oct 27 17:03:19 MST 2004


I just got the lastest Asterisk-CVS and it does NOT compile on Red Hat 
9, neither does Asterisk-1.0.1 (or Asterisk-1.0). Asterisk-1.0RC2 
compiles fine. Here is the error:

gcc -c -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT 
-D_GNU_SOURCE  -O6 -march=i686   -DZAPTEL_OPTIMIZATIONS  
-DASTERISK_VERSION=\"CVS-HEAD-10/27/04-18:27:47\" 
-DASTERISK_VERSION_NUM=999999 -DINSTALL_PREFIX=\"\" 
-DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" 
-DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" 
-DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" 
-DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" 
-DASTMODDIR=\"/usr/lib/asterisk/modules\" 
-DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN      
-Wno-missing-prototypes -Wno-missing-declarations   -DZAPATA_PRI   
-DIAX_TRUNKING   -DCRYPTO -fPIC  -o chan_zap.o chan_zap.c
chan_zap.c: In function `handle_init_event':
chan_zap.c:5717: `ZT_EVENT_POLARITY' undeclared (first use in this function)
chan_zap.c:5717: (Each undeclared identifier is reported only once
chan_zap.c:5717: for each function it appears in.)
chan_zap.c: In function `handle_pri_show_span':
chan_zap.c:8257: warning: unused variable `info_str'
make[1]: *** [chan_zap.o] Error 1
make[1]: Leaving directory `/home/glenn/src/asterisk-cvs/asterisk/channels'
make: *** [subdirs] Error 1

[glenn at HOST asterisk]$ uname -a
Linux HOST 2.4.20-30.9 #1 Wed Feb 4 20:44:26 EST 2004 i686 i686 i386 
GNU/Linux

Any idea what is wrong?

thanks,
glenn





More information about the asterisk-users mailing list