On Fri, Jun 09, 2000 at 10:30:28AM -0700, Alex Jacques wrote:
> When I tried to build LyX 1.1.5 on Solaris 2.6 w/ gcc
> 2.95.2 I encountered many errors such as
> 
> /usr/openwin/include/X11/Xlib.h:3068: ANSI C++ forbids
> declaration `XGrabButton' with no type
> 
> The fix is to add the -fpermissive switch to the
> CXXFLAGS variable. This converts the errors to
> warnings. Using the --with-broken-headers switch with
> ./configure did not solve the problem. Also note that
> enclosing the included code in 'extern "C" { ... }'
> changes nothing.

No. The fix is to add '-isystem /usr/openwin/include'. Adding
-fpermissive allows *much* more than fixing the error above. We have
successfully LyX on Solaris 2.5.1, 2.6, and 2.7 with this option to
resolve the problem above.

> I noticed that the LyX INSTALL file mentions a
> similiar problem in SunOS 4.1.3, but says that there
> are 2 sets of X libs, and you may have better luck
> with one than the other. Solaris 2.6 appears to have
> only one set of X libs (at least on my install).

Solaris only has /usr/openwin/include for X. CDE (Motif) is in
/usr/dt/include.

> Also worth noting: I did not encounter this problem
> when I built LyX 1.0.4 on Solaris 2.6 w/ gcc 2.8.1,
> presumably because the older gcc did not check things
> as thoroughly.

Correct.

-- 
albert chin ([EMAIL PROTECTED])

Reply via email to