none
Azure Storage Library Client for C++ not building on MAC 10.9 onwards.

    Question

  • Hi All,

    I am facing issue while building library on Mac Machine 10.8 and onwards.
    Please provide your solution.
    Thanks in advance.

    Following errors are logged as below
    ====================================
    [  1%] Building CXX object src/CMakeFiles/azurestorage.dir/xmlhelpers.cpp.o
    In file included from /Users/Secom9/CloudLogging/azure-storage-cpp/Microsoft.WindowsAzure.Storage/src/xmlhelpers.cpp:42:
    In file included from /Users/Secom9/CloudLogging/azure-storage-cpp/Microsoft.WindowsAzure.Storage/includes/stdafx.h:37:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:38:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:15:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:436:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:79:9: error: no member named 'strcoll' in the global namespace
    using ::strcoll;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:80:9: error: no member named 'strxfrm' in the global namespace
    using ::strxfrm;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:82:9: error: no member named 'memchr' in the global namespace; did you mean 'wmemchr'?
    using ::memchr;
          ~~^
    /usr/include/wchar.h:150:10: note: 'wmemchr' declared here
    wchar_t *wmemchr(const wchar_t *, wchar_t, size_t);
             ^
    In file included from /Users/Secom9/CloudLogging/azure-storage-cpp/Microsoft.WindowsAzure.Storage/src/xmlhelpers.cpp:42:
    In file included from /Users/Secom9/CloudLogging/azure-storage-cpp/Microsoft.WindowsAzure.Storage/includes/stdafx.h:37:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:38:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:15:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:436:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:86:9: error: no member named 'strcspn' in the global namespace
    using ::strcspn;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:88:9: error: no member named 'strpbrk' in the global namespace
    using ::strpbrk;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:90:9: error: no member named 'strrchr' in the global namespace; did you mean 'strchr'?
    using ::strrchr;
          ~~^
    /System/Library/Frameworks/Kernel.framework/Headers/string.h:81:14: note: 'strchr' declared here
    extern char     *strchr(const char *s, int c);
                     ^
    In file included from /Users/Secom9/CloudLogging/azure-storage-cpp/Microsoft.WindowsAzure.Storage/src/xmlhelpers.cpp:42:
    In file included from /Users/Secom9/CloudLogging/azure-storage-cpp/Microsoft.WindowsAzure.Storage/includes/stdafx.h:37:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:38:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:15:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:436:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:92:9: error: no member named 'strspn' in the global namespace
    using ::strspn;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:94:9: error: no member named 'strstr' in the global namespace; did you mean 'strnstr'?
    using ::strstr;
          ~~^
    /System/Library/Frameworks/Kernel.framework/Headers/string.h:80:14: note: 'strnstr' declared here
    extern char     *strnstr(char *s, const char *find, size_t slen);
                     ^
    In file included from /Users/Secom9/CloudLogging/azure-storage-cpp/Microsoft.WindowsAzure.Storage/src/xmlhelpers.cpp:42:
    In file included from /Users/Secom9/CloudLogging/azure-storage-cpp/Microsoft.WindowsAzure.Storage/includes/stdafx.h:37:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:38:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:15:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:436:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:99:98: error: no member named 'strpbrk' in the global namespace; did you mean simply 'strpbrk'?
    inline _LIBCPP_INLINE_VISIBILITY       char* strpbrk(      char* __s1, const char* __s2) {return ::strpbrk(__s1, __s2);}
                                                                                                     ^~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:99:46: note: 'strpbrk' declared here
    inline _LIBCPP_INLINE_VISIBILITY       char* strpbrk(      char* __s1, const char* __s2) {return ::strpbrk(__s1, __s2);}
                                                 ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:100:88: error: no member named 'strrchr' in the global namespace; did you mean simply 'strrchr'?
    inline _LIBCPP_INLINE_VISIBILITY       char* strrchr(      char* __s, int __c) {return ::strrchr(__s, __c);}
                                                                                           ^~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:100:46: note: 'strrchr' declared here
    inline _LIBCPP_INLINE_VISIBILITY       char* strrchr(      char* __s, int __c) {return ::strrchr(__s, __c);}
                                                 ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:101:99: error: no member named 'memchr' in the global namespace; did you mean simply 'memchr'?
    inline _LIBCPP_INLINE_VISIBILITY       void* memchr(      void* __s, int __c, size_t __n) {return ::memchr(__s, __c, __n);}
                                                                                                      ^~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:101:46: note: 'memchr' declared here
    inline _LIBCPP_INLINE_VISIBILITY       void* memchr(      void* __s, int __c, size_t __n) {return ::memchr(__s, __c, __n);}
                                                 ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:102:97: error: no member named 'strstr' in the global namespace; did you mean simply 'strstr'?
    inline _LIBCPP_INLINE_VISIBILITY       char* strstr(      char* __s1, const char* __s2) {return ::strstr(__s1, __s2);}
                                                                                                    ^~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:102:46: note: 'strstr' declared here
    inline _LIBCPP_INLINE_VISIBILITY       char* strstr(      char* __s1, const char* __s2) {return ::strstr(__s1, __s2);}
                                                 ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:105:9: error: no member named 'strtok' in the global namespace
    using ::strtok;
          ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:107:9: error: no member named 'strerror' in the global namespace
    using ::strerror;
          ~~^
    In file included from /Users/Secom9/CloudLogging/azure-storage-cpp/Microsoft.WindowsAzure.Storage/src/xmlhelpers.cpp:42:
    In file included from /Users/Secom9/CloudLogging/azure-storage-cpp/Microsoft.WindowsAzure.Storage/includes/stdafx.h:37:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:38:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:15:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:192:49: error: declaration conflicts with target of using declaration already in scope
    inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return ::wmemchr(__s, __c, __n);}
                                                    ^
    /usr/include/wchar.h:150:10: note: target of using declaration
    wchar_t *wmemchr(const wchar_t *, wchar_t, size_t);
             ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:82:9: note: using declaration
    using ::memchr;
            ^
    In file included from /Users/Secom9/CloudLogging/azure-storage-cpp/Microsoft.WindowsAzure.Storage/src/xmlhelpers.cpp:42:
    In file included from /Users/Secom9/CloudLogging/azure-storage-cpp/Microsoft.WindowsAzure.Storage/includes/stdafx.h:37:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:38:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:15:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:656:35: error: no matching function for call to 'memchr'
            {return (const char_type*)memchr(__s, to_int_type(__a), __n);}
                                      ^~~~~~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:101:46: note: candidate function not viable: no known conversion from 'const char_type *' (aka 'const char *') to 'void *' for 1st argument; take the address of the argument with &
    inline _LIBCPP_INLINE_VISIBILITY       void* memchr(      void* __s, int __c, size_t __n) {return ::memchr(__s, __c, __n);}
                                                 ^
    In file included from /Users/Secom9/CloudLogging/azure-storage-cpp/Microsoft.WindowsAzure.Storage/src/xmlhelpers.cpp:42:
    In file included from /Users/Secom9/CloudLogging/azure-storage-cpp/Microsoft.WindowsAzure.Storage/includes/stdafx.h:37:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:40:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/istream:156:
    In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:133:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/locale:864:44: error: use of undeclared identifier 'errno'
            typename remove_reference<decltype(errno)>::type __save_errno = errno;
                                               ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/locale:864:53: error: no type named 'type' in the global namespace
            typename remove_reference<decltype(errno)>::type __save_errno = errno;
                                                      ~~^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/locale:864:73: error: use of undeclared identifier 'errno'
            typename remove_reference<decltype(errno)>::type __save_errno = errno;
                                                                            ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    make[2]: *** [src/CMakeFiles/azurestorage.dir/xmlhelpers.cpp.o] Error 1
    make[1]: *** [src/CMakeFiles/azurestorage.dir/all] Error 2
    make: *** [all] Error 2
    Wednesday, March 15, 2017 6:09 AM

All replies

  • OSX is not officially supported yet, but it has been seen to work, YMMV. This build has been tested to work when the dependencies are installed via homebrew, YMMV if using FINK or MacPorts

    For more information refer the section “Getting Started on OSX” in the below link:

    http://azure.github.io/azure-storage-cpp/
    Thursday, March 16, 2017 6:56 AM
    Moderator
  • Hi vikranth

    Thanks for your input.

    I was gone through this link before.

    we performed all the steps mentioned in it using home brew.

    still it fails to build storage library with same error.

    We also tried with manual build steps as mentioned in the link, but get the same result.

    We stuck in solving error generating.

    Thanks And Regards,

    Girish

    Friday, March 17, 2017 8:35 AM
  • Post your query on GitHub. The C++ Storage SDK is open-sourced on GitHub; the dev team monitors issues there. There may be other community members who can answer questions/issues as well.

    Thursday, March 23, 2017 3:39 AM
    Moderator
  • I have posted issue on GitHub.

    Thanks for your suggestion.

    Thanks Vikranth.

    Thanks And Regards,

    Girish

    Thursday, March 23, 2017 9:12 AM