Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#21054 closed defect (fixed)

fltk 1.1.9 does not build 64-bit

Reported by: n.a.hawes@… Owned by: alakazam@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: LP64 Cc: staffan@…, nicos_pavlov@…, someposer@…, dershow
Port: fltk

Description

I've recently upgraded to Snow Leopard and am trying to reinstall the ports I had previously. fltk does not build for me. Log below.

vonnegut:~ nah$ sudo port -d install fltk
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/aqua/fltk
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/aqua/fltk
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.0.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: 'universal_variant no' specified, so not adding the default universal variant
DEBUG: Requested variant darwin is not provided by port fltk.
DEBUG: Requested variant i386 is not provided by port fltk.
DEBUG: Requested variant macosx is not provided by port fltk.
DEBUG: Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/work /opt/local/var/macports/sources/rsync.macports.org/release/ports/aqua/fltk/work
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/jpeg
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: jpeg 6b_3 exists in the ports tree
DEBUG: jpeg 6b_3  is the latest installed
DEBUG: jpeg 6b_3  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/jpeg
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.0.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port jpeg.
DEBUG: Requested variant i386 is not provided by port jpeg.
DEBUG: Requested variant macosx is not provided by port jpeg.
DEBUG: No need to upgrade! jpeg 6b_3 >= jpeg 6b_3
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/libpng
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: libpng 1.2.38_0 exists in the ports tree
DEBUG: libpng 1.2.38_0  is the latest installed
DEBUG: libpng 1.2.38_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/libpng
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.0.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port libpng.
DEBUG: Requested variant i386 is not provided by port libpng.
DEBUG: Requested variant macosx is not provided by port libpng.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: zlib 1.2.3_2 exists in the ports tree
DEBUG: zlib 1.2.3_2  is the latest installed
DEBUG: zlib 1.2.3_2  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.0.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port zlib.
DEBUG: Requested variant i386 is not provided by port zlib.
DEBUG: Requested variant macosx is not provided by port zlib.
DEBUG: No need to upgrade! zlib 1.2.3_2 >= zlib 1.2.3_2
DEBUG: No need to upgrade! libpng 1.2.38_0 >= libpng 1.2.38_0
--->  Computing dependencies for fltk
DEBUG: Searching for dependency: jpeg
DEBUG: Found Dependency: receipt exists for jpeg
DEBUG: Searching for dependency: libpng
DEBUG: Found Dependency: receipt exists for libpng
DEBUG: Searching for dependency: zlib
DEBUG: Found Dependency: receipt exists for zlib
DEBUG: Executing org.macports.main (fltk)
--->  Fetching fltk
DEBUG: Executing org.macports.fetch (fltk)
--->  Verifying checksum(s) for fltk
DEBUG: Executing org.macports.checksum (fltk)
--->  Checksumming fltk-1.1.9-source.tar.bz2
DEBUG: Correct (md5) checksum for fltk-1.1.9-source.tar.bz2
DEBUG: Correct (sha1) checksum for fltk-1.1.9-source.tar.bz2
DEBUG: Correct (rmd160) checksum for fltk-1.1.9-source.tar.bz2
DEBUG: setting option extract.cmd to /usr/bin/bzip2
--->  Extracting fltk
DEBUG: Executing org.macports.extract (fltk)
--->  Extracting fltk-1.1.9-source.tar.bz2
DEBUG: setting option extract.args to /opt/local/var/macports/distfiles/fltk/fltk-1.1.9-source.tar.bz2
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/work" && /usr/bin/bzip2 -dc /opt/local/var/macports/distfiles/fltk/fltk-1.1.9-source.tar.bz2 | /usr/bin/gnutar --no-same-owner -xf -'
DEBUG: Executing org.macports.patch (fltk)
DEBUG: Executing proc-post-org.macports.patch-patch-0
--->  Configuring fltk
DEBUG: Using compiler 'Mac OS X gcc 4.2'
DEBUG: Executing org.macports.configure (fltk)
DEBUG: Environment: CFLAGS='-O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch x86_64' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' F90FLAGS='-O2 -m64' LDFLAGS='-L/opt/local/lib' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch x86_64' FFLAGS='-O2 -m64' CC='/usr/bin/gcc-4.2'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/work/fltk-1.1.9" && ./configure --prefix=/opt/local --enable-threads --mandir=/opt/local/share/man'
checking for gcc... /usr/bin/gcc-4.2
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.2 accepts -g... yes
checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++-4.2 accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for nroff... /usr/bin/nroff
checking for htmldoc... no
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking how to run the C preprocessor... /usr/bin/gcc-4.2 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 8
checking whether the compiler recognizes bool as a built-in type... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/stdtypes.h usability... no
checking sys/stdtypes.h presence... no
checking for sys/stdtypes.h... no
checking for scandir... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for strings.h... (cached) yes
checking for strcasecmp... yes
checking for strlcat... yes
checking for strlcpy... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for localeconv... yes
checking for library containing pow... none required
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for long long int... yes
checking for strtoll... yes
checking for library containing dlsym... none required
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for jpeg_CreateCompress in -ljpeg... yes
checking for gzgets in -lz... yes
checking for png_set_tRNS_to_alpha in -lpng... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create using -lpthreads... no
checking for pthread_create using -lpthread... yes
checking if GCC supports -fno-exceptions... yes
checking if GCC supports -fno-strict-aliasing... yes

