msynctool does not see syncml plugin

View: New views
6 Messages — Rating Filter:   Alert me  

msynctool does not see syncml plugin

by Andriy Zhdanov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm completely lost.. installing from svn trunk, msynctool after all does not see syncml plugin, as follows:

-- Install configuration: "RelWithDebInfo"
-- Installing /usr/local/lib/opensync-1.0/plugins/gcalendar.so
-- Installing /usr/local/lib/opensync-1.0/google-cal-helper
-- Installing /usr/local/share/opensync-1.0/defaults/google-calendar
-- Installing /usr/local/share/opensync-1.0/descriptions/google-calendar.xml
-- Installing /usr/local/share/opensync-1.0/capabilities/google-calendar-gcal-2005.xml

-- Install configuration: "RelWithDebInfo"
-- Installing /usr/local/lib/opensync-1.0/plugins/syncml-plugin.so
-- Installing /usr/local/share/opensync-1.0/defaults/syncml-obex-client
-- Installing /usr/local/share/opensync-1.0/defaults/syncml-http-server
-- Installing /usr/local/share/opensync-1.0/defaults/syncml-http-client

$ msynctool --listplugins
Available plugins:
google-calendar
$

Any ideas?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensync-users mailing list
Opensync-users@...
https://lists.sourceforge.net/lists/listinfo/opensync-users

Re: msynctool does not see syncml plugin

by Michael Bell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Andriy Zhdanov schrieb:

> Hi,
>
> I'm completely lost.. installing from svn trunk, msynctool after all does
> not see syncml plugin, as follows:
>
> -- Install configuration: "RelWithDebInfo"
> -- Installing /usr/local/lib/opensync-1.0/plugins/gcalendar.so
> -- Installing /usr/local/lib/opensync-1.0/google-cal-helper
> -- Installing /usr/local/share/opensync-1.0/defaults/google-calendar
> -- Installing /usr/local/share/opensync-1.0/descriptions/google-calendar.xml
> -- Installing /usr/local/share/opensync-1.0/capabilities/google-
> calendar-gcal-2005.xml
>
> -- Install configuration: "RelWithDebInfo"
> -- Installing /usr/local/lib/opensync-1.0/plugins/syncml-plugin.so
> -- Installing /usr/local/share/opensync-1.0/defaults/syncml-obex-client
> -- Installing /usr/local/share/opensync-1.0/defaults/syncml-http-server
> -- Installing /usr/local/share/opensync-1.0/defaults/syncml-http-client
>
> $ msynctool --listplugins
> Available plugins:
> google-calendar
> $
This usually happens if the installed libsyncml and syncml plugin
version use different API versions of libsyncml. Which exact SVN
revisions do you use when this happens?

Best regards

Michael
--
_______________________________________________________________

Michael Bell                    Humboldt-Universitaet zu Berlin

Tel.: +49 (0)30-2093 2482       ZE Computer- und Medienservice
Fax:  +49 (0)30-2093 2704       Unter den Linden 6
michael.bell@...   D-10099 Berlin
_______________________________________________________________

X.509 CA Certificates / Wurzelzertifikate

http://ra.pki.hu-berlin.de


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensync-users mailing list
Opensync-users@...
https://lists.sourceforge.net/lists/listinfo/opensync-users

smime.p7s (7K) Download Attachment

Re: msynctool does not see syncml plugin

by Andriy Zhdanov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Michael,

I was using following svn revisions:

http://svn.opensync.org/plugins/syncml: Revision: 3224
http://svn.opensync.org/plugins/google-calendar: Revision: 3224
http://svn.opensync.org/trunk: Revision: 3221
http://svn.opensync.org/libsyncml/trunk: Revision: 421
http://svn.opensync.org/multisync/trunk: Revision: 365

On Tue, Mar 25, 2008 at 11:49 AM, Michael Bell <michael.bell@...> wrote:
Andriy Zhdanov schrieb:
> Hi,
>
> I'm completely lost.. installing from svn trunk, msynctool after all does
> not see syncml plugin, as follows:
>
> -- Install configuration: "RelWithDebInfo"
> -- Installing /usr/local/lib/opensync-1.0/plugins/gcalendar.so
> -- Installing /usr/local/lib/opensync-1.0/google-cal-helper
> -- Installing /usr/local/share/opensync-1.0/defaults/google-calendar
> -- Installing /usr/local/share/opensync-1.0/descriptions/google-calendar.xml
> -- Installing /usr/local/share/opensync-1.0/capabilities/google-
> calendar-gcal-2005.xml
>
> -- Install configuration: "RelWithDebInfo"
> -- Installing /usr/local/lib/opensync-1.0/plugins/syncml-plugin.so
> -- Installing /usr/local/share/opensync-1.0/defaults/syncml-obex-client
> -- Installing /usr/local/share/opensync-1.0/defaults/syncml-http-server
> -- Installing /usr/local/share/opensync-1.0/defaults/syncml-http-client
>
> $ msynctool --listplugins
> Available plugins:
> google-calendar
> $

This usually happens if the installed libsyncml and syncml plugin
version use different API versions of libsyncml. Which exact SVN
revisions do you use when this happens?

Best regards

Michael
--
_______________________________________________________________

