GNOME Bugzilla – Bug 628238
libedata-book is linking against system-wide libebook library
Last modified: 2013-09-14 16:54:22 UTC
When upgrading evolution-data-server to 2.31.90, I noticed that libedata-book library had been linked against previous's version libebook.
When bumping from 2.31.91 to .92: [snip] Making install in libedata-cal make[2]: Entering directory `/home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/work/evolution-data-server-2.31.92/calendar/libedata-cal' make install-am make[3]: Entering directory `/home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/work/evolution-data-server-2.31.92/calendar/libedata-cal' make[4]: Entering directory `/home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/work/evolution-data-server-2.31.92/calendar/libedata-cal' test -z "/usr/lib64" || /bin/mkdir -p "/home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/image//usr/lib64" test -z "/usr/libexec" || /bin/mkdir -p "/home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/image//usr/libexec" test -z "/usr/include/evolution-data-server-2.32/libedata-cal" || /bin/mkdir -p "/home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/image//usr/include/evolution-data-server-2.32/libedata-cal" test -z "/usr/lib64/pkgconfig" || /bin/mkdir -p "/home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/image//usr/lib64/pkgconfig" test -z "/usr/share/dbus-1/services" || /bin/mkdir -p "/home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/image//usr/share/dbus-1/services" /bin/sh ../../libtool --mode=install /usr/bin/install -c libedata-cal-1.2.la '/home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/image//usr/lib64' /usr/bin/install -c -m 644 e-data-cal-types.h e-cal-backend.h e-cal-backend-cache.h e-cal-backend-factory.h e-cal-backend-intervaltree.h e-cal-backend-sync.h e-cal-backend-util.h e-cal-backend-sexp.h e-data-cal.h e-data-cal-common.h e-data-cal-factory.h e-cal-backend-store.h e-cal-backend-file-store.h e-data-cal-view.h '/home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/image//usr/include/evolution-data-server-2.32/libedata-cal' /usr/bin/install -c -m 644 libedata-cal-1.2.pc '/home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/image//usr/lib64/pkgconfig' /bin/sh ../../libtool --mode=install /usr/bin/install -c e-calendar-factory '/home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/image//usr/libexec' /usr/bin/install -c -m 644 org.gnome.evolution.dataserver.Calendar.service '/home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/image//usr/share/dbus-1/services' libtool: install: warning: relinking `libedata-cal-1.2.la' libtool: install: (cd /home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/work/evolution-data-server-2.31.92/calendar/libedata-cal; /bin/sh /home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/work/evolution-data-server-2.31.92/libtool --silent --tag CC --mode=relink x86_64-pc-linux-gnu-gcc -mtune=core2 -O2 -ggdb -pipe -version-info 10:0:0 -Wl,-O1 -Wl,--as-needed -Wl,--no-undefined -o libedata-cal-1.2.la -rpath /usr/lib64 libedata_cal_1_2_la-e-data-cal-enumtypes.lo libedata_cal_1_2_la-e-cal-backend.lo libedata_cal_1_2_la-e-cal-backend-cache.lo libedata_cal_1_2_la-e-cal-backend-factory.lo libedata_cal_1_2_la-e-cal-backend-intervaltree.lo libedata_cal_1_2_la-e-cal-backend-sexp.lo libedata_cal_1_2_la-e-cal-backend-sync.lo libedata_cal_1_2_la-e-cal-backend-util.lo libedata_cal_1_2_la-e-cal-backend-store.lo libedata_cal_1_2_la-e-cal-backend-file-store.lo libedata_cal_1_2_la-e-data-cal.lo libedata_cal_1_2_la-e-data-cal-view.lo ../../calendar/libegdbus/libegdbus-cal.la ../../calendar/libecal/libecal-1.2.la ../../libedataserver/libedataserver-1.2.la ../../libebackend/libebackend-1.2.la -pthread -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lical -licalss -licalvcal -lxml2 -lgconf-2 -lglib-2.0 -inst-prefix-dir /home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/image/) libtool: install: /usr/bin/install -c .libs/e-calendar-factory /home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/image//usr/libexec/e-calendar-factory libtool: relink: warning: `/usr/lib/libgio-2.0.la' seems to be moved libtool: relink: warning: `/usr/lib/libgobject-2.0.la' seems to be moved libtool: relink: warning: `/usr/lib/libgmodule-2.0.la' seems to be moved libtool: relink: warning: `/usr/lib/libgthread-2.0.la' seems to be moved libtool: relink: warning: `/usr/lib/libxml2.la' seems to be moved libtool: relink: warning: `/usr/lib/libgconf-2.la' seems to be moved libtool: relink: warning: `/usr/lib/libglib-2.0.la' seems to be moved .libs/libedata_cal_1_2_la-e-cal-backend-file-store.o: In function `e_cal_util_get_component_occur_times': /home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/work/evolution-data-server-2.31.92/calendar/libedata-cal/../../calendar/libecal/e-cal-util.c:1218: undefined reference to `e_cal_recur_ensure_end_dates' /home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/work/evolution-data-server-2.31.92/calendar/libedata-cal/../../calendar/libecal/e-cal-util.c:1273: undefined reference to `e_cal_recur_obtain_enddate' /home/tmp/portage/gnome-extra/evolution-data-server-2.31.92/work/evolution-data-server-2.31.92/calendar/libedata-cal/../../calendar/libecal/e-cal-util.c:1290: undefined reference to `e_cal_recur_obtain_enddate' collect2: ld returned 1 exit status [/snip]
*** Bug 629806 has been marked as a duplicate of this bug. ***
I also hit this bug that is preventing me from updating to 2.32 :-/
Created attachment 172645 [details] [review] 0001-Fix-linking-against-out-of-tree-e-d-s.patch Ok, took a while and I really feel that it is actually a workaround instead a real fix, as it clearly seems to be a libtool cock-up...
That looks right, thanks for the patch. Go ahead and commit it to master and gnome-2-32 branches.
(In reply to comment #5) > That looks right, thanks for the patch. Go ahead and commit it to master and > gnome-2-32 branches. Committed (unfortunately forgot to add bug number in commit message for master :S)