Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 56079 - Non-standard C++ code
Non-standard C++ code
Product: Red Hat Raw Hide
Classification: Retired
Component: freetype (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Mike A. Harris
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2001-11-12 11:48 EST by Bernhard Rosenkraenzer
Modified: 2007-04-18 12:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-11-12 11:48:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Bernhard Rosenkraenzer 2001-11-12 11:48:16 EST
Description of Problem:
ttmkfdir uses non-standards compilant C++ code, causing it to fail with 
gcc 3.1

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

How Reproducible:

Steps to Reproduce:
1. rpm --rebuild freetype-2.0.5-1.src.rpm

Actual Results:
g++ -Wall -pedantic -I../freetype-pre1.4/lib/. -ggdb -c ttmkfdir.cpp  
-fPIC -DPIC -o .libs/ttmkfdir.lo
In file included from ttmkfdir.h:6,
                 from ttmkfdir.cpp:6:
commandline.h:11: warning: ISO C++ forbids declaration of `ostream' with 
commandline.h:11: `ostream' is neither function nor member function; 
cannot be
   declared friend
commandline.h:11: parse error before `&' token
commandline.h:12: warning: ISO C++ forbids declaration of `ostream' with 
commandline.h:12: `ostream' is neither function nor member function; 
cannot be
   declared friend
commandline.h:12: declaration of `int Commandline::ostream'
commandline.h:11: conflicts with previous declaration `int 
commandline.h:12: parse error before `&' token
commandline.h:12: duplicate member `Commandline::ostream'
In file included from ttmkfdir.cpp:7:
ttf.h:34: parse error before `&' token

Expected Results:
package builds

Additional Information:
STL classes live in the std namespace these days; adding "using namespace 
std;" will probably be sufficient to fix this.
Comment 1 Bernhard Rosenkraenzer 2001-11-12 11:56:24 EST
I've fixed it in 2.0.5-2.

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