[Tarantool-patches] [PATCH decNumber 1/1] Fix build on Mac with	gcc and XCode 11
    Kirill Yukhin 
    kyukhin at tarantool.org
       
    Tue Dec 10 17:13:05 MSK 2019
    
    
  
Hello,
On 01 дек 22:01, Vladislav Shpilevoy wrote:
> There is a bug in XCode 11 which makes some standard C headers
> not self sufficient. At least <stdlib.h> and <algorithm> are
> affected. When they are included first, compilation fails with
> creepy errors like this:
> 
>     In file included
>     from /Applications/Xcode.app/Contents/Developer/
>         Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/
>         sys/wait.h:110,
>     from /Applications/Xcode.app/Contents/Developer/
>         Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/
>         stdlib.h:66,
>     from /Users/gerold/Work/Repositories/tarantool/third_party/
>         zstd/lib/common/zstd_common.c:16:
>         /Applications/Xcode.app/Content/Developer/
>         Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/
>         sys/resource.h:
>     In function 'getiopolicy_np': /Applications/Xcode.app/Contents/Developer/
>         Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/
>         sys/resource.h:447:34: error:
>             expected declaration specifiers before '__OSX_AVAILABLE_STARTING'
>             447 | int     getiopolicy_np(int, int)
>             __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
> 
> The patch workarounds the bug by changing header include order.
> Part of https://github.com/tarantool/tarantool/issues/4580
Checked into master and bumped new version in Tarantool.
--
Regards, Kirill Yukhin
    
    
More information about the Tarantool-patches
mailing list