[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 07:24:41 CST 2007


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=11218 
====================================================================== 
Reported By:                ys
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   11218
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
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 07:24 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


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

---------------------------------------------------------------------- 
 svnbot - 11-12-07 07:24  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 89177

U   trunk/channels/chan_unistim.c
U   trunk/utils/hashtest.c

------------------------------------------------------------------------
r89177 | file | 2007-11-12 07:24:40 -0600 (Mon, 12 Nov 2007) | 6 lines

Fix building on FreeBSD by including/not including some headers.
(closes issue http://bugs.digium.com/view.php?id=11218)
Reported by: ys
Patches:
      trunk89169.diff uploaded by ys (license 281)

------------------------------------------------------------------------ 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-12-07 07:24  svnbot         Checkin                                      
11-12-07 07:24  svnbot         Note Added: 0073509                          
11-12-07 07:24  svnbot         Status                   new => assigned     
11-12-07 07:24  svnbot         Assigned To               => file            
======================================================================




More information about the asterisk-bugs mailing list