Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183008 - app-text/xpdf-3.01-r8 fails with app-text/poppler-0.5.9: error: config.h: No such file or directory
Summary: app-text/xpdf-3.01-r8 fails with app-text/poppler-0.5.9: error: config.h: No ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-23 22:58 UTC by Ed Catmur
Modified: 2007-06-24 09:20 UTC (History)
0 users

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


Attachments
app-text/xpdf/poppler-0.5.9.patch (poppler-0.5.9.patch,15.54 KB, patch)
2007-06-24 00:04 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2007-06-23 22:58:56 UTC
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
Comment 1 Ed Catmur 2007-06-23 23:00:48 UTC
Looks to be https://bugs.freedesktop.org/show_bug.cgi?id=11243
Testing patch now.
Comment 2 Ed Catmur 2007-06-23 23:11:51 UTC
Note patch there has DOS line breaks, so may need fixing before using.
Comment 3 Ed Catmur 2007-06-23 23:32:45 UTC
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
Comment 4 Ed Catmur 2007-06-24 00:03:51 UTC
Right, a proper a fix will involve xpdf 3.02 (bug 176081) but a hack to compile should be doable.
Comment 5 Ed Catmur 2007-06-24 00:04:53 UTC
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.
Comment 6 Ed Catmur 2007-06-24 00:05:49 UTC
xpdf compiles and appears to work with both patches applied.
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2007-06-24 09:20:47 UTC
thank you! I have made the necessary commits.