guoyuhong opened a new issue #952: Build failed in MacOS with XCode 11.1 URL: https://github.com/apache/incubator-brpc/issues/952 **Describe the bug (描述bug)** Build failed with conflict typedef. **To Reproduce (复现方法)** **Expected behavior (期望行为)** **Versions (各种版本)** OS: MacOS 10.15.1 or 10.14.6 Compiler: brpc: protobuf: **Additional context/screenshots (更多上下文/截图)** ``` make[6]: *** [src/CMakeFiles/BUTIL_LIB.dir/butil/mac/bundle_locations.mm.o] Error 1 make[6]: *** Waiting for unfinished jobs.... In file included from /Users/XXX/brpc/build/src/brpc/src/butil/file_util_mac.mm:12: /Users/XXX/brpc/build/src/brpc/src/butil/mac/foundation_util.h:54:35: error: typedef redefinition with different types ('struct OpaqueSecTrustRef *' vs 'struct __SecACL *') typedef struct OpaqueSecTrustRef* SecACLRef; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:216:46: note: previous definition is here typedef struct CF_BRIDGED_TYPE(id) __SecACL *SecACLRef API_UNAVAILABLE(ios, watchos, tvos, macCatalyst); ^ In file included from /Users/XXX/brpc/build/src/brpc/src/butil/file_util_mac.mm:12: /Users/XXX/brpc/build/src/brpc/src/butil/mac/foundation_util.h:55:48: error: typedef redefinition with different types ('struct OpaqueSecTrustedApplicationRef *' vs 'struct __SecTrustedApplication *') typedef struct OpaqueSecTrustedApplicationRef* SecTrustedApplicationRef; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:200:61: note: previous definition is here typedef struct CF_BRIDGED_TYPE(id) __SecTrustedApplication *SecTrustedApplicationRef API_UNAVAILABLE(ios, watchos, tvos, m... ^ In file included from /Users/XXX/brpc/build/src/brpc/src/butil/strings/sys_string_conversions_mac.mm:11: /Users/XXX/brpc/build/src/brpc/src/butil/mac/foundation_util.h:54:35: error: typedef redefinition with different types ('struct OpaqueSecTrustRef *' vs 'struct __SecACL *') typedef struct OpaqueSecTrustRef* SecACLRef; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:216:46: note: previous definition is here typedef struct CF_BRIDGED_TYPE(id) __SecACL *SecACLRef API_UNAVAILABLE(ios, watchos, tvos, macCatalyst); ^ In file included from /Users/XXX/brpc/build/src/brpc/src/butil/strings/sys_string_conversions_mac.mm:11: /Users/XXX/brpc/build/src/brpc/src/butil/mac/foundation_util.h:55:48: error: typedef redefinition with different types ('struct OpaqueSecTrustedApplicationRef *' vs 'struct __SecTrustedApplication *') typedef struct OpaqueSecTrustedApplicationRef* SecTrustedApplicationRef; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:200:61: note ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
