My solution was to edit the X header files.  Easier than trying to
edit forty-eleven make files.  The main change was adding defaulted
types, mostly return types.

Jeffrey

Quoting Matthew R. Briggs <[EMAIL PROTECTED]>:
> Mark,
>       The problem is that Solaris ships with older X headers that don't
> contain ANSI compliant prototypes.  It makes g++ complain (it requires
> this ANSI compliance by default).
> 
> There are two ways to fix this, both are in the Makefile under src/.
> Either change -I/usr/openwin/include to -isystem /usr/openwin/include, or
> add -fpermissive to CFLAGS.  Either of these will tell g++ to allow the
> headers to be used as is.
> 
> Matt
> 
> On Wed, 10 Jan 2001, Templin, Mark wrote:
> 
> > Date: Wed, 10 Jan 2001 21:30:17 -0800
> > From: "Templin, Mark" <[EMAIL PROTECTED]>
> > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > Subject: Solaris build fail
> >
> > I've tried to build blackbox 0.61.1 on SunOS 2.6 and Solaris 8 using gcc
> > 2.95.2 several times and ways with the following error during the make:
> >
> > ...
> > Making all in src
> > make[2]: Entering directory `/export/home/mark/packages/blackbox-0.61.1/src'
> > c++ -DHAVE_CONFIG_H -I. -I. -I..   -DSHAPE -DSLIT -DINTERLACE    -DNLS
> > -DTIMEDCACHE -DLOCALEPATH=\"/usr/local/share/Blackbox/nls\"
> > -DDEFAULTMENU=\"/usr/local/share/Blackbox/menu\"
> > -DDEFAULTSTYLE=\"/usr/local/share/Blackbox/styles/Results\"  -g -O2
> > -I/usr/openwin/include -c BaseDisplay.cc
> > In file included from BaseDisplay.cc:32:
> > /usr/openwin/include/X11/Xlib.h:2063: ANSI C++ forbids declaration
> > `XSetTransientForHint' with no type
> > [snip...snip]
> > /usr/openwin/include/X11/Xlib.h:4162: ANSI C++ forbids declaration
> > `XWindowEvent' with no type
> > In file included from BaseDisplay.cc:34:
> > /usr/openwin/include/X11/Xutil.h:363: ANSI C++ forbids declaration
> > `XClipBox' with no type
> > [snip...snip]
> > /usr/openwin/include/X11/Xutil.h:903: ANSI C++ forbids declaration
> > `XXorRegion' with no type
> > make[2]: *** [BaseDisplay.o] Error 1
> > make[2]: Leaving directory `/export/home/mark/packages/blackbox-0.61.1/src'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/export/home/mark/packages/blackbox-0.61.1'
> > make: *** [all-recursive-am] Error 2
> >
> > Anyone have a hint for me?
> >
> > Cheers,
> > mark.
> >
> 
> -- 
> Matthew R. Briggs
> [EMAIL PROTECTED]

-- 
I don't do Windows and I don't come to work before nine.  -- Johnny Paycheck

Reply via email to