Bug 18166
Summary: | libstc++ compile errors | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | James Boulton <james.boulton> |
Component: | libstdc++ | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-10-01 15:47:30 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
James Boulton
2000-10-03 02:02:46 UTC
Ok, from current investigation it looks like it is partly bug on lyx side and maybe there is some bug in libstdc++, will need to investigate more. The bug on lyx side is that it assumes gcc 2.96 means libstdc++-v3 which is wrong assumption (even current CVS gcc 2.97 does not build libstdc++-v3 by default), changing aclocal.m4 and configure so that on 2.96) it does the same as with 2.95.*) cures it. Another problem is that in 2.96 libstdc++ there is sstream header, but probably not the one lyx assumes to see (again I think it thinks it must be from libstdc++-v3). Commenting #define HAVE_SSTREAM 1 out of src/config.h after configure or taking it out of configure.in/configure makes lyx to compile on RHL7. I'll ask the C++ folks whether using -fhonor-std with libstdc++-v2 headers is actually allowed, whether <sstream> is allowed to include <string> (that is one reason why formula.C fails because lyxstring.h defines its own string class which conflicts with the one defined in <string> and whether sstream should be compilable with -fno-rtti or not (that is the other reason). *** Bug 18739 has been marked as a duplicate of this bug. *** *** Bug 19068 has been marked as a duplicate of this bug. *** > lyxstring.h defines its own string class
>which conflicts with the one defined in <string>
Bug.
with gcc-2.x compilers, without namespace support, this is a violation
of ODR.
-benjamin
|