[Freeswitch-users] 1.2stable not compiling on Mac OS X 10.9
Michael Jerris
mike at jerris.com
Wed Feb 5 21:41:53 MSK 2014
If anyone was having a seg on startup on master, I've pushed a fix that should help that too, i had seen reports of that on mac.
Mike
On Feb 5, 2014, at 1:37 PM, Mario G <mario_fs at mgtech.com> wrote:
> I added the openssl requirement to the 10.8 wiki page for now which also works for 10.9 except: for 10.9 remember to install Xcode 5 FIRST then the command line tools. DO NOT try to install CLT without Xcode first! Major wiki updates coming later.
> Mario G
>
> On Feb 5, 2014, at 5:58 AM, Michael Jerris <mike at jerris.com> wrote:
>
>> Try installing latest openssl using homebrew and rebuild from scratch using master, it should work fine.
>>
>> Mike
>>
>> On Feb 5, 2014, at 3:59 AM, Karel Goderis <karel.goderis at me.com> wrote:
>>
>>> 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
>>>
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>>
>>>
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140205/a4d51565/attachment-0001.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list