Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#7 diacanvas2-0.15.4 compile fails with enable-python

open
nobody
None
5
2007-08-29
2007-08-29
Chris Mayo
No

python-2.4.4
pygtk-2.10.6

compiles fine with --disable-python, but enable-python and:

(cd . \ && /usr/bin/pygtk-codegen-2.0 \ --register /usr/share/pygtk/2.0/defs/pango-types.defs \ --register ../diacanvas/dia-boxed.defs \ --register diashape.defs \ --override diacanvas.override \ --prefix pydiacanvas diacanvas.defs) > gen-diacanvas.c \ && cp gen-diacanvas.c diacanvas.c \ && rm -f gen-diacanvas.c
Traceback (most recent call last):
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1707, in ?
sys.exit(main(sys.argv))
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1659, in main
o = override.Overrides(arg)
File "/usr/share/pygtk/2.0/codegen/override.py", line 49, in __init__
self.handle_file(filename)
File "/usr/share/pygtk/2.0/codegen/override.py", line 81, in handle_file
self.__parse_override(buf, startline, filename)
File "/usr/share/pygtk/2.0/codegen/override.py", line 130, in __parse_override
raise RuntimeError("Function %s is being overridden more than once" % (func,))
RuntimeError: Function dia_canvas_item_new is being overridden more than once
make[2]: *** [diacanvas.c] Error 1
make[2]: Leaving directory `/usr/local/src/diacanvas2-0.15.4/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/diacanvas2-0.15.4'
make: *** [all] Error 2

Discussion