2.3.14 compile - dbus error
This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
2.3.14 compile - dbus error | Eric P | 09 Feb 07:08 |
2.3.14 compile - dbus error | Tom Williams | 09 Feb 08:04 |
2.3.14 compile - dbus error | Sven Neumann | 09 Feb 08:58 |
2.3.14 compile - dbus error | Manish Singh | 09 Feb 09:47 |
2.3.14 compile - dbus error | Eric P | 10 Feb 06:07 |
2.3.14 compile - dbus error | Marco Ciampa | 09 Feb 08:59 |
2.3.14 compile - dbus error
Anybody have any dbus problems compiling 2.3.14?
I get the following:
...snip...
Making all in gui
make[3]: ?????? `/home/dit/downloads/gimp-2.3.14/app/gui' ?????
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../app -I../../app -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/opt/include -DG_LOG_DOMAIN=\"Gimp-GUI\" -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DGIMP_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED
-DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE
-g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -MT
color-history.o -MD -MP -MF ".deps/color-history.Tpo" -c -o color-history.o color-history.c; \
then mv -f ".deps/color-history.Tpo" ".deps/color-history.Po"; else rm -f ".deps/color-history.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../app -I../../app -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/opt/include -DG_LOG_DOMAIN=\"Gimp-GUI\" -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DGIMP_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED
-DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE
-g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -MT
gui.o -MD -MP -MF ".deps/gui.Tpo" -c -o gui.o gui.c; \
then mv -f ".deps/gui.Tpo" ".deps/gui.Po"; else rm -f ".deps/gui.Tpo"; exit 1; fi
In file included from /usr/include/dbus-1.0/dbus/dbus-glib-lowlevel.h:28,
from gui.c:27:
/usr/include/dbus-1.0/dbus/dbus.h:30:2: error: #error "Please define DBUS_API_SUBJECT_TO_CHANGE to acknowledge your
understanding that D-Bus hasn't reached 1.0 and is subject to protocol and API churn. See the README for a full
explanation."
make[3]: *** [gui.o] ??? 1
make[3]: ?????? `/home/dit/downloads/gimp-2.3.14/app/gui' ?????
make[2]: *** [all-recursive] ??? 1
make[2]: ?????? `/home/dit/downloads/gimp-2.3.14/app' ?????
make[1]: *** [all-recursive] ??? 1
make[1]: ?????? `/home/dit/downloads/gimp-2.3.14' ?????
make: *** [all] ??? 2
I'm running Kubuntu 6.10, and I have this version of libdbus installed (w/header files): 0.93-0ubuntu3.1
I tried commenting out the #error line in dbus.h, and that seemed to get past this part. But then I get a slew of errors which all look similar to this: Warning: generating old-style constructor for:gimp_color_display_new Could not write method GimpColorDisplay.load_state: No ArgType for GimpParasite* Could not write method GimpColorDisplay.save_state: No ArgType for GimpParasite*
And it ends with this:
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 1698, in main
sw.write(py_ssize_t_clean)
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1340, in write
self.write_classes()
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1437, in write_classes
instance.write_class()
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 283, in write_class
substdict['tp_methods'] = self.write_methods()
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 519, in write_methods
methods.append(self.methdef_tmpl %
UnboundLocalError: local variable 'meth' referenced before assignment
make[4]: *** [gimpui.c] ??? 1
Thanks for reading. Eric P.
2.3.14 compile - dbus error
Yep, I hit that as well. I'm running Ubuntu 6.10 (Edgy Eft) and I "solved" that problem by upgrading dbus to version 1.0.2. That allowed me to compile Gimp 2.3.14 but it basically broke several other parts of the Ubuntu distribution.
HAL won't run. Nautilus won't run.
Until Ubuntu "catches up" with the latest dbus release, I would sit tight and not chance introducing other issues in your system if you decide to upgrade dbus manually, as I did.
At least I've got a working Gimp 2.3.14 to play with. :)
Good luck!
Peace...
Tom
Eric P wrote:
Anybody have any dbus problems compiling 2.3.14?
I get the following: ...snip...
Making all in gui
make[3]: ?????? `/home/dit/downloads/gimp-2.3.14/app/gui' ????? if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../app -I../../app -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/opt/include -DG_LOG_DOMAIN=\"Gimp-GUI\" -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGIMP_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -MT color-history.o -MD -MP -MF ".deps/color-history.Tpo" -c -o color-history.o color-history.c; \ then mv -f ".deps/color-history.Tpo" ".deps/color-history.Po"; else rm -f ".deps/color-history.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../app -I../../app -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/opt/include -DG_LOG_DOMAIN=\"Gimp-GUI\" -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGIMP_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -MT gui.o -MD -MP -MF ".deps/gui.Tpo" -c -o gui.o gui.c; \ then mv -f ".deps/gui.Tpo" ".deps/gui.Po"; else rm -f ".deps/gui.Tpo"; exit 1; fi In file included from /usr/include/dbus-1.0/dbus/dbus-glib-lowlevel.h:28, from gui.c:27:
/usr/include/dbus-1.0/dbus/dbus.h:30:2: error: #error "Please define DBUS_API_SUBJECT_TO_CHANGE to acknowledge your understanding that D-Bus hasn't reached 1.0 and is subject to protocol and API churn. See the README for a full explanation."
make[3]: *** [gui.o] ??? 1
make[3]: ?????? `/home/dit/downloads/gimp-2.3.14/app/gui' ????? make[2]: *** [all-recursive] ??? 1
make[2]: ?????? `/home/dit/downloads/gimp-2.3.14/app' ????? make[1]: *** [all-recursive] ??? 1
make[1]: ?????? `/home/dit/downloads/gimp-2.3.14' ????? make: *** [all] ??? 2I'm running Kubuntu 6.10, and I have this version of libdbus installed (w/header files): 0.93-0ubuntu3.1
I tried commenting out the #error line in dbus.h, and that seemed to get past this part. But then I get a slew of errors which all look similar to this: Warning: generating old-style constructor for:gimp_color_display_new Could not write method GimpColorDisplay.load_state: No ArgType for GimpParasite* Could not write method GimpColorDisplay.save_state: No ArgType for GimpParasite*
And it ends with this: 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 1698, in main sw.write(py_ssize_t_clean)
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1340, in write self.write_classes()
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1437, in write_classes instance.write_class()
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 283, in write_class substdict['tp_methods'] = self.write_methods() File "/usr/share/pygtk/2.0/codegen/codegen.py", line 519, in write_methods methods.append(self.methdef_tmpl % UnboundLocalError: local variable 'meth' referenced before assignment make[4]: *** [gimpui.c] ??? 1Thanks for reading. Eric P.
2.3.14 compile - dbus error
Hi,
On Fri, 2007-02-09 at 00:08 -0600, Eric P wrote:
/usr/include/dbus-1.0/dbus/dbus.h:30:2: error: #error "Please define DBUS_API_SUBJECT_TO_CHANGE to acknowledge your understanding that D-Bus hasn't reached 1.0 and is subject to protocol and API churn. See the README for a full explanation."
Your version of D-Bus is outdated. Just do what the error message suggests and add #define DBUS_API_SUBJECT_TO_CHANGE to gui.c just before the d-bus headers are included.
And it ends with this:
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 1698, in main sw.write(py_ssize_t_clean)
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1340, in write self.write_classes()
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1437, in write_classes instance.write_class()
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 283, in write_class substdict['tp_methods'] = self.write_methods() File "/usr/share/pygtk/2.0/codegen/codegen.py", line 519, in write_methods methods.append(self.methdef_tmpl %
Your copy of the Python Glib bindings are broken. There's a patch for it in Bugzilla. It's on the pygtk project if I remember correctly. Alternatively you can disable the Python plug-in when configuring gimp.
Sven
2.3.14 compile - dbus error
On Fri, Feb 09, 2007 at 12:08:39AM -0600, Eric P wrote:
Anybody have any dbus problems compiling 2.3.14?
I get the following: ..snip...
Making all in gui
make[3]: ?????? `/home/dit/downloads/gimp-2.3.14/app/gui' ????? if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../app -I../../app -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/opt/include -DG_LOG_DOMAIN=\"Gimp-GUI\" -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGIMP_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -MT color-history.o -MD -MP -MF ".deps/color-history.Tpo" -c -o color-history.o color-history.c; \ then mv -f ".deps/color-history.Tpo" ".deps/color-history.Po"; else rm -f ".deps/color-history.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../app -I../../app -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/opt/include -DG_LOG_DOMAIN=\"Gimp-GUI\" -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGIMP_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -MT gui.o -MD -MP -MF ".deps/gui.Tpo" -c -o gui.o gui.c; \ then mv -f ".deps/gui.Tpo" ".deps/gui.Po"; else rm -f ".deps/gui.Tpo"; exit 1; fi In file included from /usr/include/dbus-1.0/dbus/dbus-glib-lowlevel.h:28, from gui.c:27:
/usr/include/dbus-1.0/dbus/dbus.h:30:2: error: #error "Please define DBUS_API_SUBJECT_TO_CHANGE to acknowledge your understanding that D-Bus hasn't reached 1.0 and is subject to protocol and API churn. See the README for a full explanation."
make[3]: *** [gui.o] ??? 1
make[3]: ?????? `/home/dit/downloads/gimp-2.3.14/app/gui' ????? make[2]: *** [all-recursive] ??? 1
make[2]: ?????? `/home/dit/downloads/gimp-2.3.14/app' ????? make[1]: *** [all-recursive] ??? 1
make[1]: ?????? `/home/dit/downloads/gimp-2.3.14' ????? make: *** [all] ??? 2I'm running Kubuntu 6.10, and I have this version of libdbus installed (w/header files): 0.93-0ubuntu3.1
I tried commenting out the #error line in dbus.h, and that seemed to get past this part. But then I get a slew of errors which all look similar to this: Warning: generating old-style constructor for:gimp_color_display_new Could not write method GimpColorDisplay.load_state: No ArgType for GimpParasite* Could not write method GimpColorDisplay.save_state: No ArgType for GimpParasite*
And it ends with this: 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 1698, in main sw.write(py_ssize_t_clean)
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1340, in write self.write_classes()
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1437, in write_classes instance.write_class()
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 283, in write_class substdict['tp_methods'] = self.write_methods() File "/usr/share/pygtk/2.0/codegen/codegen.py", line 519, in write_methods methods.append(self.methdef_tmpl % UnboundLocalError: local variable 'meth' referenced before assignment make[4]: *** [gimpui.c] ??? 1
Download a fresh svn snapshot, it was solved a fiew days ago...
2.3.14 compile - dbus error
On Fri, Feb 09, 2007 at 08:58:52AM +0100, Sven Neumann wrote:
And it ends with this:
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 1698, in main sw.write(py_ssize_t_clean)
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1340, in write self.write_classes()
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1437, in write_classes instance.write_class()
File "/usr/share/pygtk/2.0/codegen/codegen.py", line 283, in write_class substdict['tp_methods'] = self.write_methods() File "/usr/share/pygtk/2.0/codegen/codegen.py", line 519, in write_methods methods.append(self.methdef_tmpl %Your copy of the Python Glib bindings are broken. There's a patch for it in Bugzilla. It's on the pygtk project if I remember correctly. Alternatively you can disable the Python plug-in when configuring gimp.
The latest pygtk release should work (it has the patch incorporated).
-Yosh
2.3.14 compile - dbus error
Sven Neumann wrote:
Hi,
On Fri, 2007-02-09 at 00:08 -0600, Eric P wrote:
/usr/include/dbus-1.0/dbus/dbus.h:30:2: error: #error "Please define DBUS_API_SUBJECT_TO_CHANGE to acknowledge your understanding that D-Bus hasn't reached 1.0 and is subject to protocol and API churn. See the README for a full explanation."
Your version of D-Bus is outdated. Just do what the error message suggests and add #define DBUS_API_SUBJECT_TO_CHANGE to gui.c just before the d-bus headers are included.
Your copy of the Python Glib bindings are broken. There's a patch for it in Bugzilla. It's on the pygtk project if I remember correctly. Alternatively you can disable the Python plug-in when configuring gimp.
Thanks. Those tips got me through the compile.
Eric