diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2012-11-19 22:01:56 +0100 |
---|---|---|
committer | Seif Lotfy <seif@lotfy.com> | 2012-11-20 10:58:54 +0100 |
commit | 8ba01c4a990b074298bdab915ac6a095e189e474 (patch) | |
tree | 9a391a194f58ac6c62392e690ae80bedf20c8dad | |
parent | 53200ce84a5e3c3166efe976e4cba544a7ec2127 (diff) | |
download | zeitgeist-8ba01c4a990b074298bdab915ac6a095e189e474.tar.gz |
introspection: fix Zeitgeist-2.0.typelib loading
Loading Zeitgeist-2.0.typelib mysteriously failed, for
example we ran into the following message when running:
$ LD_LIBRARY_PATH="~/fdo/lib/:$LD_LIBRARY_PATH=" \
> GI_TYPELIB_PATH="~/fdo/lib/girepository-1.0" \
> python2 -c "from gi.repository import Zeitgeist; log = Zeitgeist.Log.get_default(); print log"
WARNING **: Failed to load shared library 'libzeitgeist-2.0.so.1' referenced by the typelib: libzeitgeist-2.0.soso: cannot open shared object file: No such file or directory
Digging a bit and running the above again with LD_DEBUG=libs shows
the reason why g_module_open() on libzeitgeist-2.0.so.1 failed:
...~/fdo/lib/libzeitgeist-2.0.so.1: error: symbol lookup error: undefined symbol: g_cclosure_marshal_VOID__OBJECT (fatal)
Running ldd on libzeitgeist-2.0.so.1 indeed shows it didn't
link to libglib-2.0.so.0. This patch adjusts Makefile.am to
ensure we link to libglib-2.0.so.0.
Signed-off-by: Seif Lotfy <seif@lotfy.com>
-rw-r--r-- | libzeitgeist/Makefile.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libzeitgeist/Makefile.am b/libzeitgeist/Makefile.am index a9919979..69af9efe 100644 --- a/libzeitgeist/Makefile.am +++ b/libzeitgeist/Makefile.am @@ -46,6 +46,7 @@ libzeitgeist_2_0_la_SOURCES = \ utils.vala \ $(NULL) +libzeitgeist_2_0_la_LIBADD = $(ZEITGEIST_LIBS) libzeitgeist_2_0_la_LDFLAGS = -version-info $(LIBZEITGEIST_LT_VERSION) pkgconfigdir = $(libdir)/pkgconfig |