Summary: | ASTERISK-10739: trunk compilation error on FreeBSD (chan_unistim.c, hashtest) | ||
Reporter: | Yuri (ys) | Labels: | |
Date Opened: | 2007-11-12 04:01:02.000-0600 | Date Closed: | 2007-11-12 07:24:42.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) trunk89169.diff | |
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 | ||
Comments: | By: Yuri (ys) 2007-11-12 04:02:23.000-0600 I upload quick fix. By: Digium Subversion (svnbot) 2007-11-12 07:24:41.000-0600 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 ASTERISK-10739) Reported by: ys Patches: trunk89169.diff uploaded by ys (license 281) ------------------------------------------------------------------------ |