g++ -ggdb -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -c -o PDFCore.o PDFCore.cc In file included from /usr/include/poppler/Object.h:19, from CoreOutputDev.cc:13: /usr/include/poppler/goo/gmem.h:13:20: error: config.h: No such file or directory distcc[17287] ERROR: compile CoreOutputDev.cc on localhost failed make: *** [CoreOutputDev.o] Error 1 !!! ERROR: app-text/xpdf-3.01-r8 failed. Call stack: ebuild.sh, line 1629: Called dyn_compile ebuild.sh, line 975: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile ebuild.sh, line 649: Called die
Looks to be https://bugs.freedesktop.org/show_bug.cgi?id=11243 Testing patch now.
Note patch there has DOS line breaks, so may need fixing before using.
OK, that works. Next error: g++ -I/usr/include/poppler -I/usr/include/poppler/goo -I/usr/include/poppler/splash -c -o PDFCore.o PDFCore.cc In file included from PDFCore.cc:27: PDFCore.h:19:24: error: UGooString.h: No such file or directory PDFCore.h:159: error: ‘UGooString’ has not been declared PDFCore.cc: In constructor ‘PDFCore::PDFCore(SplashColorMode, int, GBool, Guchar*)’: PDFCore.cc:84: error: ‘class GlobalParams’ has no member named ‘getContinuousView’ PDFCore.cc: In member function ‘void PDFCore::needTile(PDFCorePage*, int, int)’: PDFCore.cc:794: error: ‘class PDFDoc’ has no member named ‘takeLinks’ PDFCore.cc: At global scope: PDFCore.cc:854: error: ‘GBool PDFCore::gotoNamedDestination’ is not a static member of ‘class PDFCore’ PDFCore.cc:854: error: ‘UGooString’ was not declared in this scope PDFCore.cc:854: error: ‘dest’ was not declared in this scope PDFCore.cc:854: error: expected ‘,’ or ‘;’ before ‘{’ token PDFCore.cc: In member function ‘void PDFCore::xorRectangle(int, int, int, int, int, SplashPattern*, PDFCoreTile*)’: PDFCore.cc:1216: error: no matching function for call to ‘Splash::Splash(SplashBitmap*&)’ /usr/include/poppler/splash/Splash.h:73: note: candidates are: Splash::Splash(SplashBitmap*, GBool, SplashScreen*) /usr/include/poppler/splash/Splash.h:71: note: Splash::Splash(SplashBitmap*, GBool, SplashScreenParams*) /usr/include/poppler/splash/Splash.h:66: note: Splash::Splash(const Splash&) PDFCore.cc: In member function ‘void PDFCore::cvtUserToDev(int, double, double, int*, int*)’: PDFCore.cc:1587: error: no matching function for call to ‘Page::getDefaultCTM(double [6], double&, double&, int&, GBool)’ /usr/include/poppler/Page.h:211: note: candidates are: void Page::getDefaultCTM(double*, double, double, int, GBool, GBool) make: *** [PDFCore.o] Error 1
Right, a proper a fix will involve xpdf 3.02 (bug 176081) but a hack to compile should be doable.
Created attachment 122920 [details, diff] app-text/xpdf/poppler-0.5.9.patch Patch, converting UGooString to GooString, hacking API and removing unsupported GlobalParams calls.
xpdf compiles and appears to work with both patches applied.
thank you! I have made the necessary commits.