gcc -c -I. -I./.. -I./../dbinc -D_GNU_SOURCE -D_REENTRANT -O3 -march=opteron -pipe -fomit-frame-pointer ../mutex/mut_tas.c -fPIC -DPIC -o .libs/mut_tas.lo In file included from ./db_int.h:465, from ../mutex/mut_tas.c:38: ./../dbinc/mutex.h:819: error: parse error before "tsl_t" ./../dbinc/mutex.h:819: warning: no semicolon at end of struct or union ./../dbinc/mutex.h:836: error: parse error before '}' token In file included from ./db_int.h:466, from ../mutex/mut_tas.c:38: ./../dbinc/region.h:145: error: field `mutex' has incomplete type ./../dbinc/region.h:190: error: field `mutex' has incomplete type ../mutex/mut_tas.c: In function `__db_tas_mutex_init_eds': ../mutex/mut_tas.c:64: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c:65: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c:66: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c:78: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c:84: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c:87: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c:91: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c: In function `__db_tas_mutex_lock_eds': ../mutex/mut_tas.c:110: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c:116: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c:120: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c:153: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c:155: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c: In function `__db_tas_mutex_unlock_eds': ../mutex/mut_tas.c:178: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c:190: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c: In function `__db_tas_mutex_destroy_eds': ../mutex/mut_tas.c:205: error: dereferencing pointer to incomplete type make[3]: *** [mut_tas.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/evolution-data-server-1.0.3/work/evolution-data-server-1.0.3/libdb/dist' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/evolution-data-server-1.0.3/work/evolution-data-server-1.0.3/libdb' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/evolution-data-server-1.0.3/work/evolution-data-server-1.0.3' make: *** [all] Error 2 !!! ERROR: gnome-extra/evolution-data-server-1.0.3 failed. Reproducible: Always Steps to Reproduce: 1. 2. 3. System uname: 2.6.10-gentoo-r1 x86_64 AMD Opteron(tm) Processor 142 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.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O3 -march=opteron -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=opteron -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.chem.wisc.edu/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X acpi alsa apache2 apm audiofile avi bash-completion berk-db berkdb bitmap-fonts bmp bonobo bzlib cdr crypt cups dvd dvdr encode esd evo f77 fam fbcon flac foomaticdb fortran gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile icq imagemagick imlib ipv6 jack java jp2 jpeg kde libwww lzw lzw-tiff mad maildir mbox mime mimemmap mozilla mpeg msn multilib mysql ncurses nls odbc offensive oggvorbis openal opengl oscar oss pam pda pdflib perl php png ppds python qt quicktime readline samba sdl sndfile snmp soap sockets sox speex spell ssl tcltk tcpd theora tidy tiff truetype usb userlocales videos wxwindows xine xinerama xml xml2 xmms xpm xprint xrandr xv xvid zlib"
Same thing here on AMD64...
It's the evolution-data-server-1.0.2-amd64_mutex.patch that causes the problem. Don't apply the patch and the application compliles cleanly.
Same issue here on AMD64. Removing the patch fixed it for me also.
Thanks for your reports, I've verified why it works (the previous amd64 definition has been removed, and there's just the x86_64 one now). The patch has been removed from evolution-data-server-1.0.3 in CVS. Please 'emerge sync', and remerge evolution-data-server. Thanks, and thanks again for the reports.