Re: [Evolution-hackers] Can't build evolution-data-server master on ubuntu maverick

2010-09-10 Thread Thomas Mittelstaedt
Am Freitag, den 10.09.2010, 06:30 +0200 schrieb Thomas Mittelstaedt:
 Am Montag, den 06.09.2010, 08:18 +0200 schrieb Milan Crha:
  On Sat, 2010-09-04 at 05:30 +0200, Thomas Mittelstaedt wrote:
   .libs/libebook_1_2_la-e-book.o: In function
   `e_book_new_default_addressbook':
   /home/tuxdistro/src/evolution/obj/evolution-data-server/addressbook/libebook/../../../../evolution-data-server/addressbook/libebook/e-book.c:3329:
undefined reference to `e_source_list_peek_default_source'
  
  Hi,
  I suppose you do not have latest master sources of the
  evolution-data-server. The missing function is part of
  libedataserver/e-source-list.c and it links to libedataserver-1.2.la,
  which I see it used in the Makefile.am in addressbook/libebook. The
  function was added just recently.
  Bye,
  Milan
  
  ___
  evolution-hackers mailing list
  evolution-hackers@gnome.org
  To change your list options or unsubscribe, visit ...
  http://mail.gnome.org/mailman/listinfo/evolution-hackers
 
 
 Indeed I did not have the latest sources even though I switched branches
 via 
  git branch master
 followed by a 
 git pull origing master
 
 I probably misread the message saying something like ... your tree is
 ahead by xxx commits. 
 A 
 git reset --hard origin/master
 fixed it.
 
 But still, evolution-data-server/addressbook/libebook does not install:
 
 make[1]: Verlasse Verzeichnis
 '/home/tom/src/evolution/obj/evolution-data-server/addressbook/libebook'
 t...@ubuntu:~/src/evolution/obj/evolution-data-server/addressbook/libebook$ 
 make install
 make  install-am
 make[1]: Betrete Verzeichnis
 '/home/tom/src/evolution/obj/evolution-data-server/addressbook/libebook'
 make[2]: Betrete Verzeichnis
 '/home/tom/src/evolution/obj/evolution-data-server/addressbook/libebook'
 test -z /opt/evo/lib || /bin/mkdir -p /opt/evo/lib
  /bin/bash ../../libtool   --mode=install /usr/bin/install -c
 libebook-1.2.la '/opt/evo/lib'
 libtool: install: warning: relinking `libebook-1.2.la'
 libtool: install:
 (cd /home/tom/src/evolution/obj/evolution-data-server/addressbook/libebook; 
 /bin/bash /home/tom/src/evolution/obj/evolution-data-server/libtool  --silent 
 --tag CC --mode=relink ccache gcc -g -version-info 13:1:3 -Wl,--no-undefined 
 -o libebook-1.2.la -rpath /opt/evo/lib libebook_1_2_la-e-book-marshal.lo 
 libebook_1_2_la-e-address-western.lo libebook_1_2_la-e-book-query.lo 
 libebook_1_2_la-e-book-view.lo libebook_1_2_la-e-book.lo 
 libebook_1_2_la-e-contact.lo libebook_1_2_la-e-destination.lo 
 libebook_1_2_la-e-name-western.lo libebook_1_2_la-e-vcard.lo 
 ../../addressbook/libegdbus/libegdbus-book.la ../../camel/libcamel-1.2.la 
 ../../libedataserver/libedataserver-1.2.la -pthread -lgio-2.0 -lgobject-2.0 
 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lgconf-2 -lglib-2.0 -pthread 
 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lnss3 
 -lnssutil3 -lsmime3 -lssl3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lsqlite3 
 -lz )
 .libs/libebook_1_2_la-e-book.o: In function
 `e_book_new_default_addressbook':
 /home/tom/src/evolution/obj/evolution-data-server/addressbook/libebook/../../../../evolution-data-server/addressbook/libebook/e-book.c:3329:
  undefined reference to `e_source_list_peek_default_source'
 collect2: ld returned 1 exit status
 libtool: install: error: relink `libebook-1.2.la' with the above command
 before installing it
 make[2]: *** [install-libLTLIBRARIES] Fehler 1
 make[2]: Verlasse Verzeichnis
 '/home/tom/src/evolution/obj/evolution-data-server/addressbook/libebook'
 make[1]: *** [install-am] Fehler 2
 make[1]: Verlasse Verzeichnis
 '/home/tom/src/evolution/obj/evolution-data-server/addressbook/libebook'
 
 Looking at the installed libraries, nm tells me that the function indeed
 is undefined:
 t...@ubuntu:~/src/evolution/obj/evolution-data-server/addressbook/libebook$ 
 nm /opt/evo/lib/libebook-1.2.so /opt/evo/lib/libedataserver-1.2.so |grep 
 peek_def
  U e_source_list_peek_default_source
 00015eed T e_source_list_peek_default_source
 
 But there are more functions like e_source_list... which are undefined
 according to nm, but about which the linker does not complain.
 
 
 -- 
 thomas
 
 
 ___
 evolution-hackers mailing list
 evolution-hackers@gnome.org
 To change your list options or unsubscribe, visit ...
 http://mail.gnome.org/mailman/listinfo/evolution-hackers


I think, it's the -no-undefined linker flag that's causing problems on
my ubuntu maverick box:
diff --git a/configure.ac b/configure.ac
index 0df5bdc..f4fd0ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -199,7 +199,8 @@ dnl -Wstrict-aliasing=2
 AM_CPPFLAGS=$WARNING_FLAGS -fno-strict-aliasing
 AC_SUBST(AM_CPPFLAGS)
 
