Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Problem installing Mac-Pasteboard-0.008

by rll307 (Initiate)
on Oct 09, 2016 at 14:15 UTC ( [id://1173592]=perlquestion: print w/replies, xml ) Need Help??

rll307 has asked for the wisdom of the Perl Monks concerning the following question:

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

Replies are listed 'Best First'.
Re: Problem installing Mac-Pasteboard-0.008
by kevbot (Vicar) on Oct 09, 2016 at 16:52 UTC

    It installed fine for me on Mac OS X 10.11.6 (El Capitan), using perl 5.22.1 (installed from perlbrew) and Xcode 7.3. I used cpanm to install it. Perhaps your problem is specific to macOS 10.12 (Sierra).

    I googled a bit, and it looks like there are similar bugs related to clock_gettime functions in Sierra.

    Are you using Xcode 7 or Xcode 8? I read a couple posts that suggested Xcode 8 is needed to fix a number of issues on Sierra.

Re: Problem installing Mac-Pasteboard-0.008
by mahesh557 (Novice) on Jan 27, 2017 at 21:31 UTC
    Hi, i have same issue. any solutions? Uma

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1173592]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-19 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found