sudo perl -MCPAN -e shell install Mac::Pasteboard #### perl Makefile.PL make #### cc -c -I. -DTIGER -Os -DVERSION=\"0.008\" -DXS_VERSION=\"0.008\" "-I/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE" Pasteboard.c In file included from Pasteboard.xs:7: In file included from ./pbl.h:22: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:77: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/MacTypes.h:287:41: error: typedef redefinition with different types ('UnsignedWide' (aka 'struct UnsignedWide') vs 'UInt64' (aka 'unsigned long long')) typedef UnsignedWide AbsoluteTime; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kernel.framework/Headers/libkern/OSTypes.h:75:17: note: previous definition is here typedef UInt64 AbsoluteTime; ^ In file included from Pasteboard.xs:7: In file included from ./pbl.h:22: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:77: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/MacTypes.h:309:41: error: typedef redefinition with different types ('unsigned char' vs 'bool') typedef unsigned char Boolean; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kernel.framework/Headers/libkern/OSTypes.h:90:15: note: previous definition is here typedef _Bool Boolean; ^ In file included from Pasteboard.xs:7: In file included from ./pbl.h:22: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:77: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/MacTypes.h:596:9: error: unknown type name 'wide' typedef wide CompTimeValue; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/MacTypes.h:689:9: error: unknown type name 'wide' typedef wide * WidePtr; ^ In file included from Pasteboard.xs:7: ./pbl.h:58:5: warning: 'OptionBits' is deprecated [-Wdeprecated-declarations] PB_FLAVOR_FLAGS flags; /* flavor flags */ ^ ./pbl.h:20:25: note: expanded from macro 'PB_FLAVOR_FLAGS' #define PB_FLAVOR_FLAGS OptionBits ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/MacTypes.h:288:41: note: 'OptionBits' has been explicitly marked deprecated here typedef UInt32 OptionBits; ^ In file included from Pasteboard.xs:7: ./pbl.h:111:2: warning: 'OptionBits' is deprecated [-Wdeprecated-declarations] PB_FLAVOR_FLAGS flags ^ ./pbl.h:20:25: note: expanded from macro 'PB_FLAVOR_FLAGS' #define PB_FLAVOR_FLAGS OptionBits ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/MacTypes.h:288:41: note: 'OptionBits' has been explicitly marked deprecated here typedef UInt32 OptionBits; ^ In file included from Pasteboard.xs:7: ./pbl.h:128:2: warning: 'OptionBits' is deprecated [-Wdeprecated-declarations] PB_FLAVOR_FLAGS *flags ^ ./pbl.h:20:25: note: expanded from macro 'PB_FLAVOR_FLAGS' #define PB_FLAVOR_FLAGS OptionBits ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/MacTypes.h:288:41: note: 'OptionBits' has been explicitly marked deprecated here typedef UInt32 OptionBits; ^ Pasteboard.xs:71:6: warning: 'OptionBits' is deprecated [-Wdeprecated-declarations] PB_FLAVOR_FLAGS flags; ^ ./pbl.h:20:25: note: expanded from macro 'PB_FLAVOR_FLAGS' #define PB_FLAVOR_FLAGS OptionBits ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/MacTypes.h:288:41: note: 'OptionBits' has been explicitly marked deprecated here typedef UInt32 OptionBits; ^ 4 warnings and 4 errors generated. make: *** [Pasteboard.o] Error 1