Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 19068

Summary: g++ crahes when compiling lyx
Product: [Retired] Red Hat Linux Reporter: Need Real Name <harry>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED DUPLICATE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
URL: ftp://ftp.lyx.org/pub1/lyx/stable/lyx-1.1.5fix1.tar.gz
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-10-18 18:00:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2000-10-13 18:07:04 UTC
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.

Comment 1 Need Real Name 2000-10-18 18:00:56 UTC
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.


Comment 2 Need Real Name 2000-10-19 20:13:54 UTC

*** This bug has been marked as a duplicate of 18166 ***