Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114676 - app-text/poppler-0.3.2 compiler error due to wrong include path for freetype
Summary: app-text/poppler-0.3.2 compiler error due to wrong include path for freetype
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-06 16:07 UTC by Thomas Bettler
Modified: 2005-12-07 03:39 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bettler 2005-12-06 16:07:55 UTC
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/
Comment 1 Thomas Bettler 2005-12-07 03:39:36 UTC
As I noted, they already know the bug upstream. It is fixed in poppler-0.4.2. 
Works for me now.