Hi Daniel,
i created a patch for the libopensync source code that causes the undefined symbol error.
The patch is attached as a text file on this mail.
After i defined the osync_objtype_sink_get_slowsync method i changed a function call in the irmc-sync
plugin and now it gets listed by "osyncplugin --pluginlist".
I havent tested if the module works correct.
Best Regards,
Volker
----- Originalnachricht -----
Von: Daniel Gollub <go...@b1...>
Gesendet: Sam, 9/5/2009 12:19pm
An: Volker Schreiner <vo...@sc...>
Cc: ope...@li...
Betreff: Re: [PATCH] first try porting irmc-sync to latest API
Hi Volker,
just checked your latest irmc-sync changes [1]. Regarding the issue that irmc-sync
get not listed - try this:
dgollub@marvin:~> export OSYNC_TRACE=/tmp/osync_trace/
dgollub@marvin:~> rm /tmp/osync_trace/*; osynctool --listplugins
ERROR: Unable to open module /home/dgollub/build/OpenSync/lib/libopensync1/plugins/irmc-sync.so:
/home/dgollub/build/OpenSync/lib/libopensync1/plugins/irmc-sync.so: undefined symbol: osync_objtype_sink_get_slowsync
EXIT_ERROR: osync_module_load: Unable to open module /home/dgollub/build/OpenSync/lib/libopensync1/plugins/irmc-sync.so:
/home/dgollub/build/OpenSync/lib/libopensync1/plugins/irmc-sync.so: undefined symbol: osync_objtype_sink_get_slowsync
Available plugins:
syncml-http-server
syncml-http-client
syncml-obex-client
file-sync
evo2-sync
dgollub@marvin:~>
If you enable tracing by exporting OSYNC_TRACE every osync_trace(TRACE_ERROR*
call gets printed on stderr. Usually symbols are missing which avoid that the
plugin can be loaded. In this case you need to drop the use of
osync_objtype_sink_get_slowsync
AFAIK the plugin functions like get_changes() or so get called in thier
parameter lits with the information if a slowsync is requested or not. So
you can use this parameter instead of calling osync_objtype_sink_get_slowsync.
Check the file-sync plugin how this is done.
[1] http://opensync.org/changeset/5748
Best Regards,
Daniel
[...]
--
Daniel Gollub Geschaeftsfuehrer: Ralph Dehner
FOSS Developer Unternehmenssitz: Vohburg
B1 Systems GmbH Amtsgericht: Ingolstadt
Mobil: +49-(0)-160 47 73 970 Handelsregister: HRB 3537
EMail: go...@b1... http://www.b1-systems.de
Adresse: B1 Systems GmbH, Osterfeldstraße 7, 85088 Vohburg
http://pgpkeys.pca.dfn.de/pks/lookup?op=get&search=0xED14B95C2F8CA78D
|