On Tue, 2 Nov 2010, Patrick Ohly wrote:
Attached is a patch, entirely untested. Should apply to the
SyncEvolution 1.1 source archive [1].
The bad news first:
The patch doesn't work.
If you look deeper into findLocalDataStoreByURI, which calls
findLocalDataStore (both in syncsession.cpp), you'll find a call into
sysync::TSyncDataStore::isDatastore (syncdatastore.cpp:146).
There is a comparison between the target and the name of the data store.
The target is "Contacts", but fName.c_str() gives "addressbook".
I currently don't know, where the fName comes from, it is not the uri
parameter from the configuration.
And now the good ones:
I finally synchronized the addressbook of my phone, but with a view
dirty hacks:
1. I extended the isDatastore function by:
if(!strcmp(fName.c_str(),"addressbook") &&
!strcmp(aDatastoreURI,"Contacts"))
return 1;
2. TSyncSession::initSync needed also the hack to find the datastore:
if (!fLocalSyncDatastoreP) {
fLocalSyncDatastoreP =
findLocalDataStoreByURI(SessionRelativeURI(aRemoteDatastoreURI),&cgiOptions);
}
I've attached a patch for showing you the changes, but it's not meant to
be used as part of a release.
During the gdb session I've read several times “value optimized out”,
therefore I tried to switch off the optimization of -O2 by resetting the
compilation flags by
SYNTHESIS_CFLAGS=-g CFLAGS=-g ./configure --prefix='/home/knipp/opt'
but instead it needed
CXXFLAGS=-g ./configure --prefix='/home/knipp/opt'
Is SYNTHESIS_CFLAGS used somewhere? The use of CXXFLAGS is clear for C++,
I just oversaw this variable during my first compilation runs.
Which tools/IDE do you use for SyncEvolution development?
Kind regards,
Franz
--
Franz Knipp, Dipl.-Ing.
---------------------------------------------------------------------
knipp(a)m-otion.com
+43 660 4859550
https://www.xing.com/profile/Franz_Knipp
---------------------------------------------------------------------
m-otion GmbH
Favoritenstr 4-6/III, 1040 Wien
+43 1 205705 (Fax 99)
---------------------------------------------------------------------
www.m-otion.com