New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #32992 (closed defect: fixed)

Opened 2 years ago

Last modified 22 months ago

fltk 1.1.10 does not build on Lion: use of undeclared identifier 'NewRgn'

Reported by: andrewabirchall@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: lion carbon Cc: josh@…
Port: fltk

Description (last modified by ryandesign@…) (diff)

Just updated to OSX Lion and ftk does not build:

Similar issue here: #21054

--->  Computing dependencies for fltk
--->  Building fltk
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! jpeg 8c_0 >= jpeg 8c_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main libpng 1.4.8_0 exists in the ports tree
:debug:main libpng 1.4.8_0  is the latest installed
:debug:main libpng 1.4.8_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/libpng
:debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/archcheck-1.0.tcl
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! libpng 1.4.8_0 >= libpng 1.4.8_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main zlib 1.2.5_0 exists in the ports tree
:debug:main zlib 1.2.5_0  is the latest installed
:debug:main zlib 1.2.5_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
:debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/xcodeversion-1.0.tcl
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! zlib 1.2.5_0 >= zlib 1.2.5_0
:msg:main --->  Computing dependencies for fltk:info:main .:debug:main Checking for conflicts against fltk
:debug:main Searching for dependency: fltk-devel
:debug:main Didn't find receipt, going to depspec regex for: fltk-devel
:debug:main Searching for dependency: jpeg
:debug:main Found Dependency: receipt exists for jpeg
:debug:main Searching for dependency: libpng
:debug:main Found Dependency: receipt exists for libpng
:debug:main Searching for dependency: zlib
:debug:main Found Dependency: receipt exists for zlib
:msg:main
:debug:main Executing org.macports.main (fltk)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 501
:debug:main Skipping completed org.macports.archivefetch (fltk)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (fltk)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (fltk)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (fltk)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (fltk)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (fltk)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Sun Jan 22 19:26:43 PST 2012
:notice:build --->  Building fltk
:debug:build Executing org.macports.build (fltk)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/fltk/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/fltk/work/fltk-1.1.10" && /usr/bin/make -j5 -w all'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/fltk/work/fltk-1.1.10" && /usr/bin/make -j5 -w all 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/fltk/work/fltk-1.1.10'
:info:build === making jpeg ===
:info:build === making png ===
:info:build === making src ===
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/fltk/work/fltk-1.1.10/src'
:info:build Compiling Fl.cxx...
:info:build Compiling Fl_Bitmap.cxx...
:info:build Compiling Fl_Double_Window.cxx...
:info:build Compiling Fl_File_Chooser2.cxx...
:info:build Compiling Fl_Help_View.cxx...
:info:build In file included from Fl.cxx:35:
:info:build In file included from ../FL/x.H:41:
:info:build ../FL/mac.H:49:17: error: use of undeclared identifier 'NewRgn'
:info:build   Fl_Region R = NewRgn();
:info:build                 ^
:info:build In file included from Fl_Help_View.cxx:61:
:info:build In file included from ../FL/x.H:41:
:info:build ../FL/mac.H:49:17: error: use of undeclared identifier 'NewRgn'
:info:build   Fl_Region R = NewRgn();
:info:build                 ^
:info:build In file included from Fl_Bitmap.cxx:29:
:info:build In file included from ../FL/x.H:41:
:info:build ../FL/mac.H:49:17: error: use of undeclared identifier 'NewRgn'
:info:build   Fl_Region R = NewRgn();
:info:build                 ^
:info:build In file included from Fl_File_Chooser2.cxx:52:
:info:build In file included from ../FL/x.H:41:
:info:build ../FL/mac.H:49:17: error: use of undeclared identifier 'NewRgn'
:info:build   Fl_Region R = NewRgn();
:info:build                 ^
:info:build ../FL/mac.H:50:3: error: use of undeclared identifier 'SetRectRgn'
:info:build   SetRectRgn(R, x, y, x+w, y+h);
:info:build   ^
:info:build ../FL/mac.H:54:3: error: use of undeclared identifier 'DisposeRgn'
:info:build   DisposeRgn(r);
:info:build   ^
:info:build ../FL/mac.H:50:3: error: use of undeclared identifier 'SetRectRgn'
:info:build   SetRectRgn(R, x, y, x+w, y+h);
:info:build   ^
:info:build ../FL/mac.H:50:3: error: use of undeclared identifier 'SetRectRgn'
:info:build   SetRectRgn(R, x, y, x+w, y+h);
:info:build   ^
:info:build ../FL/mac.H:54:3: error: use of undeclared identifier 'DisposeRgn'
:info:build   DisposeRgn(r);
:info:build   ^
:info:build ../FL/mac.H:50:3: error: use of undeclared identifier 'SetRectRgn'
:info:build   SetRectRgn(R, x, y, x+w, y+h);
:info:build   ^
:info:build ../FL/mac.H:72:3: error: unknown type name 'CursHandle'; did you mean 'CharsHandle'?
:info:build   CursHandle cursor;
:info:build   ^~~~~~~~~~
:info:build   CharsHandle
:info:build /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/TextEdit.h:354:41: note: 'CharsHandle' declared here
:info:build typedef CharsPtr *                      CharsHandle;
:info:build                                         ^
:info:build In file included from Fl.cxx:35:
:info:build In file included from ../FL/x.H:41:
:info:build ../FL/mac.H:99:8: error: unknown type name 'CursHandle'; did you mean 'CharsHandle'?
:info:build extern CursHandle fl_default_cursor;
:info:build        ^~~~~~~~~~
:info:build        CharsHandle
:info:build /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/TextEdit.h:354:41: note: 'CharsHandle' declared here
:info:build typedef CharsPtr *                      CharsHandle;
:info:build                                         ^
:info:build ../FL/mac.H:54:3: error: use of undeclared identifier 'DisposeRgn'
:info:build   DisposeRgn(r);
:info:build   ^
:info:build ../FL/mac.H:72:3: error: unknown type name 'CursHandle'; did you mean 'CharsHandle'?
:info:build   CursHandle cursor;
:info:build   ^~~~~~~~~~
:info:build   CharsHandle
:info:build /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/TextEdit.h:354:41: note: 'CharsHandle' declared here
:info:build typedef CharsPtr *                      CharsHandle;
:info:build                                         ^
:info:build In file included from Fl_Help_View.cxx:61:
:info:build In file included from ../FL/x.H:41:
:info:build ../FL/mac.H:99:8: error: unknown type name 'CursHandle'; did you mean 'CharsHandle'?
:info:build extern CursHandle fl_default_cursor;
:info:build        ^~~~~~~~~~
:info:build        CharsHandle
:info:build /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/TextEdit.h:354:41: note: 'CharsHandle' declared here
:info:build typedef CharsPtr *                      CharsHandle;
:info:build                                         ^
:info:build In file included from Fl_Double_Window.cxx:31:
:info:build In file included from ../FL/x.H:41:
:info:build ../FL/mac.H:49:17: error: use of undeclared identifier 'NewRgn'
:info:build   Fl_Region R = NewRgn();
:info:build                 ^
:info:build ../FL/mac.H:54:3: error: use of undeclared identifier 'DisposeRgn'
:info:build   DisposeRgn(r);
:info:build   ^
:info:build Fl.cxx:491:3: error: use of undeclared identifier 'GetPort'
:info:build   GetPort( &port );
:info:build   ^
:info:build ../FL/mac.H:72:3: error: unknown type name 'CursHandle'; did you mean 'CharsHandle'?
:info:build   CursHandle cursor;
:info:build   ^~~~~~~~~~
:info:build   CharsHandle
:info:build /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/TextEdit.h:354:41: note: 'CharsHandle' declared here
:info:build typedef CharsPtr *                      CharsHandle;
:info:build                                         ^
:info:build In file included from Fl_File_Chooser2.cxx:52:
:info:build In file included from ../FL/x.H:41:
:info:build ../FL/mac.H:99:8: error: unknown type name 'CursHandle'; did you mean 'CharsHandle'?
:info:build extern CursHandle fl_default_cursor;
:info:build        ^~~~~~~~~~
:info:build        CharsHandle
:info:build /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/TextEdit.h:354:41: note: 'CharsHandle' declared here
:info:build typedef CharsPtr *                      CharsHandle;
:info:build                                         ^
:info:build ../FL/mac.H:72:3: error: unknown type name 'CursHandle'; did you mean 'CharsHandle'?
:info:build   CursHandle cursor;
:info:build   ^~~~~~~~~~
:info:build   CharsHandle
:info:build /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/TextEdit.h:354:41: note: 'CharsHandle' declared here
:info:build typedef CharsPtr *                      CharsHandle;
:info:build                                         ^
:info:build In file included from Fl_Bitmap.cxx:29:
:info:build In file included from ../FL/x.H:41:
:info:build ../FL/mac.H:99:8: error: unknown type name 'CursHandle'; did you mean 'CharsHandle'?
:info:build extern CursHandle fl_default_cursor;
:info:build        ^~~~~~~~~~
:info:build        CharsHandle
:info:build /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/TextEdit.h:354:41: note: 'CharsHandle' declared here
:info:build typedef CharsPtr *                      CharsHandle;
:info:build                                         ^
:info:build Fl_File_Chooser2.cxx:572:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
:info:build       fl_alert(existing_file_label);
:info:build                ^~~~~~~~~~~~~~~~~~~
:info:build ../FL/mac.H:50:3: error: use of undeclared identifier 'SetRectRgn'
:info:build   SetRectRgn(R, x, y, x+w, y+h);
:info:build   ^
:info:build 1 warning and 5 errors generated.
:info:build Fl_Bitmap.cxx:43:3: error: use of undeclared identifier 'GetPort'
:info:build   GetPort(&savePort); // remember the current port
:info:build   ^
:info:build make[1]: *** [Fl_File_Chooser2.o] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build 5 errors generated.
:info:build ../FL/mac.H:54:3: error: use of undeclared identifier 'DisposeRgn'
:info:build   DisposeRgn(r);
:info:build   ^
:info:build make[1]: *** [Fl_Help_View.o] Error 1
:info:build ../FL/mac.H:72:3: error: unknown type name 'CursHandle'; did you mean 'CharsHandle'?
:info:build   CursHandle cursor;
:info:build   ^~~~~~~~~~
:info:build   CharsHandle
:info:build /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/TextEdit.h:354:41: note: 'CharsHandle' declared here
:info:build typedef CharsPtr *                      CharsHandle;
:info:build                                         ^
:info:build Fl_Bitmap.cxx:46:3: error: use of undeclared identifier 'NewGWorld'
:info:build   NewGWorld( &gw, 1, &srcRect, 0L, 0L, 0 );
:info:build   ^
:info:build In file included from Fl_Double_Window.cxx:31:
:info:build In file included from ../FL/x.H:41:
:info:build ../FL/mac.H:99:8: error: unknown type name 'CursHandle'; did you mean 'CharsHandle'?
:info:build extern CursHandle fl_default_cursor;
:info:build        ^~~~~~~~~~
:info:build        CharsHandle
:info:build /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/TextEdit.h:354:41: note: 'CharsHandle' declared here
:info:build typedef CharsPtr *                      CharsHandle;
:info:build                                         ^
:info:build Fl.cxx:493:5: error: use of undeclared identifier 'QDFlushPortBuffer'
:info:build     QDFlushPortBuffer( port, 0 );
:info:build     ^
:info:build Fl.cxx:719:27: warning: '&&' within '||' [-Wlogical-op-parentheses]
:info:build     if (grab() || modal() && window != modal()) return 0;
:info:build                ~~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
:info:build Fl.cxx:719:27: note: place parentheses around the '&&' expression to silence this warning
:info:build     if (grab() || modal() && window != modal()) return 0;
:info:build                           ^
:info:build                   (                           )
:info:build Fl.cxx:1183:21: error: use of undeclared identifier 'NewRgn'
:info:build       Fl_Region R = NewRgn(); 
:info:build                     ^
:info:build Fl.cxx:1184:7: error: use of undeclared identifier 'SetRectRgn'
:info:build       SetRectRgn(R, X, Y, X+W, Y+H);
:info:build       ^
:info:build Fl_Double_Window.cxx:167:15: error: use of undeclared identifier 'NewGWorld'
:info:build   QDErr err = NewGWorld(&gw, 0, &bounds, 0L, 0L, 0); // 'useTempMem' should not be used (says the Carbon port manual)
:info:build               ^
:info:build Fl_Double_Window.cxx:180:20: error: use of undeclared identifier 'GetPort'; did you mean 'dstPort'?
:info:build   GrafPtr dstPort; GetPort(&dstPort);
:info:build                    ^~~~~~~
:info:build                    dstPort
:info:build Fl_Double_Window.cxx:180:11: note: 'dstPort' declared here
:info:build   GrafPtr dstPort; GetPort(&dstPort);
:info:build           ^
:info:build Fl_Double_Window.cxx:180:27: error: called object type 'GrafPtr' (aka 'OpaqueGrafPtr *') is not a function or function pointer
:info:build   GrafPtr dstPort; GetPort(&dstPort);
:info:build                    ~~~~~~~^
:info:build Fl.cxx:1185:7: error: use of undeclared identifier 'UnionRgn'
:info:build       UnionRgn(R, i->region, i->region);
:info:build       ^
:info:build Fl.cxx:1186:7: error: use of undeclared identifier 'DisposeRgn'
:info:build       DisposeRgn(R);
:info:build       ^
:info:build In file included from Fl.cxx:1218:
:info:build ./Fl_mac.cxx:91:1: error: unknown type name 'CursHandle'; did you mean 'CharsHandle'?
:info:build CursHandle fl_default_cursor;
:info:build ^~~~~~~~~~
:info:build CharsHandle
:info:build /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/TextEdit.h:354:41: note: 'CharsHandle' declared here
:info:build typedef CharsPtr *                      CharsHandle;
:info:build                                         ^
:info:build Fl_Double_Window.cxx:183:3: error: use of undeclared identifier 'GetForeColor'; did you mean 'GetColor'?
:info:build   GetForeColor(&oldfg);
:info:build   ^~~~~~~~~~~~
:info:build   GetColor
:info:build /System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers/ColorPicker.h:467:1: note: 'GetColor' declared here
:info:build GetColor(
:info:build ^
:info:build Fl_Double_Window.cxx:183:22: error: too few arguments to function call, expected 4, have 1
:info:build   GetForeColor(&oldfg);
:info:build   ~~~~~~~~~~~~       ^
:info:build Fl_Bitmap.cxx:47:21: error: use of undeclared identifier 'GetGWorldPixMap'
:info:build   PixMapHandle pm = GetGWorldPixMap( gw );
:info:build                     ^
:info:build In file included from Fl.cxx:1218:
:info:build ./Fl_mac.cxx:106:8: error: unknown type name 'CursPtr'; did you mean 'CharsPtr'?
:info:build static CursPtr default_cursor_ptr;
:info:build        ^~~~~~~
:info:build        CharsPtr
:info:build /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/TextEdit.h:353:41: note: 'CharsPtr' declared here
:info:build typedef char *                          CharsPtr;
:info:build                                         ^
:info:build Fl_Double_Window.cxx:184:3: error: use of undeclared identifier 'GetBackColor'; did you mean 'GetColor'?
:info:build   GetBackColor(&oldbg);
:info:build   ^~~~~~~~~~~~
:info:build   GetColor
:info:build /System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers/ColorPicker.h:467:1: note: 'GetColor' declared here
:info:build GetColor(
:info:build ^
:info:build Fl_Double_Window.cxx:184:22: error: too few arguments to function call, expected 4, have 1
:info:build   GetBackColor(&oldbg);
:info:build   ~~~~~~~~~~~~       ^
:info:build In file included from Fl.cxx:1218:
:info:build ./Fl_mac.cxx:107:8: error: unknown type name 'Cursor'
:info:build static Cursor default_cursor;
:info:build        ^
:info:build ./Fl_mac.cxx:676:11: error: use of undeclared identifier 'NewRgn'
:info:build     rgn = NewRgn();
:info:build           ^
:info:build ./Fl_mac.cxx:679:5: error: use of undeclared identifier 'SetRectRgn'
:info:build     SetRectRgn(rgn, mp.h, mp.v, mp.h, mp.v);
:info:build     ^
:info:build ./Fl_mac.cxx:1041:5: error: use of undeclared identifier 'GetPort'
:info:build     GetPort( &oldPort );
:info:build     ^
:info:build Fl_Double_Window.cxx:186:3: error: use of undeclared identifier 'RGBBackColor'; did you mean 'RGBColor'?
:info:build   RGBBackColor( &rgb );
:info:build   ^
:info:build Fl_Bitmap.cxx:50:5: error: use of undeclared identifier 'LockPixels'
:info:build     LockPixels( pm );
:info:build     ^
:info:build ./Fl_mac.cxx:1042:5: error: use of undeclared identifier 'SetPort'
:info:build     SetPort( GetWindowPort(xid) ); // \todo replace this! There must be some GlobalToLocal call that has a port as an argument
:info:build     ^
:info:build Fl_Double_Window.cxx:188:3: error: use of undeclared identifier 'RGBForeColor'; did you mean 'RGBColor'?
:info:build   RGBForeColor( &rgb );
:info:build   ^
:info:build Fl_Bitmap.cxx:53:29: error: use of undeclared identifier 'GetPixBaseAddr'
:info:build       uchar *base = (uchar*)GetPixBaseAddr( pm );
:info:build                             ^
:info:build ./Fl_mac.cxx:1043:5: error: use of undeclared identifier 'SetOrigin'
:info:build     SetOrigin(0, 0);
:info:build     ^
:info:build fatal error: too many errors emitted, stopping now [-ferror-limit=]
:info:build 1 warning and 20 errors generated.
:info:build make[1]: *** [Fl.o] Error 1
:info:build Fl_Bitmap.cxx:71:7: error: use of undeclared identifier 'UnlockPixels'
:info:build       UnlockPixels( pm );
:info:build       ^
:info:build Fl_Bitmap.cxx:75:3: error: use of undeclared identifier 'SetPort'
:info:build   SetPort(savePort);
:info:build   ^
:info:build Fl_Bitmap.cxx:80:11: error: use of undeclared identifier 'DisposeGWorld'
:info:build   if (id) DisposeGWorld(id);
:info:build           ^
:info:build Fl_Bitmap.cxx:385:3: error: use of undeclared identifier 'GetPort'
:info:build   GetPort( &dstPort );
:info:build   ^
:info:build Fl_Double_Window.cxx:189:12: error: use of undeclared identifier 'GetPortBitMapForCopyBits'
:info:build   CopyBits(GetPortBitMapForCopyBits(gWorld), GetPortBitMapForCopyBits(dstPort), &src, &dst, srcCopy, 0L);
:info:build            ^
:info:build Fl_Double_Window.cxx:190:3: error: use of undeclared identifier 'RGBBackColor'; did you mean 'RGBColor'?
:info:build   RGBBackColor(&oldbg);
:info:build   ^
:info:build Fl_Double_Window.cxx:191:3: error: use of undeclared identifier 'RGBForeColor'; did you mean 'RGBColor'?
:info:build   RGBForeColor(&oldfg);
:info:build   ^
:info:build Fl_Bitmap.cxx:387:3: error: use of undeclared identifier 'GetPortBounds'
:info:build   GetPortBounds( (Fl_Offscreen)id, &src );
:info:build   ^
:info:build Fl_Bitmap.cxx:388:3: error: use of undeclared identifier 'SetRect'
:info:build   SetRect( &src, cx, cy, cx+W, cy+H );
:info:build   ^
:info:build Fl_Bitmap.cxx:389:3: error: use of undeclared identifier 'SetRect'
:info:build   SetRect( &dst, X, Y, X+W, Y+H );
:info:build   ^
:info:build Fl_Double_Window.cxx:195:3: error: use of undeclared identifier 'DisposeGWorld'
:info:build   DisposeGWorld(gWorld);
:info:build   ^
:info:build Fl_Double_Window.cxx:202:3: error: use of undeclared identifier 'GetGWorld'
:info:build   GetGWorld( &prevPort, &prevGD );
:info:build   ^
:info:build fatal error: too many errors emitted, stopping now [-ferror-limit=]
:info:build 20 errors generated.
:info:build make[1]: *** [Fl_Double_Window.o] Error 1
:info:build Fl_Bitmap.cxx:390:12: error: use of undeclared identifier 'GetPortBitMapForCopyBits'
:info:build   CopyBits(GetPortBitMapForCopyBits((Fl_Offscreen)id),  // srcBits
:info:build            ^
:info:build 18 errors generated.
:info:build make[1]: *** [Fl_Bitmap.o] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/fltk/work/fltk-1.1.10/src'
:info:build make: *** [all] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/fltk/work/fltk-1.1.10'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/fltk/work/fltk-1.1.10" && /usr/bin/make -j5 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for fltk): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for fltk is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/fltk/main.log

Change History

comment:1 Changed 2 years ago by ryandesign@…

  • Keywords lion carbon added; fltk removed
  • Description modified (diff)
  • Summary changed from fltk-1.1.10 does not build on 64-bit os x lion to fltk 1.1.10 does not build on Lion: use of undeclared identifier 'NewRgn'

As you can see, #21054 was fixed. The port no longer attempts to build 64-bit.

The problem is that in Lion Apple removed even the 32-bit versions of the old Carbon functions this old version of fltk is using.

Check #29664 for updated fltk versions; maybe they work on Lion. Otherwise, use Snow Leopard or earlier.

comment:2 Changed 2 years ago by computers57@…

A workaround is to use the 10.6 SDK. I don't know if MacPorts allows specifying an SDK based on OS version, though.

comment:3 Changed 2 years ago by josh@…

  • Cc josh@… added

Cc Me!

comment:4 Changed 22 months ago by jmr@…

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

Should be worked around by r95542, however this is a temporary workaround at best, and may not even work on Mountain Lion. The only real fix is for upstream to stop using QuickDraw.

Note: See TracTickets for help on using tickets.