Configuration Summary
-------------------------------------------------------------------------
    Directories: prefix=/opt/local
                 bindir=${exec_prefix}/bin
                 datadir=${datarootdir}
                 datarootdir=${prefix}/share
                 exec_prefix=${prefix}
                 includedir=${prefix}/include
                 libdir=${exec_prefix}/lib
                 mandir=/opt/local/share/man
       Graphics: Quickdraw
Image Libraries: JPEG=System
                 PNG=System
                 ZLIB=System
    Large Files: NO
         OpenGL: YES
        Threads: YES
configure: creating ./config.status
config.status: creating makeinclude
config.status: creating fltk.list
config.status: creating fltk-config
config.status: creating fltk.spec
config.status: creating FL/Makefile
config.status: creating config.h
--->  Building fltk
DEBUG: Executing org.macports.build (fltk)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/work/fltk-1.1.9" && /usr/bin/make -j2 all'
=== making src ===
Compiling Fl.cxx...
Compiling Fl_Adjuster.cxx...
Compiling Fl_Bitmap.cxx...
In file included from ../FL/x.H:41,
                 from Fl.cxx:35:
../FL/mac.H: In function 'OpaqueRgnHandle* XRectangleRegion(int, int, int, int)':
../FL/mac.H:49: error: 'NewRgn' was not declared in this scope
../FL/mac.H:50: error: 'SetRectRgn' was not declared in this scope
../FL/mac.H: In function 'void XDestroyRegion(OpaqueRgnHandle*)':
../FL/mac.H:54: error: 'DisposeRgn' was not declared in this scope
Fl.cxx: In static member function 'static void Fl::flush()':
Fl.cxx:487: error: 'GetPort' was not declared in this scope
Fl.cxx:489: error: 'QDFlushPortBuffer' was not declared in this scope
Fl.cxx: In member function 'void Fl_Widget::damage(uchar, int, int, int, int)':
Fl.cxx:1179: error: 'NewRgn' was not declared in this scope
Fl.cxx:1180: error: 'SetRectRgn' was not declared in this scope
Fl.cxx:1181: error: 'UnionRgn' was not declared in this scope
Fl.cxx:1182: error: 'DisposeRgn' was not declared in this scope
In file included from Fl.cxx:1214:
Fl_mac.cxx: In function 'OSStatus HandleMenu(HICommand*)':
Fl_mac.cxx:471: error: 'GetMenuItemRefCon' was not declared in this scope
Fl_mac.cxx:479: error: 'SetItemMark' was not declared in this scope
Fl_mac.cxx:491: error: 'SetItemMark' was not declared in this scope
Fl_mac.cxx:498: error: 'SetItemMark' was not declared in this scope
Fl_mac.cxx:500: error: 'SetItemMark' was not declared in this scope
Fl_mac.cxx:504: error: 'HiliteMenu' was not declared in this scope
Fl_mac.cxx: In function 'OSStatus carbonDispatchHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)':
Fl_mac.cxx:533: error: 'GetWindowEventTarget' was not declared in this scope
Fl_mac.cxx:535: error: 'GetWindowEventTarget' was not declared in this scope
Fl_mac.cxx: In function 'double do_queued_events(double)':
Fl_mac.cxx:671: error: 'NewRgn' was not declared in this scope
Fl_mac.cxx:673: error: 'GetMouse' was not declared in this scope
Fl_mac.cxx:674: error: 'SetRectRgn' was not declared in this scope
Fl_mac.cxx:675: error: 'SetEventMask' was not declared in this scope
Fl_mac.cxx:728: error: 'ConvertEventRefToEventRecord' was not declared in this scope
Fl_mac.cxx:739: error: 'MacFindWindow' was not declared in this scope
Fl_mac.cxx:740: error: 'MenuSelect' was not declared in this scope
Fl_mac.cxx: In function 'OSStatus carbonWindowHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)':
Fl_mac.cxx:819: error: 'kEventWindowDrawContent' was not declared in this scope
Fl_mac.cxx:840: error: 'GetWindowClass' was not declared in this scope
Fl_mac.cxx:855: error: 'GetWindowClass' was not declared in this scope
Fl_mac.cxx: In function 'OSStatus carbonMousewheelHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)':
Fl_mac.cxx:912: error: 'typeLongInteger' was not declared in this scope
Fl_mac.cxx: In function 'OSStatus carbonMouseHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)':
Fl_mac.cxx:981: error: 'FindWindow' was not declared in this scope
Fl_mac.cxx:998: error: 'IsWindowActive' was not declared in this scope
Fl_mac.cxx:1036: error: 'GetPort' was not declared in this scope
Fl_mac.cxx:1037: error: 'GetWindowPort' was not declared in this scope
Fl_mac.cxx:1037: error: 'SetPort' was not declared in this scope
Fl_mac.cxx:1038: error: 'SetOrigin' was not declared in this scope
Fl_mac.cxx:1041: error: 'GlobalToLocal' was not declared in this scope
Fl_mac.cxx: In function 'short unsigned int keycode_to_sym(UInt32, UInt32, short unsigned int)':
Fl_mac.cxx:1077: error: 'KeyTranslate' was not declared in this scope
Fl_mac.cxx: In function 'OSStatus carbonKeyboardHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)':
Fl_mac.cxx:1134: error: 'KLGetCurrentKeyboardLayout' was not declared in this scope
Fl_mac.cxx:1135: error: 'KLGetKeyboardLayoutProperty' was not declared in this scope
Fl_mac.cxx:1136: error: 'KeyTranslate' was not declared in this scope
Fl_mac.cxx: In function 'OSErr OpenAppleEventHandler(const AppleEvent*, AppleEvent*, UInt32)':
Fl_mac.cxx:1249: error: 'typeFSS' was not declared in this scope
Fl_mac.cxx: In function 'void fl_open_display()':
Fl_mac.cxx:1305: error: 'MoreMasters' was not declared in this scope
Fl_mac.cxx:1309: error: 'GetQDGlobalsArrow' was not declared in this scope
Fl_mac.cxx:1313: error: 'ClearMenuBar' was not declared in this scope
Fl_mac.cxx:1314: error: 'GetMenuHandle' was not declared in this scope
Fl_mac.cxx:1314: error: 'AppendResMenu' was not declared in this scope
Fl_mac.cxx:1315: error: 'DrawMenuBar' was not declared in this scope
Fl_mac.cxx: In static member function 'static int Fl::x()':
Fl_mac.cxx:1376: error: 'GetQDGlobalsScreenBits' was not declared in this scope
Fl_mac.cxx: In static member function 'static int Fl::y()':
Fl_mac.cxx:1386: error: 'GetQDGlobalsScreenBits' was not declared in this scope
Fl_mac.cxx: In static member function 'static int Fl::w()':
Fl_mac.cxx:1396: error: 'GetQDGlobalsScreenBits' was not declared in this scope
Fl_mac.cxx: In static member function 'static int Fl::h()':
Fl_mac.cxx:1406: error: 'GetQDGlobalsScreenBits' was not declared in this scope
Fl_mac.cxx: In static member function 'static void Fl::get_mouse(int&, int&)':
Fl_mac.cxx:1418: error: 'GetMouse' was not declared in this scope
Fl_mac.cxx:1419: error: 'LocalToGlobal' was not declared in this scope
Fl_mac.cxx: In member function 'void Fl_X::flush()':
Fl_mac.cxx:1444: error: 'GetPort' was not declared in this scope
Fl_mac.cxx:1446: error: 'QDFlushPortBuffer' was not declared in this scope
Fl_mac.cxx:1451: error: 'SetOrigin' was not declared in this scope
Fl_mac.cxx: In function 'void handleUpdateEvent(OpaqueWindowPtr*)':
Fl_mac.cxx:1466: error: 'GetPort' was not declared in this scope
Fl_mac.cxx:1467: error: 'GetWindowPort' was not declared in this scope
Fl_mac.cxx:1467: error: 'SetPort' was not declared in this scope
Fl_mac.cxx:1472: error: 'InvalWindowRgn' was not declared in this scope
Fl_mac.cxx:1476: error: 'DisposeRgn' was not declared in this scope
Fl_mac.cxx: In static member function 'static int Fl_X::fake_X_wm(const Fl_Window*, int&, int&, int&, int&, int&)':
Fl_mac.cxx:1532: error: 'GetDeviceList' was not declared in this scope
Fl_mac.cxx:1532: error: 'GetNextDevice' was not declared in this scope
Fl_mac.cxx:1540: error: 'GetNextDevice' was not declared in this scope
Fl_mac.cxx:1549: error: 'GetNextDevice' was not declared in this scope
Fl_mac.cxx:1558: error: 'GetNextDevice' was not declared in this scope
Fl_mac.cxx:1567: error: 'GetNextDevice' was not declared in this scope
Fl_mac.cxx:1576: error: 'GetMainDevice' was not declared in this scope
Fl_mac.cxx:1578: error: 'GetAvailableWindowPositioningBounds' was not declared in this scope
Fl_mac.cxx: In function 'int FSSpec2UnixPath(FSSpec*, char*)':
Fl_mac.cxx:1598: error: 'FSpMakeFSRef' was not declared in this scope
In file included from Fl.cxx:1214:
Fl_mac.cxx: In function 'OSErr fillCurrentDragData(OpaqueDragRef*)':
Fl_mac.cxx:1633: error: 'CountDragItems' was not declared in this scope
Fl_mac.cxx:1636: error: 'GetDragItemReferenceNumber' was not declared in this scope
Fl_mac.cxx:1637: error: 'GetFlavorFlags' was not declared in this scope
Fl_mac.cxx:1640: error: 'GetFlavorDataSize' was not declared in this scope
Fl_mac.cxx:1661: error: 'GetDragItemReferenceNumber' was not declared in this scope
Fl_mac.cxx:1662: error: 'GetFlavorFlags' was not declared in this scope
Fl_mac.cxx:1665: error: 'GetFlavorDataSize' was not declared in this scope
Fl_mac.cxx:1666: error: 'GetFlavorData' was not declared in this scope
Fl_mac.cxx:1674: error: 'GetFlavorData' was not declared in this scope
Fl_mac.cxx: In function 'OSErr dndTrackingHandler(DragTrackingMessage, OpaqueWindowPtr*, void*, OpaqueDragRef*)':
Fl_mac.cxx:1707: error: 'GetDragMouse' was not declared in this scope
Fl_mac.cxx: In function 'OSErr dndReceiveHandler(OpaqueWindowPtr*, void*, OpaqueDragRef*)':
Fl_mac.cxx:1760: error: 'GetDragMouse' was not declared in this scope
Fl_mac.cxx: In static member function 'static void Fl_X::make(Fl_Window*)':
Fl_mac.cxx:1920: error: 'GetAvailableWindowAttributes' was not declared in this scope
Fl_mac.cxx:1921: error: 'CreateNewWindow' was not declared in this scope
Fl_mac.cxx:1922: error: 'SetWTitle' was not declared in this scope
Fl_mac.cxx:1923: error: 'MoveWindow' was not declared in this scope
Fl_mac.cxx:1926: error: 'SetWindowClass' was not declared in this scope
Fl_mac.cxx:1927: error: 'SetWindowActivationScope' was not declared in this scope
Fl_mac.cxx:1933: error: 'RepositionWindow' was not declared in this scope
Fl_mac.cxx:1935: error: 'RepositionWindow' was not declared in this scope
Fl_mac.cxx:1937: error: 'RepositionWindow' was not declared in this scope
Fl_mac.cxx:1949: error: 'GetWindowEventTarget' was not declared in this scope
Fl_mac.cxx:1968: error: 'kEventWindowDrawContent' was not declared in this scope
Fl_mac.cxx:1979: error: 'InstallTrackingHandler' was not declared in this scope
Fl_mac.cxx:1980: error: 'InstallReceiveHandler' was not declared in this scope
Fl_mac.cxx:1996: error: 'ShowWindow' was not declared in this scope
Fl_mac.cxx:1999: error: 'CollapseWindow' was not declared in this scope
Fl_mac.cxx:2005: error: 'GetWindowBounds' was not declared in this scope
Fl_mac.cxx: In member function 'void Fl_Window::size_range_()':
Fl_mac.cxx:2027: error: 'SetWindowResizeLimits' was not declared in this scope
Fl_mac.cxx: In member function 'void Fl_Window::label(const char*, const char*)':
Fl_mac.cxx:2064: error: 'SetWTitle' was not declared in this scope
Fl_mac.cxx: In member function 'virtual void Fl_Window::show()':
Fl_mac.cxx:2085: error: 'IsWindowCollapsed' was not declared in this scope
Fl_mac.cxx:2085: error: 'CollapseWindow' was not declared in this scope
Fl_mac.cxx:2087: error: 'BringToFront' was not declared in this scope
Fl_mac.cxx:2088: error: 'SelectWindow' was not declared in this scope
Fl_mac.cxx: In member function 'virtual void Fl_Window::resize(int, int, int, int)':
Fl_mac.cxx:2118: error: 'SetWindowBounds' was not declared in this scope
Fl_mac.cxx:2120: error: 'InvalWindowRect' was not declared in this scope
Fl_mac.cxx:2122: error: 'MoveWindow' was not declared in this scope
Fl_mac.cxx: In member function 'void Fl_Window::make_current()':
Fl_mac.cxx:2147: error: 'NewRgn' was not declared in this scope
Fl_mac.cxx:2151: error: 'GetWindowPort' was not declared in this scope
Fl_mac.cxx:2151: error: 'SetPort' was not declared in this scope
Fl_mac.cxx:2163: error: 'SetOrigin' was not declared in this scope
Fl_mac.cxx:2165: error: 'SetRectRgn' was not declared in this scope
Fl_mac.cxx:2172: error: 'NewRgn' was not declared in this scope
Fl_mac.cxx:2175: error: 'DiffRgn' was not declared in this scope
Fl_mac.cxx:2176: error: 'DisposeRgn' was not declared in this scope
Fl_mac.cxx:2188: error: 'SetPortClipRegion' was not declared in this scope
Fl_mac.cxx: In static member function 'static void Fl::copy(const char*, int, int)':
Fl_mac.cxx:2286: error: 'ClearCurrentScrap' was not declared in this scope
Fl_mac.cxx:2287: error: 'GetCurrentScrap' was not declared in this scope
Fl_mac.cxx:2296: error: 'PutScrapFlavor' was not declared in this scope
Fl_mac.cxx: In static member function 'static void Fl::paste(Fl_Widget&, int)':
Fl_mac.cxx:2306: error: 'GetCurrentScrap' was not declared in this scope
Fl_mac.cxx:2307: error: 'GetScrapFlavorSize' was not declared in this scope
Fl_mac.cxx:2315: error: 'GetScrapFlavorData' was not declared in this scope
Fl_mac.cxx: In function 'void MacDestroyWindow(Fl_Window*, OpaqueWindowPtr*)':
Fl_mac.cxx:2449: error: 'DisposeWindow' was not declared in this scope
Fl_mac.cxx: In function 'void MacMapWindow(Fl_Window*, OpaqueWindowPtr*)':
Fl_mac.cxx:2454: error: 'ShowWindow' was not declared in this scope
Fl_mac.cxx: In function 'void MacUnmapWindow(Fl_Window*, OpaqueWindowPtr*)':
Fl_mac.cxx:2464: error: 'HideWindow' was not declared in this scope
make[1]: *** [Fl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from ../FL/x.H:41,
                 from Fl_Bitmap.cxx:29:
../FL/mac.H: In function 'OpaqueRgnHandle* XRectangleRegion(int, int, int, int)':
../FL/mac.H:49: error: 'NewRgn' was not declared in this scope
../FL/mac.H:50: error: 'SetRectRgn' was not declared in this scope
../FL/mac.H: In function 'void XDestroyRegion(OpaqueRgnHandle*)':
../FL/mac.H:54: error: 'DisposeRgn' was not declared in this scope
Fl_Bitmap.cxx: In function 'OpaqueGrafPtr* fl_create_bitmask(int, int, const uchar*)':
Fl_Bitmap.cxx:43: error: 'GetPort' was not declared in this scope
Fl_Bitmap.cxx:46: error: 'NewGWorld' was not declared in this scope
Fl_Bitmap.cxx:47: error: 'GetGWorldPixMap' was not declared in this scope
Fl_Bitmap.cxx:50: error: 'LockPixels' was not declared in this scope
Fl_Bitmap.cxx:53: error: 'GetPixBaseAddr' was not declared in this scope
Fl_Bitmap.cxx:71: error: 'UnlockPixels' was not declared in this scope
Fl_Bitmap.cxx:75: error: 'SetPort' was not declared in this scope
Fl_Bitmap.cxx: In function 'void fl_delete_bitmask(OpaqueGrafPtr*)':
Fl_Bitmap.cxx:80: error: 'DisposeGWorld' was not declared in this scope
Fl_Bitmap.cxx: In member function 'virtual void Fl_Bitmap::draw(int, int, int, int, int, int)':
Fl_Bitmap.cxx:385: error: 'GetPort' was not declared in this scope
Fl_Bitmap.cxx:387: error: 'GetPortBounds' was not declared in this scope
Fl_Bitmap.cxx:390: error: 'GetPortBitMapForCopyBits' was not declared in this scope
Fl_Bitmap.cxx:395: error: 'CopyBits' was not declared in this scope
make[1]: *** [Fl_Bitmap.o] Error 1
make: *** [all] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/work/fltk-1.1.9" && /usr/bin/make -j2 all " returned error 2
Command output: Fl_mac.cxx: In function 'void MacMapWindow(Fl_Window*, OpaqueWindowPtr*)':
Fl_mac.cxx:2454: error: 'ShowWindow' was not declared in this scope
Fl_mac.cxx: In function 'void MacUnmapWindow(Fl_Window*, OpaqueWindowPtr*)':
Fl_mac.cxx:2464: error: 'HideWindow' was not declared in this scope
make[1]: *** [Fl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from ../FL/x.H:41,
                 from Fl_Bitmap.cxx:29:
../FL/mac.H: In function 'OpaqueRgnHandle* XRectangleRegion(int, int, int, int)':
../FL/mac.H:49: error: 'NewRgn' was not declared in this scope
../FL/mac.H:50: error: 'SetRectRgn' was not declared in this scope
../FL/mac.H: In function 'void XDestroyRegion(OpaqueRgnHandle*)':
../FL/mac.H:54: error: 'DisposeRgn' was not declared in this scope
Fl_Bitmap.cxx: In function 'OpaqueGrafPtr* fl_create_bitmask(int, int, const uchar*)':
Fl_Bitmap.cxx:43: error: 'GetPort' was not declared in this scope
Fl_Bitmap.cxx:46: error: 'NewGWorld' was not declared in this scope
Fl_Bitmap.cxx:47: error: 'GetGWorldPixMap' was not declared in this scope
Fl_Bitmap.cxx:50: error: 'LockPixels' was not declared in this scope
Fl_Bitmap.cxx:53: error: 'GetPixBaseAddr' was not declared in this scope
Fl_Bitmap.cxx:71: error: 'UnlockPixels' was not declared in this scope
Fl_Bitmap.cxx:75: error: 'SetPort' was not declared in this scope
Fl_Bitmap.cxx: In function 'void fl_delete_bitmask(OpaqueGrafPtr*)':
Fl_Bitmap.cxx:80: error: 'DisposeGWorld' was not declared in this scope
Fl_Bitmap.cxx: In member function 'virtual void Fl_Bitmap::draw(int, int, int, int, int, int)':
Fl_Bitmap.cxx:385: error: 'GetPort' was not declared in this scope
Fl_Bitmap.cxx:387: error: 'GetPortBounds' was not declared in this scope
Fl_Bitmap.cxx:390: error: 'GetPortBitMapForCopyBits' was not declared in this scope
Fl_Bitmap.cxx:395: error: 'CopyBits' was not declared in this scope
make[1]: *** [Fl_Bitmap.o] Error 1
make: *** [all] Error 1

DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/work/fltk-1.1.9" && /usr/bin/make -j2 all " returned error 2
Command output: Fl_mac.cxx: In function 'void MacMapWindow(Fl_Window*, OpaqueWindowPtr*)':
Fl_mac.cxx:2454: error: 'ShowWindow' was not declared in this scope
Fl_mac.cxx: In function 'void MacUnmapWindow(Fl_Window*, OpaqueWindowPtr*)':
Fl_mac.cxx:2464: error: 'HideWindow' was not declared in this scope
make[1]: *** [Fl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from ../FL/x.H:41,
                 from Fl_Bitmap.cxx:29:
../FL/mac.H: In function 'OpaqueRgnHandle* XRectangleRegion(int, int, int, int)':
../FL/mac.H:49: error: 'NewRgn' was not declared in this scope
../FL/mac.H:50: error: 'SetRectRgn' was not declared in this scope
../FL/mac.H: In function 'void XDestroyRegion(OpaqueRgnHandle*)':
../FL/mac.H:54: error: 'DisposeRgn' was not declared in this scope
Fl_Bitmap.cxx: In function 'OpaqueGrafPtr* fl_create_bitmask(int, int, const uchar*)':
Fl_Bitmap.cxx:43: error: 'GetPort' was not declared in this scope
Fl_Bitmap.cxx:46: error: 'NewGWorld' was not declared in this scope
Fl_Bitmap.cxx:47: error: 'GetGWorldPixMap' was not declared in this scope
Fl_Bitmap.cxx:50: error: 'LockPixels' was not declared in this scope
Fl_Bitmap.cxx:53: error: 'GetPixBaseAddr' was not declared in this scope
Fl_Bitmap.cxx:71: error: 'UnlockPixels' was not declared in this scope
Fl_Bitmap.cxx:75: error: 'SetPort' was not declared in this scope
Fl_Bitmap.cxx: In function 'void fl_delete_bitmask(OpaqueGrafPtr*)':
Fl_Bitmap.cxx:80: error: 'DisposeGWorld' was not declared in this scope
Fl_Bitmap.cxx: In member function 'virtual void Fl_Bitmap::draw(int, int, int, int, int, int)':
Fl_Bitmap.cxx:385: error: 'GetPort' was not declared in this scope
Fl_Bitmap.cxx:387: error: 'GetPortBounds' was not declared in this scope
Fl_Bitmap.cxx:390: error: 'GetPortBitMapForCopyBits' was not declared in this scope
Fl_Bitmap.cxx:395: error: 'CopyBits' was not declared in this scope
make[1]: *** [Fl_Bitmap.o] Error 1
make: *** [all] Error 1

    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for fltk): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Change History (15)

comment:1 Changed 15 years ago by nerdling (Jeremy Lavergne)

Owner: changed from macports-tickets@… to alakazam@…

comment:2 Changed 15 years ago by tobypeterson

Keywords: LP64 added
Summary: fltk 1.1.9 does not build (on Snow Leopard?)fltk 1.1.9 does not build 64-bit

Looks like the usual Carbon fail.

comment:3 Changed 15 years ago by alakazam@…

Status: newassigned

comment:4 Changed 15 years ago by staffan@…

Cc: staffan@… added

Cc Me!

comment:5 Changed 15 years ago by nicos_pavlov@…

Cc: nicos_pavlov@… added

Cc Me!

comment:6 Changed 15 years ago by someposer@…

Cc: someposer@… added

Cc Me!

comment:7 in reply to:  6 ; Changed 15 years ago by someposer@…

Replying to someposer@…:

Cc Me!

Per the fltk forums, it is possible to build on Snow Leopard by adding the following argument to the configure script to force 32-bit mode. http://fltk.org/newsgroups.php?gfltk.bugs+v:7934

--with-archflags="-arch i386"

I tried this with the fltk 1.1.9 source from fltk.org and it compiles on Snow Leopard without issue. However, I tried adding the archflags to the portfile and I still get similar compile errors.

comment:8 in reply to:  7 Changed 15 years ago by someposer@…

Replying to someposer@…:

Replying to someposer@…:

I got fltk to compile by adding/changing the following lines to the Portfile.

configure.build_arch i386

configure.args  --enable-threads \
                --mandir=${prefix}/share/man \
                --with-archflags="-arch i386"

Note: This causes fltk to be built using a "Builtin" libpng and libjpeg. I don't know if or what complications this may have.

comment:9 Changed 15 years ago by alakazam@…

Resolution: fixed
Status: assignedclosed

Thanks for this patch. r57857 implements it as a Snow Leopard specific variant, which needs testing (as I don't yet have a machine running Snow Leopard). Please reopen this ticket if the issue is not resolved.

comment:10 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

I doubt the issue is Snow Leopard-specific; I would think it would fail on Leopard too if you set build_arch to x86_64 (or ppc64 if you're on a G5). So the fix should be to force build_arch to i386 (or ppc) regardless of darwin version. There are some other ports that do this that you can look to for an example.

comment:11 in reply to:  10 Changed 15 years ago by sebastian@…

Replying to ryandesign@…:

I doubt the issue is Snow Leopard-specific; I would think it would fail on Leopard too if you set build_arch to x86_64 (or ppc64 if you're on a G5). So the fix should be to force build_arch to i386 (or ppc) regardless of darwin version. There are some other ports that do this that you can look to for an example.

At least the fix works here on Snow Leopard.

comment:12 Changed 15 years ago by alakazam@…

Duplicating the fix for qtplay implemented in r57148 in order to also fix this on ppc64 in r57899.

comment:13 Changed 14 years ago by harrisonmetz@…

It is still failing for me to build. Using the fix above (or doing a self update where it has been applied I don't get the compiler error, but the linker seems to me failing now.

bash-3.2# port install fltk
--->  Computing dependencies for fltk
--->  Fetching fltk
--->  Verifying checksum(s) for fltk
--->  Extracting fltk
--->  Configuring fltk
--->  Building fltk
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_fltk/work/fltk-1.1.9" && /usr/bin/make -j2 all " returned error 2
Command output: ld: warning: in Fl_Group_Type.o, file is not of required architecture
ld: warning: in Fl_Menu_Type.o, file is not of required architecture
ld: warning: in Fl_Type.o, file is not of required architecture
ld: warning: in Fl_Widget_Type.o, file is not of required architecture
ld: warning: in Fl_Window_Type.o, file is not of required architecture
ld: warning: in Fluid_Image.o, file is not of required architecture
ld: warning: in about_panel.o, file is not of required architecture
ld: warning: in align_widget.o, file is not of required architecture
ld: warning: in alignment_panel.o, file is not of required architecture
ld: warning: in code.o, file is not of required architecture
ld: warning: in factory.o, file is not of required architecture
ld: warning: in file.o, file is not of required architecture
ld: warning: in fluid.o, file is not of required architecture
ld: warning: in function_panel.o, file is not of required architecture
ld: warning: in template_panel.o, file is not of required architecture
ld: warning: in undo.o, file is not of required architecture
ld: warning: in widget_panel.o, file is not of required architecture
ld: warning: in ../lib/libfltk_forms.a, file is not of required architecture
ld: warning: in ../lib/libfltk.a, file is not of required architecture
ld: warning: in ../lib/libfltk_images.a, file is not of required architecture
ld: warning: in ../lib/libfltk_png.a, file is not of required architecture
ld: warning: in ../lib/libfltk_z.a, file is not of required architecture
ld: warning: in ../lib/libfltk_jpeg.a, file is not of required architecture
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [fluid] Error 1
make: *** [all] Error 1

My release is bash-3.2# uname -a Darwin bourbon 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31 22:46:25 PDT 2009; root:xnu-1456.1.25~1/RELEASE_X86_64 x86_64

comment:14 Changed 14 years ago by dershow

Cc: dersh@… added

Cc Me!

comment:15 in reply to:  13 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to harrisonmetz@…:

Undefined symbols:

"_main", referenced from:

start in crt1.10.6.o

That was filed as #21519 and fixed there.

Note: See TracTickets for help on using tickets.