I have the following problem -- I am unable to compile lyx-1.1.5 on
SPARC/Solaris7 with gcc-2.8.1. The error messages look like this:
Making all in intl
make[1]: Entering directory `/net/chomsky/download/lyx-1.1.5/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/net/chomsky/download/lyx-1.1.5/intl'
Making all in po
make[1]: Entering directory `/net/chomsky/download/lyx-1.1.5/po'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/net/chomsky/download/lyx-1.1.5/po'
Making all in src
make[1]: Entering directory `/net/chomsky/download/lyx-1.1.5/src'
make all-recursive
make[2]: Entering directory `/net/chomsky/download/lyx-1.1.5/src'
Making all in mathed
make[3]: Entering directory `/net/chomsky/download/lyx-1.1.5/src/mathed'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/net/chomsky/download/lyx-1.1.5/src/mathed'
Making all in insets
make[3]: Entering directory `/net/chomsky/download/lyx-1.1.5/src/insets'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/net/chomsky/download/lyx-1.1.5/src/insets'
Making all in support
make[3]: Entering directory
`/net/chomsky/download/lyx-1.1.5/src/support'
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../../src -I./../ -I/usr/openwin/include -g -O2 -fno-rtti
-fno-exceptions -c LRegex.C
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I/usr/openwin/include
-g -O2 -fno-rtti -fno-exceptions -c LRegex.C -o LRegex.o
In file included from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.8.1/include/limits.h:116,
from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.8.1/include/syslimits.h:7,
from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.8.1/include/limits.h:11,
from /usr/local/include/g++/stl_algobase.h:49,
from /usr/local/include/g++/vector:30,
from LRegex.h:16,
from LRegex.C:15:
/usr/include/limits.h:175: warning: `RE_DUP_MAX' redefined
/usr/local/lib/g++-include/regex.h:42: warning: this is the location of
the previous definition
LRegex.C:22: syntax error before `*'
LRegex.C: In method `LRegex::Impl::Impl(const class lyxstring &)':
LRegex.C:32: parse error before `)'
LRegex.C:32: parse error at end of saved function text
LRegex.C: In method `LRegex::Impl::~Impl()':
LRegex.C:40: warning: implicit declaration of function `int
regfree(...)'
LRegex.C:40: `preg' undeclared (first use this function)
LRegex.C:40: (Each undeclared identifier is reported only once
LRegex.C:40: for each function it appears in.)
LRegex.C: In method `bool LRegex::Impl::exact_match(const class
lyxstring &) const':
LRegex.C:47: `regmatch_t' undeclared (first use this function)
LRegex.C:47: parse error before `;'
LRegex.C:48: warning: implicit declaration of function `int
regexec(...)'
LRegex.C:48: `preg' undeclared (first use this function)
LRegex.C:48: `tmp' undeclared (first use this function)
LRegex.C: In method `struct pair<unsigned int,unsigned int>
LRegex::Impl::first_match(const class lyxstring &) const':
LRegex.C:60: `regmatch_t' undeclared (first use this function)
LRegex.C:60: parse error before `;'
LRegex.C:61: `preg' undeclared (first use this function)
LRegex.C:61: `tmp' undeclared (first use this function)
LRegex.C: In method `class lyxstring LRegex::Impl::getError() const':
LRegex.C:72: warning: implicit declaration of function `int
regerror(...)'
LRegex.C:72: `preg' undeclared (first use this function)
LRegex.C: In method `const class vector<pair<unsigned int,unsigned
int>,__default_alloc_template<false,0> > & LRegex::Impl::exec(const
class lyxstring &) const':
LRegex.C:91: `preg' undeclared (first use this function)
LRegex.C:92: `regmatch_t' undeclared (first use this function)
LRegex.C:92: `mat' undeclared (first use this function)
LRegex.C:92: parse error before `['
LRegex.C:116: cannot declare member function `LRegex::LRegex' within
`LRegex::Impl'
LRegex.C:116: syntax error before `:'
LRegex.C:120: cannot declare member function `LRegex::LRegex' within
`LRegex::Impl'
LRegex.C:120: syntax error before `{'
LRegex.C:126: cannot declare member function `LRegex::exec' within
`LRegex::Impl'
LRegex.C:126: syntax error before `{'
LRegex.C:132: cannot declare member function `LRegex::exact_match'
within `LRegex::Impl'
LRegex.C:132: syntax error before `{'
LRegex.C:138: cannot declare member function `LRegex::first_match'
within `LRegex::Impl'
LRegex.C:138: syntax error before `{'
LRegex.C:144: cannot declare member function `LRegex::getError' within
`LRegex::Impl'
LRegex.C:144: syntax error before `{'
LRegex.C:150: cannot declare member function `LRegex::getErrorCode'
within `LRegex::Impl'
LRegex.C:150: syntax error before `{'
LRegex.C:155: cannot declare member function `LRegex::ok' within
`LRegex::Impl'
LRegex.C:155: syntax error before `{'
make[3]: *** [LRegex.lo] Error 1
make[3]: Leaving directory `/net/chomsky/download/lyx-1.1.5/src/support'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/net/chomsky/download/lyx-1.1.5/src'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/net/chomsky/download/lyx-1.1.5/src'
make: *** [all-recursive] Error
1
Has anyone encountered this problem? Do you know what to do?
--
Hana Skoumalova Institute of Theoretical & Computational Linguistics
Charles University
tel: +420 2 24491858 Celetna 13, 110 00 Praha 1
http://utkl.ff.cuni.cz/~skoumal Czech Republic