Ticket #570 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

build of python wrapper fails against rev2571

Reported by: qratz Owned by: dgollub
Priority: highest Milestone: OpenSync 0.40
Component: OpenSync Version: 0.33
Severity: normal Keywords: python wrapper
Cc:

Description

This is what i get when trying to compile the current head of opensync with python wrappers:

gcc -o wrapper/opensync_wrap.os -c -DHAVE_CONFIG_H -I. -Wall -Werror -g3 -I/usr/include/python2.4 -fno-strict-aliasing -Wno-uninitialized -fPIC -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Iwrapper -Iwrapper wrapper/opensync_wrap.c
cc1: warnings being treated as errors
wrapper/opensync_wrap.c: In function ‘Engine_set_group_slowsync’:
wrapper/opensync_wrap.c:3343: warning: implicit declaration of function ‘osync_engine_set_group_slowsync’
wrapper/opensync_wrap.c: In function ‘Engine_get_group_slowsync’:
wrapper/opensync_wrap.c:3346: warning: implicit declaration of function ‘osync_engine_get_group_slowsync’
wrapper/opensync_wrap.c: In function ‘Engine_slowsync_objtype’:
wrapper/opensync_wrap.c:3349: warning: implicit declaration of function ‘osync_engine_slowsync_objtype’
wrapper/opensync_wrap.c: In function ‘Member_add_objtype’:
wrapper/opensync_wrap.c:3850: warning: implicit declaration of function ‘osync_member_add_objtype’
scons: *** [wrapper/opensync_wrap.os] Error 1
scons: building terminated because of errors.

Change History

comment:1 Changed 4 years ago by qratz

I just checked put the current head (rev2576), where dgollub fixed the above ticked. While the python wrapper now compiles, it seems to be broken otherwise. My opensync setup consists of opensync, msynctool, python-modules, moto-sync and file-sync. All build from current head. Running 'msynctool --listplugins' returns the follwoing:

Traceback (most recent call last):
  File "/home/sini/dev/opensync/build/lib/python2.4/site-packages/opensync.py", line 412, in ?
    class Engine(object):
  File "/home/sini/dev/opensync/build/lib/python2.4/site-packages/opensync.py", line 485, in Engine
    group_slowsync = property(get_group_slowsync, set_group_slowsync)
NameError: name 'get_group_slowsync' is not defined
Available plugins:
file-sync

Should i open a new ticket for this? Or is this caused by the fixes in rev2576?

comment:2 Changed 4 years ago by dgollub

  • Owner changed from abauer to dgollub
  • Priority changed from normal to highest
  • Version set to 0.33

comment:3 Changed 4 years ago by dgollub

  • Status changed from new to closed
  • Resolution set to fixed

Fixed with r2590. Thanks for the hint.

comment:4 Changed 4 years ago by qratz

  • Status changed from closed to reopened
  • Resolution fixed deleted

it's still not working, one other line needs to be removed. This time from opensync-group.i (line 416):

Traceback (most recent call last):
  File "/home/sini/dev/opensync/build/lib/python2.4/site-packages/opensync.py", line 945, in ?
    class Member(object):
  File "/home/sini/dev/opensync/build/lib/python2.4/site-packages/opensync.py", line 1061, in Member
    start_type = property(get_start_type, set_start_type)
NameError: name 'get_start_type' is not defined
Available plugins:
file-sync

comment:5 Changed 4 years ago by qratz

  • Status changed from reopened to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.