GNOME Bugzilla – Bug 173061
patches to build with GCC 4
Last modified: 2005-10-08 20:36:49 UTC
Distribution/Version: SuSE Linux 9.3 There is a small patch which makes dia compilable with GCC 4. Note that in pydia-object.h, you need to include both python object.h and dia object.h.
Created attachment 39838 [details] [review] dia-gcc4.patch
Is the include_next directive Ansi C?
Created attachment 45129 [details] [review] dia-gcc4.patch Sorry, there were residues of my previous attempts. There is a patch without include_next. It will work, if order of includes will not change: #include "object.h" includes Python header #include "lib/object.h" includes Dia header
Changing to python component
Created attachment 45397 [details] [review] Patch for Ubunto to make dia compile with GCC 4.0 Here is the patch I applied to compile dia 0.94.0-7ubuntu1 in Ubuntu Breezy (we are switching to GCC 4.0). I find it cleaner than removing parse_path (seems to be use in svg functions).
It striked me odd that there would be two different files to be included with one include statement, so I've solved it with the following change : 2005-04-23 Hans Breuer <hans@breuer.org> * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h plug-ins/python/pydia-properties.h : use lib/ prefix for Dia internal headers with too common names (fixes bug #173061)
Adjusting target to help finding 0.94 dups already fixed