Re: [PATCH] first try porting irmc-sync to latest API

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

Parent Message unknown Re: [PATCH] first try porting irmc-sync to latest API

by Daniel Gollub-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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: gollub@...          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


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel

signature.asc (204 bytes) Download Attachment

Re: [PATCH] first try porting irmc-sync to latest API

by Volker Schreiner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <gollub@...>
Gesendet: Sam, 9/5/2009 12:19pm
An: Volker Schreiner <volker@...>
Cc: opensync-devel@...
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: gollub@...          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

[libopensync_2009_09_05.patch]

### Eclipse Workspace Patch 1.0
#P opensync
Index: opensync/plugin/opensync_objtype_sink.h
===================================================================
--- opensync/plugin/opensync_objtype_sink.h (revision 5733)
+++ opensync/plugin/opensync_objtype_sink.h (working copy)
@@ -630,5 +630,6 @@
 
 /*@}*/
 
+OSYNC_EXPORT osync_bool osync_objtype_sink_get_slowsync(OSyncObjTypeSink *sink);
 #endif /* _OPENSYNC_OBJTYPE_SINK_H_ */
 



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel