Optional Libraries on SUSE10

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

The reason you can’t compile it is that XPDF cannot be compiled with GCC4.0. If you really want to install from source, you’d have to downgrade to GCC3.4.x.


You mentioned YaST so I presume you’re working with SUSE. Here’s an RPM for SUSE 10…keep in mind that RPMs for earlier versions of SUSE are also available through RPMFind.



Hope that helps.

Yeah I did find it on rpmfind, but was not sure if older version would work correctly with SUSE 10…


I am more familiar with FreeBSD environment, so sort of learning the SUSE linux quirks as I go…





I think I am going to rebuild the virtual machine again from scratch… and try and ad some online installation sources for packages, so I can see if I can get latest packages etc…



As I am also having troubles with aspell not being able to find the dictionary…




[quote]The reason you can’t compile it is that XPDF cannot be compiled with GCC4.0. If you really want to install from source, you’d have to downgrade to GCC3.4.x.



You mentioned YaST so I presume you’re working with SUSE. Here’s an RPM for SUSE 10…keep in mind that RPMs for earlier versions of SUSE are also available through RPMFind.



Hope that helps.

[right][post=“8519”]<{POST_SNAPBACK}>[/post][/right][/quote]

[quote]Yeah I did find it on rpmfind, but was not sure if older version would work correctly with SUSE 10…[/quote]I'm not 100% what you're saying. That RPM I linked to is the latest version / build. It was built on 20/12/05, and is specifically for 10.0.

[quote]I’m not 100% what you’re saying. That RPM I linked to is the latest version / build. It was built on 20/12/05, and is specifically for 10.0.
[right][post=“8521”]<{POST_SNAPBACK}>[/post][/right][/quote]



Yeah but had trouble finding others… is there a way with rpm adding to include dependenies?

[quote]Yeah but had trouble finding others… is there a way with rpm adding to include dependenies?
[right][post=“8522”]<{POST_SNAPBACK}>[/post][/right][/quote]I seem to remember the reason I switched from RPM based systems was because of these dependancy issues and the eternal “hunt for the missing RPM”…so I’m probably not the right person to ask. :slight_smile:



I’m sure someone else will be able to give you a hand though.

LOL yeah as I think I said I am coming from a BSD environment, with the nice Ports packages :slight_smile:


I am stepping back to SUSE 9.3 and will give apt a go, apparently they is nicer when iot comes to dependencies…


[quote]I seem to remember the reason I switched from RPM based systems was because of these dependancy issues and the eternal “hunt for the missing RPM”…so I’m probably not the right person to ask. :slight_smile:



I’m sure someone else will be able to give you a hand though.

[right][post=“8551”]<{POST_SNAPBACK}>[/post][/right][/quote]