Ticket #33813 (closed defect: fixed)
macclipboard-gimp fails to compile on Lion
| Reported by: | thesaxophonist@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.4 |
| Keywords: | lion | Cc: | computers57@…, macsforever2000@… |
| Port: | macclipboard-gimp |
Description
macclipboard-gimp fails to compile under 10.7.3 using Xcode 4.3.2 (clang or llvm-gcc compiler):
... :info:build macclipboard.m: In function ‘clipboard_copy’: :info:build macclipboard.m:528: warning: ‘NSPICTPboardType’ is deprecated (declared at /System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:347) :info:build macclipboard.m: In function ‘clipboard_paste_service’: :info:build macclipboard.m:564: warning: ‘cString’ is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:341) :info:build macclipboard.m: In function ‘clipboard_paste_board’: :info:build macclipboard.m:585: warning: ‘NSPICTPboardType’ is deprecated (declared at /System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:347) :info:build macclipboard.m:604: warning: ‘NSPICTPboardType’ is deprecated (declared at /System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:347) :info:build macclipboard.m: In function ‘clipboard_offscreen_pict’: :info:build macclipboard.m:631: error: ‘PictInfo’ undeclared (first use in this function) :info:build macclipboard.m:631: error: (Each undeclared identifier is reported only once :info:build macclipboard.m:631: error: for each function it appears in.) :info:build macclipboard.m:631: error: expected ‘;’ before ‘info’ :info:build macclipboard.m:632: error: ‘info’ undeclared (first use in this function) :info:build macclipboard.m:654: warning: initialization makes pointer from integer without a cast :info:build macclipboard.m:655: warning: cast to pointer from integer of different size :info:build macclipboard.m: In function ‘clipboard_paste_bitmap’: :info:build macclipboard.m:977: warning: ‘cString’ is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:341) :info:build macclipboard.m:988: warning: ‘cString’ is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:341) :info:build macclipboard.m:993: warning: ‘NSCalibratedBlackColorSpace’ is deprecated (declared at /System/Library/Frameworks/AppKit.framework/Headers/NSGraphics.h:91) :info:build macclipboard.m:994: warning: ‘NSDeviceBlackColorSpace’ is deprecated (declared at /System/Library/Frameworks/AppKit.framework/Headers/NSGraphics.h:92) :info:build macclipboard.m:999: warning: ‘cString’ is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:341) :info:build macclipboard.m:1006: warning: ‘cString’ is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:341) :info:build make: *** [macclipboard] Error 1 ...
Attachments
Change History
comment:2 Changed 14 months ago by ryandesign@…
- Keywords lion added
- Summary changed from macclipboard-gimp fails to compile to macclipboard-gimp fails to compile on Lion
comment:3 Changed 12 months ago by computers57@…
This is more an issue with QuickDraw functions not being available under 64-bit code, which is, I think, the default on Snow Leopard and Lion. Also the QuickDraw headers aren't in the Lion SDK.
I'll be posting a patch that strips out all the QuickDraw code.
Changed 12 months ago by computers57@…
Patch to strip out QuickDraw stuff
Changed 12 months ago by computers57@…
- Attachment clip-nowhite2.diff added
Patch to only use QuickDraw functions if they're available. Also updating makefile.
Changed 12 months ago by computers57@…
- Attachment macclipdiff.diff added
Macports patch for macclipboard-gimp
Changed 12 months ago by computers57@…
- Attachment patch-Lion.diff added
Patch file to go along with macclipboard-gimp
comment:5 Changed 12 months ago by computers57@…
The patch-Lion.diff files goes into macclipboard-gimp's file directory, and macclipdiff.diff gets patched against macclipboard-gimp's Portfile.
Changed 12 months ago by computers57@…
- Attachment macclipboard-gimp_svn.diff added
Updated patch, diffs against SVN.
Note: See
TracTickets for help on using
tickets.


Sorry, macclipboard-gimp is ancient software from 2004, and it appears to use Carbon programming APIs that have been deprecated for years and which are no longer available in the Lion SDK.
It's possible this could be made to work by telling the portfile using the Snow Leopard SDK on Lion.