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



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'
> tom 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:
> tom 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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]