evolution-data-server-1.0.2 compilation dies on my box with this error: x86_64-pc-linux-gnu-gcc -c -I. -I./.. -I./../dbinc -D_GNU_SOURCE -D_REENTRANT -march=athlon64 -m64 -O3 -fomit-frame-pointer -pipe ../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:760: error: redefinition of typedef 'tsl_t' ./../dbinc/mutex.h:735: error: previous declaration of 'tsl_t' was here In file included from ./db_int.h:465, from ../mutex/mut_tas.c:38: ./../dbinc/mutex.h:766:1: warning: "MUTEX_SET" redefined ./../dbinc/mutex.h:741:1: warning: this is the location of the previous definition ../mutex/mut_tas.c: In function `__db_tas_mutex_lock_eds': ../mutex/mut_tas.c:120: warning: matching constraint does not allow a register ../mutex/mut_tas.c:120: warning: matching constraint does not allow a register make[3]: *** [mut_tas.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/evolution-data-server-1.0.2/work/evolution-data-server-1.0.2/libdb/dist' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/evolution-data-server-1.0.2/work/evolution-data-server-1.0.2/libdb' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/evolution-data-server-1.0.2/work/evolution-data-server-1.0.2' make: *** [all] Error 2 !!! ERROR: gnome-extra/evolution-data-server-1.0.2 failed. !!! Function gnome2_src_compile, Line 40, Exitcode 2 !!! compile failure !!! If you need support, post the topmost build error, NOT this status message. emerge --info output: Portage 2.0.51_rc9 (default-linux/amd64/2004.3, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.9-rc4 x86_64) ================================================================= System uname: 2.6.9-rc4 x86_64 AMD Athlon(tm) 64 Processor 2800+ Gentoo Base System version 1.5.3 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-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -m64 -O3 -fomit-frame-pointer -pipe" 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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -m64 -O3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox" GENTOO_MIRRORS="ftp://cs.ubishops.ca:2121/pub/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" USE="amd64 X aalib acpi alsa arts berkdb bitmap-fonts bzlib caps cdparanoia cdr crypt cups doc dts dv dvd dvdr dvdread encode esd exif faac faad fam fftw flac foomaticdb gdbm gif gimp gmp gnome gpm gstreamer gtk gtk2 idea imagemagick imlib imlib2 java jp2 jpeg libcaca libwww live lzo lzw lzw-tiff mad matroska mikmod mmap mng mozdevelop mozilla mozsvg multilib mythtv native ncurses network nls no-old-linux no_wxgtk1 noplugin nptl nptlonly offensive oggvorbis openal opengl pam pdflib perl png python qt radeon readline rtc samba sdl shared slang sndfile speex spell ssl svg tcpd tetex tga theora tiff transcode truetype unicode usb userlocales v4l v4l2 wmf wxwindows xchattext xml2 xmms xpm xprint xrandr xv xvid xvmc zlib"
Same problem here. I'm using the same profile and the same versions of gcc and glibc as the reporter.
Same here
It seems to me as if this patch has been applied twice: http://toshok.org/libdb-pthread-patch.diff
I just removed it on time from libdb/dbinc/mutex.h manually, now compiles.
I can confirm this Compiles when taking out the duplicate part in mutex.h
does amd64 have its own mutex.h? i've committed a workaround for amd64, because removing mutex.h doesn't work for x86 at all. can you please confirm/test?
As far as i can see it makes it even worse: This morning i had the first error, now i have the following one: evolution-data-server has been configured as follows: LDAP support: no Gtk Doc: no make all-recursive make[1]: Entering directory `/var/tmp/portage/evolution-data-server-1.0.2/work/evolution-data-server-1.0.2' Making all in libdb make[2]: Entering directory `/var/tmp/portage/evolution-data-server-1.0.2/work/evolution-data-server-1.0.2/libdb' Making all in dist make[3]: Entering directory `/var/tmp/portage/evolution-data-server-1.0.2/work/evolution-data-server-1.0.2/libdb/dist' /bin/sh ./libtool --mode=compile x86_64-pc-linux-gnu-gcc -c -I. -I./.. -I./../dbinc -D_GNU_SOURCE -D_REENTRANT -O2 -pipe -fPIC ../mutex/mut_tas.c mkdir .libs/mut_tas.lo x86_64-pc-linux-gnu-gcc -c -I. -I./.. -I./../dbinc -D_GNU_SOURCE -D_REENTRANT -O2 -pipe -fPIC ../mutex/mut_tas.c -fPIC -DPIC -o .l In file included from ../mutex/mut_tas.c:38: db_int.h:465:25: dbinc/mutex.h: No such file or directory 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:64: error: `MUTEX_MPOOL' undeclared (first use in this function) ../mutex/mut_tas.c:64: error: (Each undeclared identifier is reported only once ../mutex/mut_tas.c:64: error: for each function it appears in.) ../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:76: error: `MUTEX_THREAD' undeclared (first use in this function) ../mutex/mut_tas.c:78: error: dereferencing pointer to incomplete type ../mutex/mut_tas.c:78: error: `MUTEX_IGNORE' undeclared (first use in this function) ../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:91: error: `MUTEX_INITED' undeclared (first use in this function) ../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:110: error: `MUTEX_IGNORE' undeclared (first use in this function) ../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:178: error: `MUTEX_IGNORE' undeclared (first use in this function) ../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 ../mutex/mut_tas.c:205: error: `MUTEX_IGNORE' undeclared (first use in this function) ../mutex/mut_tas.c:208: 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.2/work/evolution-data-server-1.0.2/libdb/dist' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/evolution-data-server-1.0.2/work/evolution-data-server-1.0.2/libdb' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/evolution-data-server-1.0.2/work/evolution-data-server-1.0.2' make: *** [all] Error 2 !!! ERROR: gnome-extra/evolution-data-server-1.0.2 failed. !!! Function gnome2_src_compile, Line 40, Exitcode 2 !!! compile failure !!! If you need support, post the topmost build error, NOT this status message. Also on amd64 emerge info: Portage 2.0.51_rc9 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20041006-r0, 2.6.8-gentoo-r9 x86_64) ================================================================= System uname: 2.6.8-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.5.3 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-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -fPIC" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -fPIC" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks" GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.du.se/pub/os/gentoo http://gentoo.mirror.sdv.fr http://ftp.gentoo.skynet.be/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X amd64 apm arts avi berkdb bitmap-fonts cdr crypt encode esd f77 foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mikmod motif mozilla mpeg ncurses nls nogcj oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sdl slang spell ssl tcpd tetex truetype xml2 xmms xprint xv zlib"
No, i did no remove the whole file, but - as Benjamin Schindler said - removed the duplicate definitions for x86_64 in the mutex.h
d'oh! sorry, i read the bug all wrong .. committing the PROPER fix for this .. hopefully this time its correct!
*** Bug 67921 has been marked as a duplicate of this bug. ***
Fixed for me now
Works for me..compiles and runs fine.
thanks for testing, i'm assuming this is fixed now for everyone here.
looks like this bug has reared its ugly head again...I just commented out # epatch ${FILESDIR}/${PN}-1.0.2-amd64_mutex.patch from /usr/portage/gnome-extra/evolution-data-server/evolution-data-server-1.0.3.ebuild and fixed a broken emerge.