Hi, I am trying to compile waimea on an old laptop but compilation fails with the error message pasted below. Below distcc is enabled but set to localhost only. I tried with and without distcc enabled... xorg was x11-base/xorg-x11-6.8.1.902 but i just upgraded to 904 and will give it another try - the system is a P166MMX...! ;-( emerge waimea [...] if i586-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -DWAIMEA_PATH=\"/usr/share/waimea\" -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/X11R6/include -I/usr/include/libpng12 -I/usr/X11R6/include -DSHAPE -DRANDR -DPNG -I/usr/include/libpng12 -DXCURSOR -march=pentium-mmx -Os -pipe -fstack-protector -fomit-frame-pointer -MT Resources.o -MD -MP -MF ".deps/Resources.Tpo" \ -c -o Resources.o `test -f 'Resources.cc' || echo './'`Resources.cc; \ then mv -f ".deps/Resources.Tpo" ".deps/Resources.Po"; \ else rm -f ".deps/Resources.Tpo"; exit 1; \ fi Waimea.cc: In constructor `Waimea::Waimea(char**, char**)': Waimea.cc:198: error: `XRenderQueryExtension' undeclared (first use this function) Waimea.cc:198: error: (Each undeclared identifier is reported only once for each function it appears in.) Waimea.cc:200: error: `XRenderQueryVersion' undeclared (first use this function) distcc[11411] ERROR: compile Waimea.cc on localhost failed make[2]: *** [Waimea.o] Error 1 make[2]: *** Waiting for unfinished jobs.... Screen.cc: In member function `Visual* WaScreen::findARGBVisual()': Screen.cc:336: error: `XRenderPictFormat' undeclared (first use this function) Screen.cc:336: error: (Each undeclared identifier is reported only once for each function it appears in.) Screen.cc:336: error: `format' undeclared (first use this function) Screen.cc:350: error: `XRenderFindVisualFormat' undeclared (first use this function) Screen.cc:351: error: `PictTypeDirect' undeclared (first use this function) Screen.cc: In member function `WaSurface* WaScreen::rgbaToWaSurface(unsigned char*, unsigned int, unsigned int)': Screen.cc:1547: error: `cairo_xlib_surface_create' undeclared (first use this function) distcc[11413] ERROR: compile Screen.cc on localhost failed make[2]: *** [Screen.o] Error 1 make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/waimea-0.5.0_pre040506/work/waimea-0.5.0' make: *** [all] Error 2 !!! ERROR: x11-wm/waimea-0.5.0_pre040506 failed. !!! Function src_compile, Line 43, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge waimea 2. 3. emerge info: Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.11-rc1 i586) ================================================================= System uname: 2.6.11-rc1 i586 Pentium MMX Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jan 14 2005, 06:34:33)] distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium-mmx -Os -pipe -fstack-protector -fomit-frame-pointer" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium-mmx -Os -pipe -fstack-protector -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm avi bash-completion berkdb bitmap-fonts crypt cups dga divx4linux encode exif f77 fbcon font-server foomaticdb fortran gdbm gif gphoto2 gpm gtk gtk2 hbci icq imagemagick imap imlib ipv6 irda javascript jce jpeg libg++ libwww mad maildir mikmod mmx motif moznoirc mozsvg mpeg ncurses nls ntpl oggvorbis opengl oss pam pcmcia pdflib perl pic pie png pnp ppds python qt quicktime readline real sdl spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts userlocales xine xml2 xmms xv xvid xvmc zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
same with xorg .904
Created attachment 54402 [details, diff] Patch for waimea to compile. This is the patch you need to include in ${FILESDIR} for the ebuild to compile.
Created attachment 54403 [details, diff] Patch against current ebuild in portage for developer reference. This portage is just for developers reference. This is, is not needed to compile waimea. If you want to compile waimea please use the provided ebuild.
Created attachment 54404 [details] Ebuild with patch applied. This is simply an ebuild that applies the patch provided. You need to put the patch provided in comment #2 into ${FILESDIR}, this is, into x11-wm/waimea/files Please try it, and confirm it compiles, thanks :-)
Hi, sorry for reporting back so late... Your patch worked fine. Waimea compiled and installed fine now. Thanks a lot! And please add an updated ebuild to CVS. ;-)
Thanks for the patch, Francisco. Actually, the patch is needed when you use >=cairo-0.3 (<=cairo-0.2-r1 doesn't need it). I modified the ebuild to apply it only if you have >=cairo-0.3 is installed. Hope this solves the problem.