Opened 13 years ago
Closed 12 years ago
#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: | MaddTheSane (C.W. Betts), mf2k (Frank Schima) |
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 (5)
Change History (12)
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | lion added |
---|---|
Summary: | macclipboard-gimp fails to compile → macclipboard-gimp fails to compile on Lion |
comment:3 Changed 13 years ago by MaddTheSane (C.W. Betts)
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 13 years ago by MaddTheSane (C.W. Betts)
Patch to strip out QuickDraw stuff
Changed 12 years ago by MaddTheSane (C.W. Betts)
Attachment: | clip-nowhite2.diff added |
---|
Patch to only use QuickDraw functions if they're available. Also updating makefile.
Changed 12 years ago by MaddTheSane (C.W. Betts)
Attachment: | macclipdiff.diff added |
---|
Macports patch for macclipboard-gimp
Changed 12 years ago by MaddTheSane (C.W. Betts)
Attachment: | patch-Lion.diff added |
---|
Patch file to go along with macclipboard-gimp
comment:5 Changed 12 years ago by MaddTheSane (C.W. Betts)
The patch-Lion.diff files goes into macclipboard-gimp's file directory, and macclipdiff.diff gets patched against macclipboard-gimp's Portfile.
Changed 12 years ago by MaddTheSane (C.W. Betts)
Attachment: | macclipboard-gimp_svn.diff added |
---|
Updated patch, diffs against SVN.
comment:7 Changed 12 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Was committed by macsforever2000@ in r93755.
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.