Le 10 avr. 09 à 22:52, Frank Niessink a écrit : > Both the Funambol client as well as pysyncml compiled without errors > (there were warnings, but nothing serious as far as I can tell). > > However, running the addressbook demo gives the following: > > Traceback (most recent call last): > File "syncaddr.py", line 46, in <module> > from pysyncml import * > File "../../pysyncml.py", line 52, in <module> > from _pysyncml import * > ImportError: ../../_pysyncml.so: undefined symbol: curl_global_init > > My C/C++ skills are very rusty. I think this means _psyncml needs to > be linked with libcurl, right? So I added 'curl' to the LIBS list in > setup.py: >
That's the lib I removed because RPM said it wasn't needed, remember ? Guess it's needed after all :) > This got me one step further: Segmentation fault in syncaddr.py ;-) > Yes, that's where I stopped last time. > Drilling down with some print statements shows that the dmt.read() > call in main() triggers the segmentation fault. > > I looked in DMTClientConfig.cpp. I think this is the read function > (?): > > I guess an obvious cause of a segmentation fault might be that > self->obj is NULL? However, self->obj is created in init: > > Too obvious. I'm thinking about an object ownership problem; some code in the framework probably has deleted the object without us knowing. Way much difficult to spot... > So, that's not it... And I have exhausted by C/C++ debugging abilities > by far :-) > If I can fix my build problem on MacOS, I'll be able to take a closer look at it. Since I don't work on Monday, I should have enough time for that. Still stuck on one platform though, the PC won't even boot now... Cheers Jérôme
