After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 568491 - Build failure: don't have execinfo.h
Build failure: don't have execinfo.h
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
2.24.x
Other Mac OS
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2009-01-20 21:51 UTC by Daniel Macks
Modified: 2009-07-17 03:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
only use backtrace() if execinfo.h exists (1.67 KB, patch)
2009-01-20 22:02 UTC, Daniel Macks
committed Details | Review

Description Daniel Macks 2009-01-20 21:51:34 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.
Comment 1 Daniel Macks 2009-01-20 22:02:14 UTC
Created attachment 126876 [details] [review]
only use backtrace() if execinfo.h exists