Compilation of kdegraphics-3.2.1 fails in ksvg module with bunch of syntax errors in freetype related header files. Here is the output: make[6]: Entering directory `/var/tmp/portage/kdegraphics-3.2.1/work/kdegraphics-3.2.1/ksvg/impl/libs/libtext2path/src' /bin/sh ../../../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I/usr/include -I/usr/include/freetype2 -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=i686 -O3 -pipe -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -c -o Affine.lo `test -f 'Affine.cpp' || echo './'`Affine.cpp /bin/sh ../../../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I/usr/include -I/usr/include/freetype2 -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=i686 -O3 -pipe -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -c -o Rectangle.lo `test -f 'Rectangle.cpp' || echo './'`Rectangle.cpp /bin/sh ../../../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I/usr/include -I/usr/include/freetype2 -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=i686 -O3 -pipe -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -c -o Font.lo `test -f 'Font.cpp' || echo './'`Font.cpp /bin/sh ../../../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I/usr/include -I/usr/include/freetype2 -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=i686 -O3 -pipe -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -c -o Glyph.lo `test -f 'Glyph.cpp' || echo './'`Glyph.cpp /bin/sh ../../../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../../../../.. -I/usr/include -I/usr/include/freetype2 -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=i686 -O3 -pipe -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -c -o GlyphTracer.lo `test -f 'GlyphTracer.cpp' || echo './'`GlyphTracer.cpp In file included from Font.cpp:25: Font.h:74: syntax error before `&' Font.h:79: syntax error before `;' In file included from GlyphTracer.cpp:21: GlyphTracer.h:46: `FT_Vector' was not declared in this scope GlyphTracer.h:46: parse error before `,' GlyphTracer.h:47: `FT_Vector' was not declared in this scope GlyphTracer.h:47: parse error before `,' GlyphTracer.h:48: `FT_Vector' was not declared in this scope GlyphTracer.h:48: parse error before `,' GlyphTracer.h:49: `FT_Vector' was not declared in this scope GlyphTracer.h:49: parse error before `,' GlyphTracer.h:51: syntax error before `*' GlyphTracer.h:54: syntax error before `*' GlyphTracer.h:56: `FT_Vector' was not declared in this scope GlyphTracer.h:56: parse error before `,' GlyphTracer.h:57: `FT_Vector' was not declared in this scope GlyphTracer.h:57: parse error before `,' GlyphTracer.h:58: `FT_Vector' was not declared in this scope GlyphTracer.h:58: parse error before `,' GlyphTracer.h:59: `FT_Vector' was not declared in this scope GlyphTracer.h:59: parse error before `,' GlyphTracer.cpp: In method `T2P::GlyphTracer::GlyphTracer()': GlyphTracer.cpp:31: `m_outlineMethods' undeclared (first use this function) GlyphTracer.cpp:31: (Each undeclared identifier is reported only once GlyphTracer.cpp:31: for each function it appears in.) GlyphTracer.cpp: At top level: GlyphTracer.cpp:39: `FT_Vector' was not declared in this scope GlyphTracer.cpp:39: parse error before `,' GlyphTracer.cpp:44: `FT_Vector' was not declared in this scope GlyphTracer.cpp:44: parse error before `,' GlyphTracer.cpp:49: `FT_Vector' was not declared in this scope GlyphTracer.cpp:49: parse error before `,' GlyphTracer.cpp:54: `FT_Vector' was not declared in this scope GlyphTracer.cpp:54: parse error before `,' GlyphTracer.cpp:59: syntax error before `*' GlyphTracer.cpp:64: syntax error before `*' GlyphTracer.cpp:65: syntax error before `->' GlyphTracer.cpp:66: syntax error before `->' GlyphTracer.cpp:67: syntax error before `->' GlyphTracer.cpp:68: syntax error before `->' GlyphTracer.cpp:69: syntax error before `->' GlyphTracer.cpp:70: syntax error before `->' GlyphTracer.cpp:72: ANSI C++ forbids declaration `m_outlineMethods' with no type GlyphTracer.cpp:72: `int m_outlineMethods' used prior to declaration GlyphTracer.cpp:72: `ret' was not declared in this scope GlyphTracer.cpp:73: parse error before `return' make[6]: *** [GlyphTracer.lo] Error 1 make[6]: *** Waiting for unfinished jobs.... In file included from Glyph.cpp:22: Glyph.h:53: syntax error before `*' Glyph.h:57: syntax error before `[' Glyph.cpp:62: syntax error before `*' In file included from Converter.h:29, from Font.cpp:27: /usr/include/freetype2/freetype/ftoutln.h:101: `FT_Error' was not declared in this scope /usr/include/freetype2/freetype/ftoutln.h:102: syntax error before `(' /usr/include/freetype2/freetype/ftoutln.h:136: `FT_Error' was not declared in this scope /usr/include/freetype2/freetype/ftoutln.h:137: redefinition of `int FT_EXPORT' /usr/include/freetype2/freetype/ftoutln.h:102: `int FT_EXPORT' previously defined here /usr/include/freetype2/freetype/ftoutln.h:137: syntax error before `(' /usr/include/freetype2/freetype/ftoutln.h:143: `FT_Error' was not declared in this scope /usr/include/freetype2/freetype/ftoutln.h:144: redefinition of `int FT_EXPORT' /usr/include/freetype2/freetype/ftoutln.h:137: `int FT_EXPORT' previously defined here /usr/include/freetype2/freetype/ftoutln.h:144: syntax error before `(' /usr/include/freetype2/freetype/ftoutln.h:174: `FT_Error' was not declared in this scope /usr/include/freetype2/freetype/ftoutln.h:175: redefinition of `int FT_EXPORT' /usr/include/freetype2/freetype/ftoutln.h:144: `int FT_EXPORT' previously defined here /usr/include/freetype2/freetype/ftoutln.h:175: syntax error before `(' /usr/include/freetype2/freetype/ftoutln.h:179: `FT_Error' was not declared in this scope /usr/include/freetype2/freetype/ftoutln.h:180: redefinition of `int FT_EXPORT' /usr/include/freetype2/freetype/ftoutln.h:175: `int FT_EXPORT' previously defined here /usr/include/freetype2/freetype/ftoutln.h:180: syntax error before `(' /usr/include/freetype2/freetype/ftoutln.h:198: `FT_Error' was not declared in this scope /usr/include/freetype2/freetype/ftoutln.h:199: redefinition of `int FT_EXPORT' /usr/include/freetype2/freetype/ftoutln.h:180: `int FT_EXPORT' previously defined here /usr/include/freetype2/freetype/ftoutln.h:199: syntax error before `(' /usr/include/freetype2/freetype/ftoutln.h: In function `int FT_EXPORT()': /usr/include/freetype2/freetype/ftoutln.h:226: `int FT_EXPORT()' redeclared as different kind of symbol /usr/include/freetype2/freetype/ftoutln.h:199: previous declaration of `int FT_EXPORT' /usr/include/freetype2/freetype/ftoutln.h:199: previous non-function declaration `int FT_EXPORT' /usr/include/freetype2/freetype/ftoutln.h:226: conflicts with function declaration `int FT_EXPORT()' /usr/include/freetype2/freetype/ftoutln.h:226: parse error before `(' /usr/include/freetype2/freetype/ftoutln.h:226: `FT_Outline' undeclared (first use this function) /usr/include/freetype2/freetype/ftoutln.h:226: (Each undeclared identifier is reported only once /usr/include/freetype2/freetype/ftoutln.h:226: for each function it appears in.) /usr/include/freetype2/freetype/ftoutln.h:226: `outline' undeclared (first use this function) /usr/include/freetype2/freetype/ftoutln.h:227: `FT_BBox' undeclared (first use this function) /usr/include/freetype2/freetype/ftoutln.h:227: `acbox' undeclared (first use this function) /usr/include/freetype2/freetype/ftoutln.h:227: confused by earlier errors, bailing out cpp0: output pipe has been closed make[6]: *** [Font.lo] Error 1 make[6]: *** [Glyph.lo] Error 1 make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.1/work/kdegraphics-3.2.1/ksvg/impl/libs/libtext2path' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.1/work/kdegraphics-3.2.1/ksvg/impl/libs' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.1/work/kdegraphics-3.2.1/ksvg/impl' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.1/work/kdegraphics-3.2.1/ksvg' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdegraphics-3.2.1/work/kdegraphics-3.2.1' make: *** [all] Error 2 !!! ERROR: kde-base/kdegraphics-3.2.1 failed. !!! Function kde_src_compile, Line 128, Exitcode 2 !!! died running emake, kde_src_compile:make Reproducible: Always Steps to Reproduce: 1. 2. 3.
Oops, here is my emerge info: Portage 2.0.50-r1 (default-1.0, gcc-2.95.3, glibc-2.2.5-r9, 2.4.22-aa1) ================================================================= System uname: 2.4.22-aa1 i686 AMD Athlon(tm) MP 1900+ Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=i686 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.mirrors.pair.com/ http://gentoo.mirrors.pair.com/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib apm arts avi berkdb cdr crypt cups curl dga dv dvd encode esd fbcon foomaticdb gd gdbm gif gnome-libs gphoto gphoto2 gtk imap imlib java jpeg kde libg++ libwww lirc mad matrox mbox md5sum mikmod mmx motif mozaccess mozcalendar mozilla mozinterfaceinfo moznoirc mozp3p mozsvg mpeg mysql ncurses neXt nls oggvorbis opengl oss pam pda pdflib perl png postgres ppds python qt quicktime readline samba scanner sdl slang spell sse ssl svga tcpd tiff transcode truetype usb x86 xface xinerama xml2 xmms xv xvid zlib"
Methinks this is a dupe of Bug# 41467
You are right, duplicating this Bug. *** This bug has been marked as a duplicate of 41467 ***