New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #33813 (closed defect: fixed)

Opened 14 months ago

Last modified 12 months ago

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

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

Change History

comment:1 Changed 14 months ago by ryandesign@…

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

comment:4 Changed 12 months ago by computers57@…

  • Cc computers57@… added

Cc Me!

Changed 12 months ago by computers57@…

Patch to only use QuickDraw functions if they're available. Also updating makefile.

Changed 12 months ago by computers57@…

Macports patch for macclipboard-gimp

Changed 12 months ago by computers57@…

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.

comment:6 Changed 12 months ago by macsforever2000@…

  • Cc macsforever2000@… added

Cc Me!

Changed 12 months ago by computers57@…

Updated patch, diffs against SVN.

comment:7 Changed 12 months ago by raimue@…

  • Status changed from new to closed
  • Resolution set to fixed

Was committed by macsforever2000@ in r93755.

Note: See TracTickets for help on using tickets.