[Telepathy] Building telepathy-gabble
Dawid Nowak
dawid.nowak at ucd.ie
Mon Oct 17 03:48:35 PDT 2011
Hello again,
So thanks for the update. I'm afraid it is not the end of my
troubles ;)
It seems I can compile my code on 64 bit Ubuntu system. On 32 bit Ubuntu
there was a small problem with src/muc-channel.c but it was easy to fix.
DEBUG ("Subject changed to '%s' by '%s' at %" G_GINT64_FORMAT "",
- subject, actor, timestamp);
+ subject, actor, (long long int)timestamp);
So now to the main issue. I am running against my own openfire server
using Jabber account with no link encryption enabled. When I run Empathy
with original system libraries everything works fine. I can log in.
When I switch to development libraries using "GABBLE_PERSIST=1
GABBLE_DEBUG=all ./src/.libs/telepathy-gabble 2>&1"
I can't log in due to authorization error.
telepathy-gabble:4001): gabble-DEBUG:
gabble_server_sasl_channel_start_auth_async
(server-sasl-channel.c:814): Starting authentication
(telepathy-gabble:4001): tp-glib/connection-DEBUG:
tp_presence_mixin_get_contacts_dbus_property: called.
(telepathy-gabble:4001): gabble-DEBUG:
gabble_server_sasl_channel_start_mechanism_with_data
(server-sasl-channel.c:520): Starting X-TELEPATHY-PASSWORD
authentication with 5 bytes of initial data (telepathy-gabble:4001):
tp-glib/connection-DEBUG: tp_presence_mixin_get_contacts_dbus_property:
called. (telepathy-gabble:4001): gabble-DEBUG:
gabble_server_sasl_channel_fail (server-sasl-channel.c:929): auth
failed: WOCKY_AUTH_ERROR_FAILURE (#6): Authentication failed:
not-authorized (telepathy-gabble:4001): gabble-DEBUG:
connector_error_disconnect (connection.c:1687): Interactive
authentication error, reason 3, dbus error
org.freedesktop.Telepathy.Error.AuthenticationFailed
So I am wondering what could cause this problem.
Best regards
Dawid
On Mon, 2011-10-17 at 09:57 +1100, Danielle Madeley wrote:
> On Fri, 2011-10-14 at 15:32 +0100, Dawid Nowak wrote:
>
> > cd ~/Workspace/telepathy-glib
> > ./autogen.sh
> > cd ~/Workspace/telepathy-gabble
> > ./autogen.sh
> > PKG_CONFIG_PATH=/home/dawid/Workspace/telepathy-glib/telepathy-glib/
>
> I would install the libraries into a prefix, e.g. Workspace/install/
> Add --prefix=/home/dawid/Workspace/install/ and then pass
> PKG_CONFIG_PATH=/home/dawid/Workspace/install/lib/pkgconfig/ in your
> environment.
>
> Do a make install
>
> > *This failed as WOCKY is not compiled *
>
> Strange.
>
> > *So after all this, I still can't use telepathy-gabble because of
> > versioning problem with libtelepathy-glib.so.0.*
>
> At this point, it should work correctly, because the linker will add an
> rpath for your prefix. Otherwise you can set the env var
> LD_LIBRARY_PATH.
>
> > ldd src/.libs/telepathy-gabble shows that it links against the library in
> > libtelepathy-glib.so.0 => /usr/lib/libtelepathy-glib.so.0
> > where it really should be something like this
> > *libtelepathy-glib.so.0 =>
> > ~/Workspace/telepathy-glib/telepathy-glib/src/.libs*
>
> The linker won't set an rpath for this, so it will find the system
> library, you can force the matter with
> LD_LIBRARY_PATH=~/Workspace/telepathy-glib/telepathy-glib/src/.libs/
> however, I'd use the --prefix option.
>
> For reference, here's an alias I use:
> alias my-autogen='PKG_CONFIG_PATH=/home/danni/src/install/lib/pkgconfig/
> CFLAGS="-ggdb -O0" ./autogen.sh --prefix=/home/danni/src/install
> --disable-scrollkeeper'
>
> N.B. --disable-scrollkeeper is a legacy GNOME flag, scrollkeeper
> couldn't install into a prefix.
>
More information about the telepathy
mailing list