After running configure and running make g++ crashes on the first source file is has to compile (formula.C) /usr/include/g++-3/sstream:163: no `int std::stringbuf::sync ()' member function declared in class `std::stringbuf' /usr/include/g++-3/sstream: In method `int std::stringbuf::sync ()': /usr/include/g++-3/sstream:167: Internal error: Segmentation fault. Please submit a full bug report. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. The following g++ flags are used: -g -O2 -fhonor-std By removing the -fhonor-std flag I can stop g++ from crashing but the source still can't be compiled. g++ aborts starting with the following errors: In file included from /usr/include/g++-3/sstream:31, from ../../src/support/lstrings.h:16, from ../../src/debug.h:10, from ../../src/commandtags.h:14, from formula.C:31: /usr/include/g++-3/string:9: conflicting types for `typedef class basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > string' This first errormessage is followed by a fews screens of other messages.
Got lyx to compile without any errors. I ran configure on a RH6.2 system and transfered the code to my RH7.0 machine. I typed make and behold lyx compiles without any errors. Looks like the lyx configure scripts has some problems on RH7.0, or RH7.0 has some problems :-) But the g++ compiler should not crash on the lyx code even if not configured correctly. I haven't checked yet if the compiled code runs ok.
*** This bug has been marked as a duplicate of 18166 ***