I emerged kahakai on my new gentoo 2004.3, but it crashed with next error messages: -------------------------------------- if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/python2.3/ -I../src -DDEFAULTSTYLE=\"/usr/share/kahakai/styles/Default.style\" -DDEFAULTMENU=\"/usr/share/kahakai/menu\" -DDEFAULTACTION=\"/usr/share/kahakai/actions/action\" -DDEFAULTRCFILE=\"/usr/share/kahakai/config\" -DDEFAULTSCRIPTDIR=\"/usr/share/kahakai/scripts\" -DPKGDATADIR=\"/usr/share/kahakai\" -DDEFAULTSCRIPTCONFIG=\"/usr/share/kahakai/home_userconfig.py\" -DPKGLIBDIR=\"/usr/lib/kahakai\" -DGDB_COMMANDS_FILE='"/usr/share/kahakai/cmd.gdb"' -O3 -march=pentium4 -fomit-frame-pointer -MT Timer.o -MD -MP -MF ".deps/Timer.Tpo" \ -c -o Timer.o `test -f 'Timer.cc' || echo './'`Timer.cc; \ then mv -f ".deps/Timer.Tpo" ".deps/Timer.Po"; \ else rm -f ".deps/Timer.Tpo"; exit 1; \ fi Screen.cc: In member function `KaMenu* KaScreen::CreateDynamicMenu(std::string)': Screen.cc:893: error: `errno' undeclared (first use this function) Screen.cc:893: error: (Each undeclared identifier is reported only once for each function it appears in.) make[2]: *** [Screen.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/kahakai-0.6.2_p20040306/work/kahakai/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/kahakai-0.6.2_p20040306/work/kahakai/src' make: *** [all-recursive] Error 1 !!! ERROR: x11-wm/kahakai-0.6.2_p20040306 failed. !!! Function src_compile, Line 44, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. ---------------------------------------------------------- I have tried emerge it with USE="-truetype" ,but the error still occured. And I have tried emerge lower kahakai , the same error. Reproducible: Didn't try Steps to Reproduce: 1. 2. 3. $ emerge info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-nitro4 i686) ================================================================= System uname: 2.6.10-nitro4 i686 Intel(R) Pentium(R) 4 CPU 1.70GHz Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r2 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer" DISTDIR="/home/ftp/pub/gentoo/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.ccccom.com http://ftp.gentoo.or.kr/ ftp://mirror.averse.net/pub/gentoo http://mirror.pacific.net.au/gentoo/" MAKEOPTS="-j2" PKGDIR="/home/ftp/pub/gentoo/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/glc" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi alsa apache2 apm arts avi berkdb bitmap-fonts cdr cjk crypt cups directfb encode esd f77 fam font-server foomaticdb fortran freetype gdbm gif glc gnome gpm gtk gtk2 imagemagick imap imlib java jpeg junit kde libg++ libwww mad maildir mikmod motif mpeg mysql ncurses nls nptl nptlonly oggvorbis opengl oss pam pdflib perl png pthreads python qt quicktime readline screensaver sdl spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts userlocales x86 xml2 xmms xv zlib"
Created attachment 50061 [details, diff] kahakai-0.6.2_p20040306-compilation_fix.patch Applying this patch from src_unpack fixed it for me (i also had to use the libtool trick from bug #77576, but that's a different issue).
Thanks. I applied the patch to kahakai-0.6.2_p20040306.ebuild. Please test if this works or not.