GNOME Bugzilla – Bug 631183
failure to compile gegl-buffer due to unavailable backtrace
Last modified: 2010-10-02 18:55:40 UTC
Created attachment 171580 [details] [review] patch to make configure check the existence of execinfo.h gegl fails to compile on Solaris and older Darwin/Mac OS X boxes as follows: CC gegl-buffer-iterator.lo gegl-buffer.c:84:22: error: execinfo.h: No such file or directory gegl-buffer.c: In function ‘gegl_buffer_get_alloc_stack’: gegl-buffer.c:888: warning: implicit declaration of function ‘backtrace’ gegl-buffer.c:889: warning: implicit declaration of function ‘backtrace_symbols’ gegl-buffer.c:889: warning: assignment makes pointer from integer without a cast gegl-buffer.c: In function ‘gegl_buffer_new_from_format’: gegl-buffer.c:1101: warning: format ‘%i’ expects type ‘int’, but argument 2 has type ‘pid_t’ CC gegl-buffer-linear.lo make[3]: *** [gegl-buffer.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/Library/Gentoo/var/tmp/portage/media-libs/gegl-0.1.2/work/gegl-0.1.2/gegl/buffer' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/Library/Gentoo/var/tmp/portage/media-libs/gegl-0.1.2/work/gegl-0.1.2/gegl' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/Library/Gentoo/var/tmp/portage/media-libs/gegl-0.1.2/work/gegl-0.1.2' make: *** [all] Error 2 emake failed I checked that the current git seems not to have any changes regarding this. The attached patch allows to compile gegl on Solaris
Thanks, pushed (sorry for the messy handling of this patch...) commit ef633285385e8fcb7b8aded46e3e2b74aaecbc0e Author: Martin Nordholts <martinn@src.gnome.org> Date: Sat Oct 2 20:55:33 2010 +0200 Bug 631183 - failure to compile gegl-buffer due to unavailable backtrace Not all platforms have backtrace() facility, such as Darwin <=10.4 and Solaris. See also https://trac.macports.org/browser/trunk/dports/graphics/gegl/files/patch-gegl-buffer-gegl-buffer.c.diff?rev=71233 This patch uses a configure check to disable it based on existance of execinfo.h instead of hardcoded knowledge about the target platforms. commit be490c2c9f58ff4b9817a19c0716308562fc3370 Author: Martin Nordholts <martinn@src.gnome.org> Date: Sat Oct 2 21:01:17 2010 +0200 Clean up previous commit Clean up previous commit (accidentally pushed before making these changes) commit 83bb89fc52e5fa015dfd4eccf0b436bcacb9bbdc Author: Martin Nordholts <martinn@src.gnome.org> Date: Sat Oct 2 21:03:59 2010 +0200 AUTHORS: Add Fabian Groffen