-LDFLAGS=$LDFLAGS -Wl,--no-undefined
+dnl LDFLAGS=$LDFLAGS -Wl,--no-undefined
+LDFLAGS=$LDFLAGS
 
 dnl **
 dnl Initialize maintainer mode


___

Re: [Evolution-hackers] Can't build evolution-data-server master on ubuntu maverick

2010-09-10 Thread Thomas Mittelstaedt
Am Freitag, den 10.09.2010, 09:36 +0200 schrieb Thomas Mittelstaedt:
 Am Freitag, den 10.09.2010, 06:30 +0200 schrieb Thomas Mittelstaedt:
  Am Montag, den 06.09.2010, 08:18 +0200 schrieb Milan Crha:
   On Sat, 2010-09-04 at 05:30 +0200, Thomas Mittelstaedt wrote:
.libs/libebook_1_2_la-e-book.o: In function
`e_book_new_default_addressbook':
/home/tuxdistro/src/evolution/obj/evolution-data-server/addressbook/libebook/../../../../evolution-data-server/addressbook/libebook/e-book.c:3329:
 undefined reference to `e_source_list_peek_default_source'
   
 Hi,
   I suppose you do not have latest master sources of the
   evolution-data-server. The missing function is part of
   libedataserver/e-source-list.c and it links to libedataserver-1.2.la,
   which I see it used in the Makefile.am in addressbook/libebook. The
   function was added just recently.

Well, resolved it finally. The problem was the existing 2.30
installation on maverick. There was a libedataserverso in /usr/lib.
Using -L/opt/evo/lib for autogen.sh
solved that problem:

 PKG_CONFIG_PATH=/opt/evo/lib/pkgconfig/  CC='ccache gcc' CFLAGS=-g
LDFLAGS=-L/opt/evo/lib   bash  ../../evolution/autogen.sh
--prefix='/opt/evo' --disable-deprecated-warning-flags 

Then some test...-files failed to compile. I had to do the following:


diff --git a/calendar/backends/file/Makefile.am
b/calendar/backends/file/Makefile.am
index c672157..b2e2fdf 100644
--- a/calendar/backends/file/Makefile.am
+++ b/calendar/backends/file/Makefile.am
@@ -44,6 +44,9 @@ test_interval_searches_LDADD = \
 
 test_interval_searches_CPPFLAGS = \
$(AM_CPPFLAGS)  \
+   -I$(top_srcdir) \
+   -I$(top_builddir)   \
+   -I$(top_srcdir)/calendar\
-I$(top_builddir)/calendar  \
$(EVOLUTION_CALENDAR_CFLAGS)\
-DTEST_QUERY_RESULT=1
diff --git a/calendar/libedata-cal/Makefile.am
b/calendar/libedata-cal/Makefile.am
index f88e24e..182d68d 100644
--- a/calendar/libedata-cal/Makefile.am
+++ b/calendar/libedata-cal/Makefile.am
@@ -121,12 +121,15 @@ e_calendar_factory_LDADD =
\
 test_e_sexp_SOURCES = e-cal-backend-sexp.c e-cal-backend-sexp.h
 test_e_sexp_CPPFLAGS = \
$(AM_CPPFLAGS)  \
+   -I$(top_srcdir) \
-I$(top_srcdir)/calendar\
-I$(top_builddir)/calendar  \
$(EVOLUTION_CALENDAR_CFLAGS)\
-DTESTER=1
 
-test_e_sexp_LDADD = libedata-cal-1.2.la $(E_DATA_SERVER_LIBS)
+test_e_sexp_LDADD = libedata-cal-1.2.la \
+   $(top_builddir)/libedataserver/libedataserver-1.2.la
+###$(E_DATA_SERVER_LIBS)
 
 test_intervaltree_SOURCES = test-intervaltree.c
e-cal-backend-intervaltree.c
 
===

Finally, I got evolution 2.31 to run, but the restoration of ics files
from my 2.28 version is a problem. The memo (notes) ics-files are
somehow not recognized, even if they are set correctly in the gconf
keys. 

-- 
thomas


___
evolution-hackers mailing list
evolution-hackers@gnome.org
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-hackers


Re: [Evolution-hackers] Can't build evolution-data-server master on ubuntu maverick

2010-09-10 Thread Thomas Mittelstaedt
Am Samstag, den 11.09.2010, 02:30 +0200 schrieb Thomas Mittelstaedt:
 Am Freitag, den 10.09.2010, 09:36 +0200 schrieb Thomas Mittelstaedt:
  Am Freitag, den 10.09.2010, 06:30 +0200 schrieb Thomas Mittelstaedt:
   Am Montag, den 06.09.2010, 08:18 +0200 schrieb Milan Crha:
On Sat, 2010-09-04 at 05:30 +0200, Thomas Mittelstaedt wrote:
 .libs/libebook_1_2_la-e-book.o: In function
 `e_book_new_default_addressbook':
 /home/tuxdistro/src/evolution/obj/evolution-data-server/addressbook/libebook/../../../../evolution-data-server/addressbook/libebook/e-book.c:3329:
  undefined reference to `e_source_list_peek_default_source'

...
 
 Finally, I got evolution 2.31 to run, but the restoration of ics files
 from my 2.28 version is a problem. The memo (notes) ics-files are
 somehow not recognized, even if they are set correctly in the gconf
 keys. 
 

I tried the restoration using the installed version 2.30, having made
sure, that services in /usr/lib are called instead of the ones of 2.31
in /opt/evo, and the app would restore memo ics files correctly, plus
tasks and calendars.
Then I tried to use this new .evolution directory with 2.31, having
switched to the right services again and 2.31 doesn't show data for
those memos, even though the list items in the left pane show up, but
no entries.


-- 
thomas


___
evolution-hackers mailing list
evolution-hackers@gnome.org
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-hackers