Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66024 - evolution 2.0.1 fails to compile
Summary: evolution 2.0.1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
: 66027 66127 66278 (view as bug list)
Depends on:
Blocks: 67824
  Show dependency tree
 
Reported: 2004-10-01 07:38 UTC by Alex Murray
Modified: 2004-10-16 17:44 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch which removes unwanted(?) const declaration (evolution-2.0.1-camel-service.patch,1.24 KB, patch)
2004-10-01 10:02 UTC, Schricker
Details | Diff
remove this please - I'm sorry (digest-evolution-2.0.1-r1,70 bytes, text/plain)
2004-10-01 10:03 UTC, Schricker
Details
wrong dir :-/ this is the ebuild... (damnit) (evolution-2.0.1-r1.ebuild,3.67 KB, text/plain)
2004-10-01 10:04 UTC, Schricker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Murray 2004-10-01 07:38:55 UTC
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"
Comment 1 Sebastian Bergmann (RETIRED) gentoo-dev 2004-10-01 07:47:00 UTC
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"
Comment 2 Schricker 2004-10-01 09:01:40 UTC
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...
:-)
Comment 3 Sven Wegener gentoo-dev 2004-10-01 09:14:23 UTC
*** Bug 66027 has been marked as a duplicate of this bug. ***
Comment 4 Schricker 2004-10-01 09:44:34 UTC
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... ;-)
Comment 5 Schricker 2004-10-01 10:02:16 UTC
Created attachment 40873 [details, diff]
patch which removes unwanted(?) const declaration

add it do files-dir
Comment 6 Schricker 2004-10-01 10:03:27 UTC
Created attachment 40875 [details]
remove this please - I'm sorry

don't forget 'ebuild evolution-2.0.1-r1.ebuild digest'
;-)
Comment 7 Schricker 2004-10-01 10:04:29 UTC
Created attachment 40876 [details]
wrong dir :-/ this is the ebuild... (damnit)
Comment 8 j. 2004-10-01 13:29:33 UTC
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));
Comment 9 Schricker 2004-10-01 13:40:19 UTC
:-)
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.
Comment 10 Stephane Loeuillet 2004-10-02 03:45:07 UTC
link to upstream bug :
http://bugzilla.ximian.com/show_bug.cgi?id=67028
Comment 11 Sven Wegener gentoo-dev 2004-10-02 08:57:05 UTC
*** Bug 66127 has been marked as a duplicate of this bug. ***
Comment 12 Olivier Crete (RETIRED) gentoo-dev 2004-10-02 12:22:49 UTC
btw, I think files/evolution-1.5.93-addressbooklibs.patch is no longer needed with  2.0.1
Comment 13 Mike Chavoustie 2004-10-02 12:35:08 UTC
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]
Comment 14 Mike Chavoustie 2004-10-02 12:48:47 UTC
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).

Comment 15 Alastair Tse (RETIRED) gentoo-dev 2004-10-02 16:12:47 UTC
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.
Comment 16 Alexandre Rostovtsev (RETIRED) gentoo-dev 2004-10-03 23:22:11 UTC
*** Bug 66278 has been marked as a duplicate of this bug. ***