Opened 8 years ago

Closed 8 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)

clip.diff (16.3 KB) - added by MaddTheSane (C.W. Betts) 8 years ago.
Patch to strip out QuickDraw stuff
clip-nowhite2.diff (8.5 KB) - added by MaddTheSane (C.W. Betts) 8 years ago.
Patch to only use QuickDraw functions if they're available. Also updating makefile.
macclipdiff.diff (490 bytes) - added by MaddTheSane (C.W. Betts) 8 years ago.
Macports patch for macclipboard-gimp
patch-Lion.diff (8.4 KB) - added by MaddTheSane (C.W. Betts) 8 years ago.
Patch file to go along with macclipboard-gimp
macclipboard-gimp_svn.diff (9.2 KB) - added by MaddTheSane (C.W. Betts) 8 years ago.
Updated patch, diffs against SVN.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 8 years ago by ryandesign (Ryan Schmidt)

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.

comment:2 Changed 8 years ago by ryandesign (Ryan Schmidt)

Keywords: lion added
Summary: macclipboard-gimp fails to compilemacclipboard-gimp fails to compile on Lion

comment:3 Changed 8 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 8 years ago by MaddTheSane (C.W. Betts)

Attachment: clip.diff added

Patch to strip out QuickDraw stuff

comment:4 Changed 8 years ago by MaddTheSane (C.W. Betts)

Cc: computers57@… added

Cc Me!

Changed 8 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 8 years ago by MaddTheSane (C.W. Betts)

Attachment: macclipdiff.diff added

Macports patch for macclipboard-gimp

Changed 8 years ago by MaddTheSane (C.W. Betts)

Attachment: patch-Lion.diff added

Patch file to go along with macclipboard-gimp

comment:5 Changed 8 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.

comment:6 Changed 8 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

Changed 8 years ago by MaddTheSane (C.W. Betts)

Attachment: macclipboard-gimp_svn.diff added

Updated patch, diffs against SVN.

comment:7 Changed 8 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Was committed by macsforever2000@ in r93755.

Note: See TracTickets for help on using tickets.