After downloading multiple versions of FLTK (both from the 2.0 trunk and the
1.3 stable branch) I have run into the same issue trying to build and install
FLTK for Apple's new Mac OS X "Snow Leopard" operating system. I have tried
both the system default GCC 4.2 compiler as well as my preferred LLVM-GCC 4.2
compiler.
I have also tried building against X11 instead of Quartz and it still barfs all
over. I suspect that a conditional compile needs to be updated to work with
Snow Leopard, but I am unable to track down the source of the problem.
Appended to the message is the output of configure and make. LLVM-G++ and
normal GCC output the same error, so I'm just using LLVM for this example.
Thank-you for your time, I hope someone more experienced than me might know
what's going on!
cmiller-laptop% ./configure CC=llvm-g++
checking for gcc... llvm-g++
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 llvm-g++ accepts -g... yes
checking for llvm-g++ option to accept ISO C89... unsupported
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ 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 doxygen... no
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking how to run the C preprocessor... llvm-g++ -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 whether we have the POSIX compatible scandir() prototype... no
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... no
checking for gzgets in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for png_read_info in -lpng... no
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=/usr/local
bindir=${exec_prefix}/bin
datadir=${datarootdir}
datarootdir=${prefix}/share
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib
mandir=${datarootdir}/man
Graphics: Quartz
Image Libraries: JPEG=Builtin
PNG=Builtin
ZLIB=System
Large Files: YES
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
config.status: config.h is unchanged
cmiller-laptop% make
=== making jpeg ===
Compiling jmemnobs.c...
Compiling jcapimin.c...
Compiling jcapistd.c...
Compiling jccoefct.c...
Compiling jccolor.c...
Compiling jcdctmgr.c...
Compiling jchuff.c...
Compiling jcinit.c...
Compiling jcmainct.c...
Compiling jcmarker.c...
Compiling jcmaster.c...
Compiling jcomapi.c...
Compiling jcparam.c...
Compiling jcphuff.c...
Compiling jcprepct.c...
Compiling jcsample.c...
Compiling jctrans.c...
Compiling jdapimin.c...
Compiling jdapistd.c...
Compiling jdatadst.c...
Compiling jdatasrc.c...
Compiling jdcoefct.c...
Compiling jdcolor.c...
Compiling jddctmgr.c...
Compiling jdhuff.c...
Compiling jdinput.c...
Compiling jdmainct.c...
Compiling jdmarker.c...
Compiling jdmaster.c...
Compiling jdmerge.c...
Compiling jdphuff.c...
Compiling jdpostct.c...
Compiling jdsample.c...
Compiling jdtrans.c...
Compiling jerror.c...
Compiling jfdctflt.c...
Compiling jfdctfst.c...
Compiling jfdctint.c...
Compiling jidctflt.c...
Compiling jidctfst.c...
Compiling jidctint.c...
Compiling jidctred.c...
Compiling jquant1.c...
Compiling jquant2.c...
Compiling jutils.c...
Compiling jmemmgr.c...
Archiving ../lib/libfltk_jpeg.a...
=== making png ===
Compiling png.c...
Compiling pngset.c...
Compiling pngget.c...
Compiling pngrutil.c...
Compiling pngtrans.c...
Compiling pngwutil.c...
Compiling pngread.c...
Compiling pngrio.c...
Compiling pngwio.c...
Compiling pngwrite.c...
Compiling pngrtran.c...
Compiling pngwtran.c...
Compiling pngmem.c...
Compiling pngerror.c...
Compiling pngpread.c...
Archiving ../lib/libfltk_png.a...
=== making src ===
Compiling Fl.cxx...
In file included from ../FL/x.H:41,
from Fl.cxx:36:
./FL/mac.H: In function âOpaqueRgnHandle* XRectangleRegion(int, int, int,
int)â:
./FL/mac.H:50: error: âNewRgnâ was not declared in this scope
./FL/mac.H:51: error: âSetRectRgnâ was not declared in this scope
./FL/mac.H: In function âvoid XDestroyRegion(OpaqueRgnHandle*)â:
./FL/mac.H:55: error: âDisposeRgnâ was not declared in this scope
Fl.cxx: In member function âvoid Fl_Widget::damage(uchar, int, int, int,
int)â:
Fl.cxx:1456: error: âNewRgnâ was not declared in this scope
Fl.cxx:1457: error: âSetRectRgnâ was not declared in this scope
Fl.cxx:1458: error: âUnionRgnâ was not declared in this scope
Fl.cxx:1459: error: âDisposeRgnâ was not declared in this scope
In file included from Fl.cxx:1483:
Fl_mac.cxx: In function âOSStatus HandleMenu(HICommand*)â:
Fl_mac.cxx:495: error: âGetMenuItemRefConâ was not declared in this scope
Fl_mac.cxx:503: error: âSetItemMarkâ was not declared in this scope
Fl_mac.cxx:515: error: âSetItemMarkâ was not declared in this scope
Fl_mac.cxx:522: error: âSetItemMarkâ was not declared in this scope
Fl_mac.cxx:524: error: âSetItemMarkâ was not declared in this scope
Fl_mac.cxx:528: error: âHiliteMenuâ was not declared in this scope
Fl_mac.cxx: In function âOSStatus
carbonDispatchHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)â:
Fl_mac.cxx:557: error: âGetWindowEventTargetâ was not declared in this scope
Fl_mac.cxx:559: error: âGetWindowEventTargetâ was not declared in this scope
Fl_mac.cxx: In function âdouble do_queued_events(double)â:
Fl_mac.cxx:698: error: âNewRgnâ was not declared in this scope
Fl_mac.cxx:700: error: âGetMouseâ was not declared in this scope
Fl_mac.cxx:701: error: âSetRectRgnâ was not declared in this scope
Fl_mac.cxx:702: error: âSetEventMaskâ was not declared in this scope
Fl_mac.cxx:755: error: âConvertEventRefToEventRecordâ was not declared in
this scope
Fl_mac.cxx:766: error: âMacFindWindowâ was not declared in this scope
Fl_mac.cxx:767: error: âMenuSelectâ was not declared in this scope
Fl_mac.cxx: In function âOSStatus
carbonWindowHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)â:
Fl_mac.cxx:846: error: âkEventWindowDrawContentâ was not declared in this
scope
Fl_mac.cxx:867: error: âGetWindowClassâ was not declared in this scope
Fl_mac.cxx:882: error: âGetWindowClassâ was not declared in this scope
Fl_mac.cxx: In function âOSStatus
carbonMousewheelHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)â:
Fl_mac.cxx:939: error: âtypeLongIntegerâ was not declared in this scope
Fl_mac.cxx: In function âOSStatus
carbonMouseHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)â:
Fl_mac.cxx:1008: error: âFindWindowâ was not declared in this scope
Fl_mac.cxx:1025: error: âIsWindowActiveâ was not declared in this scope
Fl_mac.cxx:1063: error: âGetPortâ was not declared in this scope
Fl_mac.cxx:1064: error: âGetWindowPortâ was not declared in this scope
Fl_mac.cxx:1064: error: âSetPortâ was not declared in this scope
Fl_mac.cxx:1065: error: âSetOriginâ was not declared in this scope
Fl_mac.cxx:1068: 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:1104: error: âKeyTranslateâ was not declared in this scope
Fl_mac.cxx: In function âint keycodeToUnicode(char*, int, EventKind, UInt32,
UInt32, UInt32*, unsigned char, short unsigned int)â:
Fl_mac.cxx:1134: error: âKLGetCurrentKeyboardLayoutâ was not declared in
this scope
Fl_mac.cxx:1136: error: âKLGetKeyboardLayoutPropertyâ was not declared in
this scope
Fl_mac.cxx: In function âOSErr OpenAppleEventHandler(const AppleEvent*,
AppleEvent*, UInt32)â:
Fl_mac.cxx:1444: error: âtypeFSSâ was not declared in this scope
Fl_mac.cxx: In function âvoid fl_open_display()â:
Fl_mac.cxx:1500: error: âMoreMastersâ was not declared in this scope
Fl_mac.cxx:1504: error: âGetQDGlobalsArrowâ was not declared in this scope
Fl_mac.cxx:1508: error: âClearMenuBarâ was not declared in this scope
Fl_mac.cxx:1509: error: âGetMenuHandleâ was not declared in this scope
Fl_mac.cxx:1509: error: âAppendResMenuâ was not declared in this scope
Fl_mac.cxx:1510: error: âDrawMenuBarâ was not declared in this scope
Fl_mac.cxx: In static member function âstatic int Fl::x()â:
Fl_mac.cxx:1590: error: âGetQDGlobalsScreenBitsâ was not declared in this
scope
Fl_mac.cxx: In static member function âstatic int Fl::y()â:
Fl_mac.cxx:1600: error: âGetQDGlobalsScreenBitsâ was not declared in this
scope
Fl_mac.cxx: In static member function âstatic int Fl::w()â:
Fl_mac.cxx:1610: error: âGetQDGlobalsScreenBitsâ was not declared in this
scope
Fl_mac.cxx: In static member function âstatic int Fl::h()â:
Fl_mac.cxx:1620: 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:1632: error: âGetMouseâ was not declared in this scope
Fl_mac.cxx:1633: error: âLocalToGlobalâ was not declared in this scope
Fl_mac.cxx: In member function âvoid Fl_X::flush()â:
Fl_mac.cxx:1658: error: âSetOriginâ was not declared in this scope
Fl_mac.cxx: In function âvoid handleUpdateEvent(OpaqueWindowPtr*)â:
Fl_mac.cxx:1673: error: âGetPortâ was not declared in this scope
Fl_mac.cxx:1674: error: âGetWindowPortâ was not declared in this scope
Fl_mac.cxx:1674: error: âSetPortâ was not declared in this scope
Fl_mac.cxx:1679: error: âInvalWindowRgnâ was not declared in this scope
Fl_mac.cxx:1683: 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:1784: error: âGetDeviceListâ was not declared in this scope
Fl_mac.cxx:1784: error: âGetNextDeviceâ was not declared in this scope
Fl_mac.cxx:1792: error: âGetNextDeviceâ was not declared in this scope
Fl_mac.cxx:1801: error: âGetNextDeviceâ was not declared in this scope
Fl_mac.cxx:1810: error: âGetNextDeviceâ was not declared in this scope
Fl_mac.cxx:1819: error: âGetNextDeviceâ was not declared in this scope
Fl_mac.cxx:1828: error: âGetMainDeviceâ was not declared in this scope
Fl_mac.cxx:1830: error: âGetAvailableWindowPositioningBoundsâ was not
declared in this scope
Fl_mac.cxx: In function âint FSSpec2UnixPath(FSSpec*, char*)â:
Fl_mac.cxx:1850: error: âFSpMakeFSRefâ was not declared in this scope
In file included from Fl.cxx:1483:
Fl_mac.cxx: In function âOSErr fillCurrentDragData(OpaqueDragRef*)â:
Fl_mac.cxx:1891: error: âCountDragItemsâ was not declared in this scope
Fl_mac.cxx:1895: error: âGetDragItemReferenceNumberâ was not declared in
this scope
Fl_mac.cxx:1896: error: âGetFlavorFlagsâ was not declared in this scope
Fl_mac.cxx:1899: error: âGetFlavorDataSizeâ was not declared in this scope
Fl_mac.cxx:1906: error: âGetFlavorDataSizeâ was not declared in this scope
Fl_mac.cxx:1913: error: âGetFlavorDataSizeâ was not declared in this scope
Fl_mac.cxx:1936: error: âGetDragItemReferenceNumberâ was not declared in
this scope
Fl_mac.cxx:1937: error: âGetFlavorFlagsâ was not declared in this scope
Fl_mac.cxx:1940: error: âGetFlavorDataSizeâ was not declared in this scope
Fl_mac.cxx:1941: error: âGetFlavorDataâ was not declared in this scope
Fl_mac.cxx:1950: error: âGetFlavorDataSizeâ was not declared in this scope
Fl_mac.cxx:1951: error: âGetFlavorDataâ was not declared in this scope
Fl_mac.cxx:1959: error: âGetFlavorDataSizeâ was not declared in this scope
Fl_mac.cxx:1960: error: âGetFlavorDataâ was not declared in this scope
Fl_mac.cxx:1969: error: âGetFlavorDataâ was not declared in this scope
Fl_mac.cxx: In function âOSErr dndTrackingHandler(DragTrackingMessage,
OpaqueWindowPtr*, void*, OpaqueDragRef*)â:
Fl_mac.cxx:2003: error: âGetDragMouseâ was not declared in this scope
Fl_mac.cxx: In function âOSErr dndReceiveHandler(OpaqueWindowPtr*, void*,
OpaqueDragRef*)â:
Fl_mac.cxx:2056: error: âGetDragMouseâ was not declared in this scope
Fl_mac.cxx: In function âvoid q_set_window_title(OpaqueWindowPtr*, const
char*)â:
Fl_mac.cxx:2091: error: âSetWindowTitleWithCFStringâ was not declared in
this scope
Fl_mac.cxx: In static member function âstatic void Fl_X::make(Fl_Window*)â:
Fl_mac.cxx:2226: error: âGetAvailableWindowAttributesâ was not declared in
this scope
Fl_mac.cxx:2227: error: âCreateNewWindowâ was not declared in this scope
Fl_mac.cxx:2229: error: âMoveWindowâ was not declared in this scope
Fl_mac.cxx:2232: error: âSetWindowClassâ was not declared in this scope
Fl_mac.cxx:2233: error: âSetWindowActivationScopeâ was not declared in this
scope
Fl_mac.cxx:2239: error: âRepositionWindowâ was not declared in this scope
Fl_mac.cxx:2241: error: âRepositionWindowâ was not declared in this scope
Fl_mac.cxx:2243: error: âRepositionWindowâ was not declared in this scope
Fl_mac.cxx:2255: error: âGetWindowEventTargetâ was not declared in this
scope
Fl_mac.cxx:2281: error: âkEventWindowDrawContentâ was not declared in this
scope
Fl_mac.cxx:2292: error: âInstallTrackingHandlerâ was not declared in this
scope
Fl_mac.cxx:2293: error: âInstallReceiveHandlerâ was not declared in this
scope
Fl_mac.cxx:2309: error: âShowWindowâ was not declared in this scope
Fl_mac.cxx:2312: error: âCollapseWindowâ was not declared in this scope
Fl_mac.cxx:2318: error: âGetWindowBoundsâ was not declared in this scope
Fl_mac.cxx: In member function âvoid Fl_Window::size_range_()â:
Fl_mac.cxx:2340: error: âSetWindowResizeLimitsâ was not declared in this
scope
Fl_mac.cxx: In member function âvirtual void Fl_Window::show()â:
Fl_mac.cxx:2396: error: âIsWindowCollapsedâ was not declared in this scope
Fl_mac.cxx:2396: error: âCollapseWindowâ was not declared in this scope
Fl_mac.cxx:2398: error: âBringToFrontâ was not declared in this scope
Fl_mac.cxx:2399: 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:2429: error: âSetWindowBoundsâ was not declared in this scope
Fl_mac.cxx:2431: error: âInvalWindowRectâ was not declared in this scope
Fl_mac.cxx:2433: error: âMoveWindowâ was not declared in this scope
Fl_mac.cxx: In member function âvoid Fl_Window::make_current()â:
Fl_mac.cxx:2458: error: âNewRgnâ was not declared in this scope
Fl_mac.cxx:2462: error: âGetWindowPortâ was not declared in this scope
Fl_mac.cxx:2462: error: âSetPortâ was not declared in this scope
Fl_mac.cxx:2474: error: âSetOriginâ was not declared in this scope
Fl_mac.cxx:2476: error: âSetRectRgnâ was not declared in this scope
Fl_mac.cxx:2483: error: âNewRgnâ was not declared in this scope
Fl_mac.cxx:2486: error: âDiffRgnâ was not declared in this scope
Fl_mac.cxx:2487: error: âDisposeRgnâ was not declared in this scope
Fl_mac.cxx:2491: error: âQDBeginCGContextâ was not declared in this scope
Fl_mac.cxx:2503: error: âSetPortClipRegionâ was not declared in this scope
Fl_mac.cxx: In static member function âstatic void Fl_X::q_fill_context()â:
Fl_mac.cxx:2525: error: âGetWindowPortâ was not declared in this scope
Fl_mac.cxx:2525: error: âGetPortBoundsâ was not declared in this scope
Fl_mac.cxx: In static member function âstatic void
Fl_X::q_release_context(Fl_X*)â:
Fl_mac.cxx:2551: error: âGetWindowPortâ was not declared in this scope
Fl_mac.cxx:2551: error: âQDEndCGContextâ was not declared in this scope
Fl_mac.cxx: In function âvoid MacDestroyWindow(Fl_Window*,
OpaqueWindowPtr*)â:
Fl_mac.cxx:2862: error: âDisposeWindowâ was not declared in this scope
Fl_mac.cxx: In function âvoid MacMapWindow(Fl_Window*, OpaqueWindowPtr*)â:
Fl_mac.cxx:2867: error: âShowWindowâ was not declared in this scope
Fl_mac.cxx: In function âvoid MacUnmapWindow(Fl_Window*, OpaqueWindowPtr*)â:
Fl_mac.cxx:2877: error: âHideWindowâ was not declared in this scope
make[1]: *** [Fl.o] Error 1
make: *** [all] Error 1
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk