[Freeswitch-users] 1.2stable not compiling on Mac OS X 10.9

Karel Goderis karel.goderis at me.com
Wed Feb 5 11:59:06 MSK 2014


All

I am new to Freeswitch - I am not sure this is the right mailing list to post this message. Anyways, I followed the recipe/cookbook for Mac OS X 10.8 to get things going on my Mac OS X 10.9 Server edition mac mini, and it does not yield the expected results. ./bootstrap.sh and ./configure throw some warnings but they continue without problem. However, compiling freeswitch with make thereafter yields the following ungraceful exit / error message:

/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wno-extended-offsetof -MT strlcat.lo -MD -MP -MF .deps/strlcat.Tpo -c -o strlcat.lo strlcat.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -Wno-extended-offsetof -MT strlcat.lo -MD -MP -MF .deps/strlcat.Tpo -c strlcat.c  -fno-common -DPIC -o strlcat.o
strlcat.c:45:1: error: expected parameter declarator
strlcat(char *dst, const char *src, size_t siz)
^
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                             ^
/usr/include/secure/_common.h:30:32: note: expanded from macro '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
strlcat.c:45:1: error: expected ')'
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                             ^
/usr/include/secure/_common.h:30:32: note: expanded from macro '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
strlcat.c:45:1: note: to match this '('
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                    ^
strlcat.c:45:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
strlcat(char *dst, const char *src, size_t siz)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                              ^~~~~~~~~~~~~~~~~~~~~
strlcat.c:45:1: error: conflicting types for '__builtin___strlcat_chk'
/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
  ^
strlcat.c:45:1: note: '__builtin___strlcat_chk' is a builtin with type 'unsigned long (char *, const char *, unsigned long, unsigned long)'
/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
  ^
strlcat.c:45:1: error: definition of builtin function '__builtin___strlcat_chk'
strlcat(char *dst, const char *src, size_t siz)
^
/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
  ^
1 warning and 4 errors generated.
make[4]: *** [strlcat.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [libs/libedit/src/.libs/libedit.a] Error 2



I tried the same with the latest snapshot build, but there "make" does not even start, e.g. If I remember well ./configure is bitching about some problem with openssl.

Any help is appreciated...

Thanks
Karel



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140205/c3a44e4b/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list