Dear friends,
I am trying to install Mac-Pasteboard-0.008 in a Macbook running MacOS 10.12. Xcode and Perl are installed accordingly. First I tried to install it via:
sudo perl -MCPAN -e shell
install Mac::Pasteboard
But it didn't work. Then I tried to download and make it out of the source code downloaded form CPAN. I tried to it by using the following commands:
perl Makefile.PL
make
In both cases I have the rolling error message, I hope someone can help me:
cc -c -I. -DTIGER -Os -DVERSION=\"0.008\" -DXS_VERSION=\"0.008\" "
+-I/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE" Pasteb
+oard.c
In file included from Pasteboard.xs:7:
In file included from ./pbl.h:22:
In file included from /Applications/Xcode.app/Contents/Developer/Platf
+orms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Fr
+ameworks/CoreFoundation.framework/Headers/CFBase.h:77:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/D
+eveloper/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/D
+eveloper/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kernel.framew
+ork/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/Platf
+orms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Fr
+ameworks/CoreFoundation.framework/Headers/CFBase.h:77:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/D
+eveloper/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/D
+eveloper/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Kernel.framew
+ork/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/Platf
+orms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Fr
+ameworks/CoreFoundation.framework/Headers/CFBase.h:77:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/D
+eveloper/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/D
+eveloper/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/D
+eveloper/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/D
+eveloper/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/D
+eveloper/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/D
+eveloper/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
Thank you!!