Michael Bell                    Humboldt-Universitaet zu Berlin

Tel.: +49 (0)30-2093 2482       ZE Computer- und Medienservice
Fax:  +49 (0)30-2093 2704       Unter den Linden 6
michael.bell@...   D-10099 Berlin
_______________________________________________________________

X.509 CA Certificates / Wurzelzertifikate

http://ra.pki.hu-berlin.de


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensync-users mailing list
Opensync-users@...
https://lists.sourceforge.net/lists/listinfo/opensync-users

Re: msynctool does not see syncml plugin

by Michael Bell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Andriy Zhdanov schrieb:

> I was using following svn revisions:
>
> http://svn.opensync.org/plugins/syncml: Revision: 3224
> http://svn.opensync.org/plugins/google-calendar: Revision: 3224
> http://svn.opensync.org/trunk: Revision: 3221
> http://svn.opensync.org/libsyncml/trunk: Revision: 421
> http://svn.opensync.org/multisync/trunk: Revision: 365

This is exactly what I'm using too. So I have no idea why the plugins
are not loaded. If you run with traces enabled then you can grep the
trace files for the string ERROR and usually you will see why the
plugins are not loaded.

Best regards

Michael
--
_______________________________________________________________

Michael Bell                    Humboldt-Universitaet zu Berlin

Tel.: +49 (0)30-2093 2482       ZE Computer- und Medienservice
Fax:  +49 (0)30-2093 2704       Unter den Linden 6
michael.bell@...   D-10099 Berlin
_______________________________________________________________

X.509 CA Certificates / Wurzelzertifikate

http://ra.pki.hu-berlin.de


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensync-users mailing list
Opensync-users@...
https://lists.sourceforge.net/lists/listinfo/opensync-users

smime.p7s (7K) Download Attachment

Re: msynctool does not see syncml plugin

by Christian Hilgers-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Andriy Zhdanov schrieb:
> $ msynctool --listplugins
> Available plugins:
> google-calendar
> $
>
> Any ideas?

which msynctool
ldd `which msynctool`
does that match the place you did install the libs?
If not (what I assume) use LD_LIBRAY_PATH to point the linker
to the correct place.

Christian
--
Christian Hilgers                  |ConSol*
Tel.   +49.2102.994-423            |Consulting&Solutions Software GmbH
Fax    +49.2102.994-411            |Berliner Str. 101, 40880 Ratingen
email: Christian.Hilgers@... |WWW: http://www.consol.de

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensync-users mailing list
Opensync-users@...
https://lists.sourceforge.net/lists/listinfo/opensync-users

Re: msynctool does not see syncml plugin

by Andriy Zhdanov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Cristian,

Sorry for long silence, I've finally figured out the error with
tracing turned on:

ERROR: Unable to open module
/usr/local/lib/libopensync1/plugins/syncml-plugin.so:
/usr/local/lib/libopensync1/plugins/syncml-plugin.so: undefined
symbol: osync_objtype_sink_num_objformats

ERROR: Unable to open module
/usr/local/lib/libopensync1/plugins/syncml-plugin.so:
/usr/local/lib/libopensync1/plugins/syncml-plugin.so: undefined
symbol: osync_objtype_sink_nth_objformat

This seems to be similar to http://www.opensync.org/ticket/775, and
patch attached solves it - msynctool can see syncml plugins now

On Tue, Mar 25, 2008 at 1:52 PM, Christian Hilgers
<Christian.Hilgers@...> wrote:

> Andriy Zhdanov schrieb:
>> $ msynctool --listplugins
>> Available plugins:
>> google-calendar
>> $
>>
>> Any ideas?
>
> which msynctool
> ldd `which msynctool`
> does that match the place you did install the libs?
> If not (what I assume) use LD_LIBRAY_PATH to point the linker
> to the correct place.
>
> Christian
> --
> Christian Hilgers                  |ConSol*
> Tel.   +49.2102.994-423            |Consulting&Solutions Software GmbH
> Fax    +49.2102.994-411            |Berliner Str. 101, 40880 Ratingen
> email: Christian.Hilgers@... |WWW: http://www.consol.de
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Opensync-users mailing list
> Opensync-users@...
> https://lists.sourceforge.net/lists/listinfo/opensync-users
>

[working.diff]

Index: src/syncml_http_client.c
===================================================================
--- src/syncml_http_client.c (revision 3533)
+++ src/syncml_http_client.c (working copy)
@@ -519,13 +519,13 @@
                 SmlDatabase *database = o->data;
                 osync_objtype_sink_set_available(database->sink, TRUE);
 
- int num = osync_objtype_sink_num_objformats(database->sink);
+ unsigned int num = osync_objtype_sink_num_objformat_sinks(database->sink);
  osync_trace(TRACE_INTERNAL, "%s: register %i sink objformats", __func__, num);
  int i;
  for (i=0; i<num; i++)
  {
  osync_trace(TRACE_INTERNAL, "%s: sink objformat is %s", __func__,
- osync_objtype_sink_nth_objformat(database->sink, i));
+ osync_objtype_sink_nth_objformat_sink(database->sink, i));
  }
         }
         


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensync-users mailing list
Opensync-users@...
https://lists.sourceforge.net/lists/listinfo/opensync-users