Bug 68068

Summary: g++296 misinterpets #include <string>
Product: [Retired] Red Hat Public Beta Reporter: Nathan G. Grennan <redhat-bugzilla>
Component: compat-gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: limbo   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-07-06 05:11:07 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 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.