[Asterisk-Users] Cannot compile (app.c)

Patrik Jansson patrik at digilize.se
Mon Feb 28 13:22:36 MST 2005


First of all. Asterisk was not functioning very well lately as I 
couldn't register.
Output from *CLI:
knivby*CLI> sip reload
Feb 28 21:17:22 WARNING[143771648]: chan_sip.c:1310 create_addr: No such 
host: ipkund1.rixtelecom.se

Strange, because I can ping the host. Have also tried changing the 
hostname for its IP address but no change
in result. Output the same but the ipkund1 changed to the IP.

I couldn't really figure out why this suddenly happends so I thought I 
should refresh Asterisk by downloading
the latest CVS (the one I have now is an earlier version from the CVS). 
So I did, and as I'm running FreeBSD
I have to compilte with gmake. But now I get the following error when 
trying to compile the latest version of
Asterisk from the CVS repository:

gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -g  -Iinclude -I../include -I/usr/local/include 
-D_REENTRANT -D_GNU_SOURCE  -O6 -march=i386   -D_THREAD_SAFE    
-DASTERISK_VERSION=\"\" -DASTERISK_VERSION_NUM=000000 
-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        
-c -o app.o app.c
app.c: In function `ast_dtmf_stream':
app.c:268: warning: value computed is not used
app.c: In function `ast_read_textfile':
app.c:1401: storage size of `filesize' isn't known
app.c:1404: warning: implicit declaration of function `stat'
app.c:1401: warning: unused variable `filesize'
gmake: *** [app.o] Error 1

What is wrong?

Best Regards,
Patrik



More information about the asterisk-users mailing list