Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95835 - gperf-3.0.1 can't be compiled by gcc4
Summary: gperf-3.0.1 can't be compiled by gcc4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-11 22:19 UTC by Chen Xiangyang
Modified: 2005-06-15 19:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
a patch that should fix the bug (gperf-3.0.1-gcc4.patch,424 bytes, patch)
2005-06-11 22:20 UTC, Chen Xiangyang
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chen Xiangyang 2005-06-11 22:19:56 UTC
src/positions.cc need forward declaration.

Reproducible: Always
Steps to Reproduce:
1.untar gperf-3.0.1.tar.gz
2../configure
3.make

Actual Results:  
g++ -g -O2 -I. -I./../lib -c ./positions.cc
./positions.h:74: error: 'PositionIterator' does not name a type
./positions.h:77: error: 'PositionIterator' does not name a type
./positions.h:79: error: 'PositionReverseIterator' does not name a type
./positions.h:82: error: 'PositionReverseIterator' does not name a type
./positions.icc:154: error: no 'PositionIterator Positions::iterator() const'
member function declared in class 'Positions'
./positions.icc:162: error: prototype for 'PositionIterator
Positions::iterator(int) const' does not match any in class 'Positions'
./positions.icc:154: error: candidate is: PositionIterator Positions::iterator()
const
./positions.icc:169: error: no 'PositionReverseIterator Positions::reviterator()
const' member function declared in class 'Positions'
./positions.icc:177: error: prototype for 'PositionReverseIterator
Positions::reviterator(int) const' does not match any in class 'Positions'
./positions.icc:169: error: candidate is: PositionReverseIterator
Positions::reviterator() const
make: *** [positions.o] Error 1


Expected Results:  
compiled successfully
Comment 1 Chen Xiangyang 2005-06-11 22:20:33 UTC
Created attachment 61094 [details, diff]
a patch that should fix the bug
Comment 2 Chen Xiangyang 2005-06-11 22:22:22 UTC
sorry. it's src/positions.h that needs forward declarations.
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2005-06-15 19:43:37 UTC
thanks for the patch, its fixed in the tree