Bug 42760 - telepathy-glib introspection fails on missing libtelepathy-glib.la
Summary: telepathy-glib introspection fails on missing libtelepathy-glib.la
Status: RESOLVED MOVED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-09 14:12 UTC by Travis Reitter
Modified: 2019-12-03 20:39 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Introspect libtelepathy-glib itself, not the libtool archive. (871 bytes, patch)
2011-11-09 14:12 UTC, Travis Reitter
Details | Splinter Review

Description Travis Reitter 2011-11-09 14:12:18 UTC
Created attachment 53349 [details] [review]
Introspect libtelepathy-glib itself, not the libtool archive.

With the git master version (and --enable-introspection), I hit this build error:

g-ir-scanner: link: /bin/bash ../libtool --mode=link --tag=CC gcc -o /home/treitter/collabora/telepathy-glib/telepathy-glib/tmp-introspecthRN79o/TelepathyGLib-0.12 -export-dynamic -L. libtelepathy-glib.la -pthread -L/opt/gnome/lib64 -lgthread-2.0 -lgio-2.0 -lgmodule-2.0 -ldbus-glib-1 -ldbus-1 -lpthread -lrt -lgobject-2.0 -lglib-2.0 /home/treitter/collabora/telepathy-glib/telepathy-glib/tmp-introspecthRN79o/TelepathyGLib-0.12.o
libtool: link: cannot find the library `libtelepathy-glib.la' or unhandled argument `libtelepathy-glib.la'
linking of temporary binary failed: Command '['/bin/bash', '../libtool', '--mode=link', '--tag=CC', 'gcc', '-o', '/home/treitter/collabora/telepathy-glib/telepathy-glib/tmp-introspecthRN79o/TelepathyGLib-0.12', '-export-dynamic', '-L.', 'libtelepathy-glib.la', '-pthread', '-L/opt/gnome/lib64', '-lgthread-2.0', '-lgio-2.0', '-lgmodule-2.0', '-ldbus-glib-1', '-ldbus-1', '-lpthread', '-lrt', '-lgobject-2.0', '-lglib-2.0', '/home/treitter/collabora/telepathy-glib/telepathy-glib/tmp-introspecthRN79o/TelepathyGLib-0.12.o']' returned non-zero exit status 1
make[3]: *** [TelepathyGLib-0.12.gir] Error 1
Comment 1 Simon McVittie 2011-11-10 02:29:47 UTC
Linking with libtool ought to link via a .la successfully: is there perhaps a missing dependency so introspection is attempted before libtelepathy-glib.la has been created?

Or if the .la is really the problem, are you sure you mean telepathy-glib and not -ltelepathy-glib in LIBS?

(The problem with using -ltelepathy-glib while in-tree is that depending on the library search path, you could end up trying to link to an installed libtelepathy-glib.so from /usr/lib or /opt/gnome/lib64 or wherever - the -L. as first search path entry should fix that, but still...)
Comment 2 GitLab Migration User 2019-12-03 20:39:06 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-glib/issues/78.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.