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.

The problem appears to be with Sun's incredibly bad
Xlib.h and Xutil.h, and not with LyX or gcc. Many of
the function declarations in those files do not
specify a return type.

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).

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.

P.S. Thanks for the software - traditional WYSIWYG
word processors are just toys.


__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

Reply via email to