On Mon, 25 Feb 2013 14:12:57 -0700, Alexander Hansen 
<alexanderk.han...@gmail.com> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2/25/13 1:15 PM, Sjors Gielen wrote:
> > Op 25-02-13 21:02, Alexander Hansen schreef:
> >>> so I can't test the build with X and possibly fix that
> >>> compilation error... 
> >> Type: -nox (-nox .)
> >> >> That turns "htmldoc" back on as a package. 
> > > Thanks, that works. Apparantly, the build of htmldoc on OS X fails
> > for me because it uses FL (from fltk-x11), which has the NewRgn
> > call in its mac.H header. This call is supposed to be in Carbon,
> > but isn't. mac.H is included by x.H, which provides some interface
> > to X11. This means that fltk-x11 appears unusable on newer Macs,
> > since Carbon is no longer supported. (At least, that's the error I
> > get on 10.8.)
> > > Daniel, you're the maintainer of fltk-x11, do you agree this is
> > supposed to be a bug-report against fltk-x11 since its headers do
> > not compile?
> > > Sjors
> > That's the same error that I got on 10.6/x86_64, too.  Carbon is
> 32-bit only, so that's probably the problem.   Though there's a
> different failure on 10.6/i386 (or 10.5/powerpc):
>
> Compiling http-addrlist.c... 
> In file included from /usr/X11R6/include/X11/Xlib.h:60,
>                  from /usr/X11R6/include/X11/xpm.h:77,
>                  from gui.cxx:103:
> /usr/X11R6/include/X11/X.h:101: error: conflicting declaration
> 'typedef XID Window'
> /sw32/include/FL/mac.H:43: error: 'Window' has a previous declaration
> as 'typedef struct OpaqueWindowPtr* Window'
> /usr/X11R6/include/X11/X.h:108: error: conflicting declaration
> 'typedef XID Cursor'
> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawTypes.h:267:
> error: 'Cursor' has a previous declaration as 'typedef struct Cursor
> Cursor'
> In file included from /usr/X11R6/include/X11/xpm.h:77,
>                  from gui.cxx:103:
> /usr/X11R6/include/X11/Xlib.h:460: error: conflicting declaration
> 'typedef struct XPoint XPoint'
> /sw32/include/FL/mac.H:44: error: 'struct XPoint' has a previous
> declaration as 'struct XPoint'
> /usr/X11R6/include/X11/Xlib.h:465: error: conflicting declaration
> 'typedef struct XRectangle XRectangle'
> /sw32/include/FL/mac.H:45: error: 'struct XRectangle' has a previous
> declaration as 'struct XRectangle'
> /usr/X11R6/include/X11/Xlib.h:2261: error: declaration of C function
> 'int DisposeWindow(OpaqueWindowPtr*)' conflicts with
> /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/MacWindows.h:1594:
> error: previous declaration 'void DisposeWindow(OpaqueWindowPtr*)' here
> /usr/X11R6/include/X11/Xlib.h:2824: error: declaration of C function
> 'int ShowWindow(OpaqueWindowPtr*)' conflicts with
> /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/MacWindows.h:8298:
> error: previous declaration 'void ShowWindow(OpaqueWindowPtr*)' here
> /usr/X11R6/include/X11/Xlib.h:3523: error: declaration of C function
> 'int HideWindow(OpaqueWindowPtr*)' conflicts with
> /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/MacWindows.h:8280:
> error: previous declaration 'void HideWindow(OpaqueWindowPtr*)' here

gui.cxx has cross-wired its #ifdefs, sometimes doing something like

#if defined(HAVE_XPM)
#elif defined(__APPLE__)

and other times doing

#if defined(__APPLE__)
#elif defined(HAVE_XPM)

For the logic of the code, it seems it should really be __APPLE__ 
taking precedence (which also removes the X11 headers from this source, 
so solves the collisions with fltk), but it talks about app bundles, so 
maybe at least some of it should be the XPM way. And even avoiding XPM 
fails to link because it can't find the symbols that are defined as 
inline functions in FL/x.H. 

dan



------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to