[asterisk-bugs] [Asterisk 0011218]: trunk compilation error on FreeBSD (chan_unistim.c, hashtest)

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Nov 12 04:02:23 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11218 
====================================================================== 
Reported By:                ys
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11218
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 89169 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-12-2007 04:01 CST
Last Modified:              11-12-2007 04:02 CST
====================================================================== 
Summary:                    trunk compilation error on FreeBSD (chan_unistim.c,
hashtest)
Description: 
I try to compile asterisk (on FreeBSD) from trunk and got compilation
errors:

1:

gcc -g -O0 -c hashtest.c -I/usr/include -I../include
hashtest.c:37:20: alloca.h: No such file or directory
gmake[1]: *** [hashtest.o] Error 1
gmake: *** [utils] Error 2


2:

gcc -o chan_unistim.o -c chan_unistim.c -D_THREAD_SAFE -pthread
-I/usr/home/asterisk/src/asterisk/include  -pipe -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -g3 -include
/usr/home/asterisk/src/asterisk/include/asterisk/autoconfig.h
-I/usr/local/include -march=i386   -include
/usr/home/asterisk/src/asterisk/include/asterisk/astmm.h -fPIC
-DAST_MODULE=\"chan_unistim\"   -MMD -MT chan_unistim.o -MF
.chan_unistim.o.d -MP
chan_unistim.c: In function `write_history':
chan_unistim.c:1770: warning: implicit declaration of function `mkdir'
chan_unistim.c:1791: error: storage size of 'bufstat' isn't known
chan_unistim.c:1793: warning: implicit declaration of function `stat'
chan_unistim.c:1791: warning: unused variable `bufstat'
gmake[1]: *** [chan_unistim.o] Error 1
gmake: *** [channels] Error 2


====================================================================== 

---------------------------------------------------------------------- 
 ys - 11-12-07 04:02  
---------------------------------------------------------------------- 
I upload quick fix. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-12-07 04:02  ys             Note Added: 0073507                          
======================================================================




More information about the asterisk-bugs mailing list