GNOME Bugzilla – Bug 568491
Build failure: don't have execinfo.h
Last modified: 2009-07-17 03:06:46 UTC
Building gdm-2.24.1 on OS X 10.4: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -DGNOMELOCALEDIR=\"/sw/share/locale\" -DAUTHDIR=\"/sw/var/gdm\" -DBINDIR=\"/sw/bin\" -DDATADIR=\"/sw/share\" -DDMCONFDIR=\"/sw/etc/dm\" -DGDMCONFDIR=\"/sw/etc/gdm\" -DGDMLOCALEDIR=\"/sw/etc/gdm\" -DLIBDIR=\"/sw/lib\" -DLIBEXECDIR=\"/sw/lib/gdm\" -DLOGDIR=\"/sw/var/log/gdm\" -DPIXMAPDIR=\"/sw/share/pixmaps\" -DSBINDIR=\"/sw/sbin\" -DGNOMELOCALEDIR=\"/sw/share/locale\" -DGDM_DEFAULTS_CONF=\"/sw/share/gdm/defaults.conf\" -DGDM_CUSTOM_CONF=\"/sw/etc/gdm/custom.conf\" -DGDM_OLD_CONF=\"/sw/etc/gdm/gdm.conf\" -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/dbus-1.0 -I/sw/lib/dbus-1.0/include -I/sw/include -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/dbus-1.0 -I/sw/lib/dbus-1.0/include -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wp,-D_FORTIFY_SOURCE=2 -g -O2 -Wno-strict-aliasing -Wno-sign-compare -c gdm-signal-handler.c -fno-common -DPIC -o .libs/libgdmcommon_la-gdm-signal-handler.o gdm-signal-handler.c:30:22: error: execinfo.h: No such file or directory gdm-signal-handler.c: In function 'fallback_get_backtrace': gdm-signal-handler.c:168: warning: implicit declaration of function 'backtrace' gdm-signal-handler.c:168: warning: nested extern declaration of 'backtrace' gdm-signal-handler.c:169: warning: implicit declaration of function 'backtrace_symbols' gdm-signal-handler.c:169: warning: nested extern declaration of 'backtrace_symbols' gdm-signal-handler.c:169: warning: assignment makes pointer from integer without a cast make[3]: *** [libgdmcommon_la-gdm-signal-handler.lo] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Sure enough, my system doesn't have that header and I can't find an alternative one that declares those symbols. It's only used in a fallback method, and there's another alternative if *that* fails (i.e., it's option 2 of 3). Simplest solution is to have configure test for that header, and then protect "option 2" with some #ifdefs.
Created attachment 126876 [details] [review] only use backtrace() if execinfo.h exists