when trying to emerge evolution 2.0.1 the following occurs: ... source='camel-service.c' object='camel-service.lo' libtool=yes \ depfile='.deps/camel-service.Plo' tmpdepfile='.deps/camel-service.TPlo' \ depmode=gcc3 /bin/sh ../depcomp \ /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -I../intl -I../e-util -DCAMEL_LIBEXECDIR=\""/usr/libexec/evolution/2.0/camel"\" -DCAMEL_PROVIDERDIR=\""/usr/lib/evolution/2.0/camel-providers"\" -DG_LOG_DOMAIN=\"camel\" -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gal-2.2 -I/usr/include/gtk-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libxml2 -I/usr/include/libglade-2.0 -I/usr/include/libgnomeprint-2.2 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/libart-2.0 -I/usr/lib/mozilla/include/nspr -I/usr/lib/mozilla/include/nss -O2 -march=pentium4 -pipe -fomit-frame-pointer -Wall -Wmissing-prototypes -Wno-sign-compare -c -o camel-service.lo `test -f 'camel-service.c' || echo './'`camel-service.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -I../intl -I../e-util -DCAMEL_LIBEXECDIR=\"/usr/libexec/evolution/2.0/camel\" -DCAMEL_PROVIDERDIR=\"/usr/lib/evolution/2.0/camel-providers\" -DG_LOG_DOMAIN=\"camel\" -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gal-2.2 -I/usr/include/gtk-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libxml2 -I/usr/include/libglade-2.0 -I/usr/include/libgnomeprint-2.2 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/libart-2.0 -I/usr/lib/mozilla/include/nspr -I/usr/lib/mozilla/include/nss -O2 -march=pentium4 -pipe -fomit-frame-pointer -Wall -Wmissing-prototypes -Wno-sign-compare -c camel-service.c -MT camel-service.lo -MD -MP -MF .deps/camel-service.TPlo -fPIC -DPIC -o .libs/camel-service.o camel-service.c: In function `camel_getaddrinfo': camel-service.c:897: warning: assignment from incompatible pointer type camel-service.c:900: error: assignment of read-only member `ai_family' make[3]: *** [camel-service.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/evolution-2.0.1/work/evolution-2.0.1/camel' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/evolution-2.0.1/work/evolution-2.0.1/camel' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/evolution-2.0.1/work/evolution-2.0.1' make: *** [all] Error 2 !!! ERROR: mail-client/evolution-2.0.1 failed. !!! Function src_compile, Line 122, Exitcode 2 !!! make failed Reproducible: Always Steps to Reproduce: 1. did an emerge sync to get lastest portage tree 2. emerge evolution (since is unmasked and ~x86 in package.keywords) 3. Expected Results: emerged with no errors Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8.1) ================================================================= System uname: 2.6.8.1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /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="-O3 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://206.75.217.181/ http://mirror.datapipe.net/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="X acpi alsa avi berkdb bitmap-fonts cdr cups eds encode evo fam gdbm gif gimpprint gnome gpm gtk gtk2 hal imlib java jpeg libg++ mad mmx motif mozilla moznocompose moznoirc moznomail mpeg ncurses nls oggvorbis opengl pam pdflib perl png ppds python quicktime readline sdl slang spell sse sse2 ssl svga tcpd tiff truetype wmf x86 xml2 xmms xpm xprint xv zlib"
Same here with Portage 2.0.51_rc7 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r5 i686) ================================================================= System uname: 2.6.8-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1500MHz Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 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 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium-m -mno-sse2 -O2 -pipe" CHOST="i686-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="-march=pentium-m -mno-sse2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks fixpackages sandbox sfperms" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/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.europe.gentoo.org/gentoo-portage" USE="X acpi alsa avi berkdb bitmap-fonts cdr crypt cscope cups dvd dvdr eds encode esd evo foomaticdb gdbm gif gnome gpm gtk gtk2 hal howl imlib java jpeg libg++ libwww mad mikmod mmx mono motif mozilla moznocompose moznoirc moznomail mpeg ncurses nls nntp oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell sse ssl svg svga tcltk tcpd tiff truetype x86 xml2 xmms xprint xv zlib"
while testing locally I figured that configuring with --enable-ipv6=yes, thus enabling ipv6-support, made SRCDIR/camel compile. I enabled ipv6 USE for evoution and am merging it right now. Will report back... :-)
*** Bug 66027 has been marked as a duplicate of this bug. ***
examining the error more in detail shows why this cannot compile: camel-service.c:900: error: assignment of read-only member `ai_family' fails because the assignment is tried on a const-declared pointer. I have a patch created which removes this const-declaration and I am merging evo-2.0.1 with this right now - with a modified ebuild. I will create attachments with the patch and the r1-ebuild once I know if doing so is a good idea... ;-)
Created attachment 40873 [details, diff] patch which removes unwanted(?) const declaration add it do files-dir
Created attachment 40875 [details] remove this please - I'm sorry don't forget 'ebuild evolution-2.0.1-r1.ebuild digest' ;-)
Created attachment 40876 [details] wrong dir :-/ this is the ebuild... (damnit)
there's a different fix in cvs: http://cvs.gnome.org/viewcvs/evolution/camel/camel-service.c?r1=1.92&r2=1.93 --- camel-service.c 2004-10-01 15:18:12.569172112 -0500 +++ camel-service.c.new 2004-10-01 15:18:44.004393232 -0500 @@ -897,7 +897,7 @@ hints = &myhints; } - hints->ai_family = AF_INET; + ((struct addrinfo *) hints)->ai_family = AF_INET; #endif msg = g_malloc0(sizeof(*msg));
:-) nice - this is just casting the "constness" away. Not really different to my "solution" but oh well; I am no evo-dev at all... ;-) I just thought that putting the constness away for sure is the more clear solution so I chose that option.
link to upstream bug : http://bugzilla.ximian.com/show_bug.cgi?id=67028
*** Bug 66127 has been marked as a duplicate of this bug. ***
btw, I think files/evolution-1.5.93-addressbooklibs.patch is no longer needed with 2.0.1
I can confirm files/evolution-1.5.93-addressbooklibs.patch is no longer needed. evolution-2.0.1/addressbook/gui/component/Makefile.in: [snip] libevolution_addressbook_la_LIBADD = \ $(SMIME_LIB) \ $(top_builddir)/addressbook/printing/libecontactprint.la \ $(top_builddir)/addressbook/gui/component/select-names/libeselectnames.la \ $(top_builddir)/camel/libcamel.la \ $(top_builddir)/shell/libeshell.la \ [snip]
I apologize about the above comment -- I was looking at the patched version. The statement is still true, though. $(top_builddir)/camel/libcamel.la is the last lib listed (line 306).
fixed in 2.0.1 now. oddly, i didn't get any problems compiling with gcc-3.4.2 without the patch. thanks for the report tho.
*** Bug 66278 has been marked as a duplicate of this bug. ***