Package: xpdf Severity: normal Version: 3.00-13 Tags: patch >From my build log:
... g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I. -I/usr/include -I/usr/include/freetype2 -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[2]: *** [SplashT1FontFile.o] Error 1 make[2]: Leaving directory `/tmp/buildd/xpdf-3.00/splash' make[1]: *** [all] Error 2 make[1]: Leaving directory `/tmp/buildd/xpdf-3.00' make: *** [build-stamp] Error 2 I've attached a patch which allows xpdf to build with g++-4.0. -- System Information: Debian Release: testing/unstable Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.11-9-amd64-k8 Locale: LANG=en, LC_CTYPE=en (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8) -- Daniel Schepler "Please don't disillusion me. I [EMAIL PROTECTED] haven't had breakfast yet." -- Orson Scott Card
diff -ur xpdf-3.00.old/splash/SplashT1Font.h xpdf-3.00/splash/SplashT1Font.h --- xpdf-3.00.old/splash/SplashT1Font.h 2004-01-22 01:26:44.000000000 +0000 +++ xpdf-3.00/splash/SplashT1Font.h 2005-07-04 07:02:02.000000000 +0000 @@ -21,6 +21,8 @@ // SplashT1Font //------------------------------------------------------------------------ +class SplashT1FontFile; + class SplashT1Font: public SplashFont { public: diff -ur xpdf-3.00.old/xpdf/TextOutputDev.h xpdf-3.00/xpdf/TextOutputDev.h --- xpdf-3.00.old/xpdf/TextOutputDev.h 2004-01-22 01:26:45.000000000 +0000 +++ xpdf-3.00/xpdf/TextOutputDev.h 2005-07-04 07:04:34.000000000 +0000 @@ -166,6 +166,8 @@ // TextLine //------------------------------------------------------------------------ +class TextBlock; + class TextLine { public: @@ -223,6 +225,8 @@ // TextBlock //------------------------------------------------------------------------ +class TextPage; + class TextBlock { public: @@ -338,6 +342,8 @@ #endif // TEXTOUT_WORD_LIST +class TextLineFrag; + //------------------------------------------------------------------------ // TextPage //------------------------------------------------------------------------