Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95409 - xpdf-3.00-r9 can't be compiled by gcc-4.0.1_beta20050602
Summary: xpdf-3.00-r9 can't be compiled by gcc-4.0.1_beta20050602
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-07 20:07 UTC by Chen Xiangyang
Modified: 2005-06-08 03:08 UTC (History)
0 users

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


Attachments
the patch (xpdf-3.00-gcc4.patch,890 bytes, patch)
2005-06-07 20:08 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-07 20:07:48 UTC
SplashT1FontFile not declared in splash/SplashT1Font.h
Forward declaration needed in xpdf/TextOutputDev.h

Reproducible: Always
Steps to Reproduce:
1.emerge xpdf
2.
3.

Actual Results:  
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashT1FontFile.cc
SplashT1Font.h:27: error: expected `)' before '*' token
SplashT1FontFile.cc: In member function 'virtual SplashFont*
SplashT1FontFile::makeFont(SplashCoord*)':
SplashT1FontFile.cc:91: error: no matching function for call to
'SplashT1Font::SplashT1Font(SplashT1FontFile* const, SplashCoord*&)'
SplashT1Font.h:24: note: candidates are: SplashT1Font::SplashT1Font()
SplashT1Font.h:24: note:                 SplashT1Font::SplashT1Font(const
SplashT1Font&)
make: *** [SplashT1FontFile.o] Error 1

-------------------------------------------------
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.       
   -c TextOutputDev.cc
TextOutputDev.h:172: error: expected `)' before '*' token
TextOutputDev.h:198: error: ISO C++ forbids declaration of 'TextBlock' with no type
TextOutputDev.h:198: error: expected ';' before '*' token
TextOutputDev.h:229: error: expected `)' before '*' token
TextOutputDev.h:253: error: ISO C++ forbids declaration of 'TextPage' with no type
TextOutputDev.h:253: error: expected ';' before '*' token
TextOutputDev.h:285: error: expected `)' before '*' token
TextOutputDev.h:299: error: ISO C++ forbids declaration of 'TextPage' with no type
TextOutputDev.h:299: error: expected ';' before '*' token
TextOutputDev.h:419: error: 'TextLineFrag' has not been declared
TextOutputDev.cc:480: error: prototype for 'TextLine::TextLine(TextBlock*, int,
double)' does not match any in class 'TextLine'
TextOutputDev.h:169: error: candidates are: TextLine::TextLine(const TextLine&)
TextOutputDev.h:169: error:                 TextLine::TextLine()
TextOutputDev.cc: In constructor 'TextLine::TextLine(TextBlock*, int, double)':
TextOutputDev.cc:481: error: 'blk' was not declared in this scope
TextOutputDev.cc: In member function 'void TextLineFrag::computeCoords(GBool)':
TextOutputDev.cc:771: error: 'class TextLine' has no member named 'blk'
TextOutputDev.cc:781: error: 'class TextLine' has no member named 'blk'
TextOutputDev.cc:829: error: 'class TextLine' has no member named 'blk'
TextOutputDev.cc: In static member function 'static int
TextLineFrag::cmpYXPrimaryRot(const void*, const void*)':
TextOutputDev.cc:870: error: 'class TextLine' has no member named 'blk'
TextOutputDev.cc: At global scope:
TextOutputDev.cc:961: error: prototype for 'TextBlock::TextBlock(TextPage*,
int)' does not match any in class 'TextBlock'
TextOutputDev.h:226: error: candidates are: TextBlock::TextBlock(const TextBlock&)
TextOutputDev.h:226: error:                 TextBlock::TextBlock()
TextOutputDev.cc: In constructor 'TextBlock::TextBlock(TextPage*, int)':
TextOutputDev.cc:962: error: 'page' was not declared in this scope
TextOutputDev.cc: In member function 'void TextBlock::coalesce(UnicodeMap*)':
TextOutputDev.cc:1118: error: new initializer expression list treated as
compound expression
TextOutputDev.cc:1118: error: no matching function for call to
'TextLine::TextLine(double&)'
TextOutputDev.h:169: note: candidates are: TextLine::TextLine()
TextOutputDev.h:169: note:                 TextLine::TextLine(const TextLine&)
TextOutputDev.cc: In member function 'void TextBlock::updatePriMinMax(TextBlock*)':
TextOutputDev.cc:1258: error: 'page' was not declared in this scope
TextOutputDev.cc: In static member function 'static int
TextBlock::cmpXYPrimaryRot(const void*, const void*)':
TextOutputDev.cc:1310: error: 'class TextBlock' has no member named 'page'
TextOutputDev.cc: In static member function 'static int
TextBlock::cmpYXPrimaryRot(const void*, const void*)':
TextOutputDev.cc:1341: error: 'class TextBlock' has no member named 'page'
TextOutputDev.cc: In member function 'GBool TextBlock::isBelow(TextBlock*)':
TextOutputDev.cc:1412: error: 'page' was not declared in this scope
TextOutputDev.cc: At global scope:
TextOutputDev.cc:1438: error: prototype for 'TextFlow::TextFlow(TextPage*,
TextBlock*)' does not match any in class 'TextFlow'
TextOutputDev.h:282: error: candidates are: TextFlow::TextFlow(const TextFlow&)
TextOutputDev.h:282: error:                 TextFlow::TextFlow()
TextOutputDev.cc: In constructor 'TextFlow::TextFlow(TextPage*, TextBlock*)':
TextOutputDev.cc:1439: error: 'page' was not declared in this scope
TextOutputDev.cc: In member function 'GBool TextFlow::blockFits(TextBlock*,
TextBlock*)':
TextOutputDev.cc:1490: error: 'page' was not declared in this scope
TextOutputDev.cc: In member function 'void TextPage::coalesce(GBool)':
TextOutputDev.cc:2038: error: new initializer expression list treated as
compound expression
TextOutputDev.cc:2038: error: no matching function for call to
'TextBlock::TextBlock(int&)'
TextOutputDev.h:226: note: candidates are: TextBlock::TextBlock()
TextOutputDev.h:226: note:                 TextBlock::TextBlock(const TextBlock&)
TextOutputDev.cc:2523: error: new initializer expression list treated as
compound expression
TextOutputDev.cc:2523: error: no matching function for call to
'TextFlow::TextFlow(TextBlock*&)'
TextOutputDev.h:282: note: candidates are: TextFlow::TextFlow()
TextOutputDev.h:282: note:                 TextFlow::TextFlow(const TextFlow&)
TextOutputDev.cc: In member function 'GString* TextPage::getText(double, double,
double, double)':
TextOutputDev.cc:2931: error: no matching function for call to
'TextPage::assignColumns(TextLineFrag*&, int&, GBool&)'
TextOutputDev.h:419: note: candidates are: void TextPage::assignColumns(int*,
int, int)
TextOutputDev.cc: At global scope:
TextOutputDev.cc:3230: error: prototype for 'void
TextPage::assignColumns(TextLineFrag*, int, GBool)' does not match any in class
'TextPage'
TextOutputDev.h:419: error: candidate is: void TextPage::assignColumns(int*,
int, int)
make: *** [TextOutputDev.o] Error 1



Expected Results:  
compiled successfully.
Comment 1 Chen Xiangyang 2005-06-07 20:08:20 UTC
Created attachment 60816 [details, diff]
the patch
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2005-06-08 03:08:23 UTC
thx, added