[Home]

Summary:ASTERISK-12851: compilation fail on FreeBSD
Reporter:Yuri (ys)Labels:
Date Opened:2008-10-09 06:37:52Date Closed:2008-10-09 12:38:34
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/BuildSystem
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I can't compile now asterisk from trunk.

gcc report error about "uint64_t" type declaration in file include/asterisk/compat.h (line 105):

#ifndef HAVE_STRTOQ
uint64_t strtoq(const char *nptr, char **endptr, int base);
#endif


****** ADDITIONAL INFORMATION ******


gmake[1]: Entering directory `/usr/home/asterisk/src/asterisk/main'
gcc -o aescrypt.o -c aescrypt.c -D_THREAD_SAFE -pthread -I/usr/home/asterisk/src/asterisk/include  -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -Werror -Wunused -Wundef -Wdeclaration-after-statement -Wmissing-format-attribute -Wformat-security  -I/usr/local/include -march=i386   -MD -MT aescrypt.o -MF .aescrypt.o.d -MP
In file included from /usr/home/asterisk/src/asterisk/include/asterisk/endian.h:35,
                from aesopt.h:139,
                from aescrypt.c:52:
/usr/home/asterisk/src/asterisk/include/asterisk/compat.h:105: error: syntax error before "strtoq"
/usr/home/asterisk/src/asterisk/include/asterisk/compat.h:105: warning: type defaults to `int' in declaration of `strtoq'
/usr/home/asterisk/src/asterisk/include/asterisk/compat.h:105: warning: data definition has no type or storage class
gmake[1]: *** [aescrypt.o] Error 1
gmake[1]: Leaving directory `/usr/home/asterisk/src/asterisk/main'
gmake: *** [main] Error 2



#uname -a
FreeBSD asterisk.test 5.5-STABLE FreeBSD 5.5-STABLE ASTERISK-8: Tue Nov 13 14:37:32 MSK 2007     root@asterisk.test:/usr/src/sys/i386/compile/GW2  i386
Comments:By: Digium Subversion (svnbot) 2008-10-09 12:38:32

Repository: asterisk
Revision: 147899

U   trunk/include/asterisk/endian.h

------------------------------------------------------------------------
r147899 | mvanbaak | 2008-10-09 12:38:31 -0500 (Thu, 09 Oct 2008) | 5 lines

only include this for OpenBSD. At least FreeBSD is borked when including it

(closes issue ASTERISK-12851)
Reported by: ys

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

http://svn.digium.com/view/asterisk?view=rev&revision=147899