Dear all,

I have been using lyx 1.0.1/1.0.4 for more than one year. Recently, I had many problems with installation.

I am not sure if I can work with 1.1.6 without any problem. If not, I'd better install 1.0.1 or 1.0.4.

Before I was working on Digital Unix. Now I changed to Sun Solaris, probably ver 2.7. Since I am not familiar with UNIX, I have no idea to install lyx on it. I tried many times according to the INSTALL file, but failed.

Some useful info/processes are attached below.

1. Some enviroments of the host:

SHELL=/bin/csh
HOSTTYPE=sun4
OSTYPE=solaris
TERM=xterm
...
CPLUS_INCLUDE_PATH=/ee/h1/local/kde/include:/ee/h1/local/qt/include:/ee/h1/local/include:/ee/h1/local/sparc-sun-solaris2.7/include:/usr/include
2. The configuring log:
 

Command:
 

../configure --prefix=/ee/r0/users/contpow/zqc/bin/lyx --with-extra-lib=/ee/r0/users/contpow/zqc/bin/lib --with-extra-inc=/ee/r0/users/contpow/zqc/bin/xforms/FORMS:/ee/r0/users/contpow/zqc/bin/xpm-3.4g
Log:

creating cache ./config.cache
configuring LyX version 1.0.1
checking whether make sets ${MAKE}... yes
checking for a BSD compatible install... ../config/install-sh -c
checking for a working C++ compiler... g++
checking whether the C++ compiler (g++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for sin in -lm... yes
checking for fopen in -lc... yes
checking for AIX... no
checking for HP-UX... no
checking for SunOS 4.x... no
checking for SCO 3.2v4... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for POSIXized ISC... no
checking size of void *... 4
checking size of int... 4
checking for gcc strength-reduce bug... no
checking whether the C++ compiler understands explicit... yes

The configuration is successfully completed.

3. Make:

......
make[1]: Entering directory `/ee/r0/users/contpow/zqc/bin/lyx-1.0.1/src/src'
g++ -c -g -O2 -I. -I../../src -I../../images  -I/ee/r0/users/contpow/zqc/bin/xforms/FORMS  -I/ee/r0/users/contpow/zqc/bin/xpm-3.4g   -I/ee/r0/users/contpow/zqc/bin/lyx/include   -I/usr/openwin/include -DPACKAGE=\"lyx\" -DLOCALEDIR=\"/usr/local/share/locale\" ../../src/main.C
In file included from /ee/r0/users/contpow/zqc/bin/xforms/FORMS/forms.h:968,
                 from ../../src/main.C:12:
/usr/openwin/include/X11/Xlib.h:2099: ANSI C++ forbids declaration `XSetTransientForHint' with no type
/usr/openwin/include/X11/Xlib.h:2107: ANSI C++ forbids declaration `XActivateScreenSaver' with no type
/usr/openwin/include/X11/Xlib.h:2114: ANSI C++ forbids declaration `XAddHost' with no type
/usr/openwin/include/X11/Xlib.h:2122: ANSI C++ forbids declaration `XAddHosts' with no type
/usr/openwin/include/X11/Xlib.h:2129: ANSI C++ forbids declaration `XAddToExtensionList' with no type
/usr/openwin/include/X11/Xlib.h:2136: ANSI C++ forbids declaration `XAddToSaveSet' with no type
/usr/openwin/include/X11/Xlib.h:2190: ANSI C++ forbids declaration `XAllowEvents' with no type
/usr/openwin/include/X11/Xlib.h:2196: ANSI C++ forbids declaration `XAutoRepeatOff' with no type
.....
/usr/openwin/include/X11/Xutil.h:879: ANSI C++ forbids declaration `XUnionRegion' with no type
/usr/openwin/include/X11/Xutil.h:903: ANSI C++ forbids declaration `XXorRegion' with no type
In file included from /ee/r0/users/contpow/zqc/bin/xforms/FORMS/forms.h:972,
                 from ../../src/main.C:12:
/usr/openwin/include/X11/Xresource.h:249: ANSI C++ forbids declaration `XrmQGetResource' with no type
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/ee/r0/users/contpow/zqc/bin/lyx-1.0.1/src/src'
make: *** [all] Error 1
 

It stops then.

It seems there are some problem with the compiler. Is it right? How to solve it?

Thank you in advance,
Q. Zhong

Reply via email to