poppler fails to compile with gcc-3.4.4 Output: [...] (cd .libs && rm -f libpoppler-qt.la && ln -s ../libpoppler-qt.la libpoppler-qt.la) i686-pc-linux-gnu-g++ -Wall -Wno-unused -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -o .libs/test-poppler-qt test-poppler-qt.o /usr/qt/3/lib/libqt-mt.so ../poppler/.libs/libpoppler.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib ./.libs/libpoppler-qt.so /var/tmp/portage/poppler-0.3.2/work/poppler-0.3.2/poppler/.libs/libpoppler.so /usr/lib/libcairo.so -lXrender -lX11 -lXext -lpng12 /usr/lib/libfontconfig.so /usr/lib/libexpat.so /usr/lib/libjpeg.so /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so /usr/lib/libfreetype.so -lz creating test-poppler-qt Making all in test In file included from /usr/include/cairo/cairo-ft.h:47, from ../poppler/CairoOutputDev.h:18, from gtk-cairo-test.cc:24: /usr/include/ft2build.h:56:38: freetype/config/ftheader.h: No such file or directory In file included from ../poppler/CairoOutputDev.h:18, from gtk-cairo-test.cc:24: /usr/include/cairo/cairo-ft.h:48:10: #include expects "FILENAME" or <FILENAME> In file included from ../poppler/CairoOutputDev.h:18, from gtk-cairo-test.cc:24: /usr/include/cairo/cairo-ft.h:60: error: `FT_Face' was not declared in this scope /usr/include/cairo/cairo-ft.h:61: error: expected primary-expression before "int" /usr/include/cairo/cairo-ft.h:61: error: initializer expression list treated as compound expression /usr/include/cairo/cairo-ft.h:63: error: `FT_Face' does not name a type In file included from gtk-cairo-test.cc:24: ../poppler/CairoOutputDev.h:135: error: `FT_Library' does not name a type make[2]: *** [gtk-cairo-test.o] Error 1 make[2]: *** Waiting for unfinished jobs.... mkdir .libs i686-pc-linux-gnu-g++ -Wall -Wno-unused -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -o .libs/gtk-splash-test gtk-splash-test.o ../poppler/.libs/libpoppler.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib /usr/lib/libjpeg.so /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so -lXrender -lX11 -lXext -lpng12 /usr/lib/libfontconfig.so /usr/lib/libexpat.so /usr/lib/libfreetype.so -lz /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so creating gtk-splash-test make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Freetype include files reside in /usr/include/freetype2/freetype/ Symlinking them to /usr/include/freetype solves the compilation error. freetype-config --cflags gives -I/usr/include/freetype2/
As I noted, they already know the bug upstream. It is fixed in poppler-0.4.2. Works for me now.