Hi,
I'm attempting to compile Lyx onto a Solaris platform but am getting what looks like
the Sun CC bug described in the INSTALL file :
o On Solaris, compiling with Sun CC 6.0 or less will fail in the sigc++
directory. Sun's compiler can't handle some of the constructs in this
library. If possible find and install a libsigc++ package and then
configure using the --without-included-libsigc option.
The alternative is to compile LyX using GNU gcc.
However I am already using GCC. The start of libtool says :
### BEGIN LIBTOOL CONFIG
# Libtool was configured as follows, on host -:
#
# CC="gcc" CFLAGS="-g -O2" CPPFLAGS="" \
# LD="/usr/ccs/bin/ld" LDFLAGS="" LIBS="" \
# NM="/usr/ccs/bin/nm -p" RANLIB="ranlib" LN_S="ln -s" \
# DLLTOOL="" OBJDUMP="" AS="" \
# config/ltconfig --cache-file=./config.cache --disable-shared --with-gcc --en
able-win32-dll --no-verify config/ltmain.sh sparc-sun-solaris2.7
#
# Compiler and other test output produced by ltconfig, useful for
# debugging ltconfig, is in ./config.log if it exists.
# The version of ltconfig that generated this script.
LTCONFIG_VERSION="1.3.4"
Grateful for any advice. Thanks in advance
Jon
make[3]: Entering directory `/home/home5/jonm/lyx/lyx-1.1.6fix2/sigc++'
c++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -I./.. -g -O2 -c marshal.cc -o marshal.o
echo timestamp > marshal.lo
/bin/sh ./libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -I./.. -g
-O2 -c slot.cc
c++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -I./.. -g -O2 -c slot.cc -o slot.o
slot.cc:8: syntax error before `::'
slot.cc:11: syntax error before `::'
slot.cc:14: syntax error before `::'
slot.cc:17: syntax error before `::'
slot.cc:20: syntax error before `::'
slot.cc:23: syntax error before `::'
slot.cc:28: syntax error before `::'
slot.cc:33: syntax error before `::'
slot.cc:36: ANSI C++ forbids declaration `invalid' with no type
slot.cc:37: ANSI C++ forbids declaration `set_weak' with no type
slot.cc:38: ANSI C++ forbids declaration `unreference' with no type
slot.cc:39: parse error before `}'
slot.cc:41: syntax error before `::'
slot.cc:44: syntax error before `='
slot.cc:45: ANSI C++ forbids declaration `head_' with no type
slot.cc:47: parse error before `while'
slot.cc:51: ANSI C++ forbids declaration `current' with no type
slot.cc:51: `next' was not declared in this scope
slot.cc:52: parse error before `}'
slot.cc:55: syntax error before `::'
slot.cc:61: ANSI C++ forbids declaration `head_' with no type
slot.cc:61: redefinition of `int head_'
slot.cc:45: `int head_' previously defined here
slot.cc:61: `node' was not declared in this scope
slot.cc:62: parse error before `}'
slot.cc:66: ANSI C++ forbids declaration `j' with no type
slot.cc:66: implicit declaration of function `int begin(...)'
slot.cc:67: parse error before `while'
slot.cc:69: syntax error before `*'
slot.cc:70: syntax error before `->'
slot.cc:71: syntax error before `->'
make[3]: *** [slot.lo] Error 1
make[3]: Leaving directory `/home/home5/jonm/lyx/lyx-1.1.6fix2/sigc++'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/home5/jonm/lyx/lyx-1.1.6fix2/sigc++'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/home/home5/jonm/lyx/lyx-1.1.6fix2/sigc++'
make: *** [all-recursive] Error 1
--
Jonathan P Milton UK Design Centre
mailto:[EMAIL PROTECTED] Texas Instruments Ltd
(44) (1604) 663486 Northampton, England