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!!


In reply to Problem installing Mac-Pasteboard-0.008 by rll307

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.