Hi all, I was wondering if anyone out there had experienced problems installing pdf2html from source?
Any help would be great as this is driving me nuts… I have tried going to YAST to install pdf2html but on my version it does not exists as rpm package… so I need to build from source…
I am getting the following errors:
cd xpdf; make
make[1]: Entering directory `/home/sysman/source/pdftohtml-0.38/xpdf'
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Annot.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Array.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c BuiltinFont.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c BuiltinFontTables.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Catalog.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c CharCodeToUnicode.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c CMap.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Decrypt.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Dict.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Error.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c FontEncodingTables.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Function.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Gfx.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c GfxFont.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c GfxState.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c GlobalParams.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c JArithmeticDecoder.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c JBIG2Stream.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c JPXStream.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Lexer.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Link.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c NameToCharCode.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Object.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Outline.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c OutputDev.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Page.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Parser.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c PDFDoc.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c PDFDocEncoding.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c PSOutputDev.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c PSTokenizer.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c SplashOutputDev.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -c Stream.cc
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/X11R6/include -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[1]: *** [TextOutputDev.o] Error 1
