Bug 68068 - g++296 misinterpets #include <string>
Summary: g++296 misinterpets #include <string>
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: compat-gcc
Version: limbo
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-07-06 01:35 UTC by Nathan G. Grennan
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-07-06 05:11:07 UTC
Embargoed:


Attachments (Terms of Use)

Description Nathan G. Grennan 2002-07-06 01:35:14 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020625

Description of problem:
If a .cpp has   #include <string>   in it when using gcc 2.96 instead of gcc 3.1
the compile will fail.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Compile something with g++296

	

Actual Results:  Won't compile

Expected Results:  For it to compile

Additional info:

I am trying to compile Galeon 1.2.5-3 with g++296, because I have compiled
Mozilla 1.0.1-5 with g++296. I compiled Mozilla with g++296, because I want
backward compatibility with Mozilla plugins.

I changed

if [ ! -f configure ]; then
        CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{prefix} \

and

else
        CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} \


to

if [ ! -f configure ]; then
HOST_CC=gcc296 HOST_CXX=g++296 CC=gcc296 CCC=g++296 CXX=g++296 \ 
        CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{prefix} \

and

else
HOST_CC=gcc296 HOST_CXX=g++296 CC=gcc296 CCC=g++296 CXX=g++296 \
        CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} \

in galeon-1.2.5.spec. So during the build of the rpm it would use gcc 2.96
instead of gcc 3.1.

The file in Galeon 1.2.5 that has #include <string> at the top in an if
statement is  src/mozilla/TOCProtocolHandler.cpp


The actual error message during the compile is


TOCProtocolHandler.cpp:33:23: /usr/include/mozilla-1.0.1/string is a directory

Comment 1 Nathan G. Grennan 2002-07-06 05:11:03 UTC
I was able to compile galeon-1.2.5-3 with the Mozilla 1.0.1-5 rpms I compiled
under Limbo on a RedHat 7.3 box.


Note You need to log in before you can comment on or make changes to this bug.