From: Danny B. <dan...@sc...> - 2005-08-16 20:02:52
|
Mirko, and others, I tried the 0.01 version of the opensync synce plugin. My system has Mandrake 10.1 installed, my PDA is a Mio 168 (like Mirko's). The version of opensync is=20 # msynctool --version This is msynctool version "0.90.14" using OpenSync version "0.14" Three remarks from my initial test : 1. It wouldn't compile without removing -Werror from src/Makefile. The error was synce_plugin.c:551: warning: implicit declaration of function `osync_plugin_new_info' Later, I would discover that this was related to the next remark. 2. After that, msynctool --listplugins didn't pick up the new library. Setting OSYNC_TRACE made me discover that the symbol osync_plugin_new_info() was used by the plugin, but not defined by my installation of opensync. Looking through the material on opensync.org makes me conclude that the synce-plugin, and some of the material on opensync.org, are referring to a newer version of the API than what I have. So I edited the get_info call to start with this : void get_info(OSyncPluginInfo *info) { instead of void get_info(OSyncPluginInfo *env) { OSyncPluginInfo *info =3D osync_plugin_new_info((void*)env); Can someone comment on these API versions ? 3. I could then set up everything with msynctool. I added a pair to synchronize between synce and the file-sync plugin. The first attempt to synchronize did some work (and left a lot of files in the file-sync directory), but then msynctool crashed. Gdb shows the following stack trace : #0 0xffffe410 in ?? () #1 0xb73e8c48 in ?? () #2 0x00000006 in ?? () #3 0x00002503 in ?? () #4 0xb7b926e5 in raise () from /lib/tls/libc.so.6 #5 0xb7b94049 in abort () from /lib/tls/libc.so.6 #6 0xb7e4ad0d in g_logv () from /usr/local/lib/libglib-2.0.so.0 #7 0xb7e4ad9d in g_log () from /usr/local/lib/libglib-2.0.so.0 #8 0xb7e4ae44 in g_assert_warning () from /usr/local/lib/libglib-2.0.so.0 #9 0xb7ee8211 in osync_hashtable_update_hash () from /usr/local/lib/libopensync.so.0 #10 0xb756233b in fs_commit_change () from /usr/local/lib/opensync/plugins/file_sync.so #11 0xb7ee684a in osync_member_commit_change () from /usr/local/lib/libopensync.so.0 #12 0xb7ef8910 in client_message_handler () from /usr/local/lib/libosengine.so.0 #13 0xb7ef8363 in _queue_dispatch () from /usr/local/lib/libosengine.so.0 #14 0xb7e430c4 in g_main_dispatch () from /usr/local/lib/libglib-2.0.so.0 #15 0xb7e43f1d in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0 #16 0xb7e442df in g_main_context_iterate () from /usr/local/lib/libglib-2.0.so.0 #17 0xb7e448a3 in g_main_loop_run () from /usr/local/lib/libglib-2.0.so.0 #18 0xb7e5cbea in g_thread_create_proxy () from /usr/local/lib/libglib-2.0.so.0 #19 0xb7cd03b0 in start_thread () from /lib/tls/libpthread.so.0 #20 0xb7c3226e in clone () from /lib/tls/libc.so.6 A second attempt to synchronize required me to answer a lot of questions to solve synchronisation problems, but eventually the synchronisation succeeded. Danny On Thu, 2005-08-11 at 16:27 +0200, mirko wrote: > Hi, i'm trying to develop a synce-plugin for opensync. > I just made my first release.. 0.01. it should work with addressbook but > it's still buggy.=20 > If someone is interested please watch my blog and give a try to it: > http://www.mirkuz.net/?cat=3D9 --=20 Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info |