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 585399 - Build failure: missing #include for XK_Escape
Build failure: missing #include for XK_Escape
Status: RESOLVED OBSOLETE
Product: gnome-utils
Classification: Deprecated
Component: screenshot
2.26.x
Other Mac OS
: Normal normal
: ---
Assigned To: gnome-utils Maintainers
gnome-utils Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-11 00:25 UTC by Daniel Macks
Modified: 2011-06-13 20:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
XK_Escape.patch (522 bytes, patch)
2009-06-11 00:27 UTC, Daniel Macks
none Details | Review

Description Daniel Macks 2009-06-11 00:25:01 UTC
Building gnome-utils-2.26.0 on OS X 10.4 with apple's x11 and all other external support via fink at the level of GNOME2.26 fails:

gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -DGNOMELOCALEDIR=\""/sw/share/locale"\" -DUIDIR=\""/sw/share/gnome-screenshot"\" -I/sw/lib/fontconfig2/include -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/gconf/2 -I/sw/include/orbit-2.0 -I/sw/include/dbus-1.0 -I/sw/lib/dbus-1.0/include -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/sw/include/atk-1.0 -I/sw/include/cairo -I/sw/include/pango-1.0 -I/sw/include/pixman-1 -I/sw/include/freetype2 -I/sw/include -I/sw/include/libpng12 -I/usr/X11R6/include -I/usr/X11/include -DORBIT2=1 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include   -I/sw/include  -Os -fno-common -c screenshot-utils.c
screenshot-utils.c: In function 'select_area_filter':
screenshot-utils.c:361: error: 'XK_Escape' undeclared (first use in this function)
screenshot-utils.c:361: error: (Each undeclared identifier is reported only once
screenshot-utils.c:361: error: for each function it appears in.)
make[2]: *** [screenshot-utils.o] Error 1

Need to #include <X11/keysymdef.h> to get a keysym name, and need to #define XK_MISCELLANY (per XLib manpage, and confirmed by testing) to activate that set of kysym defs.
Comment 1 Daniel Macks 2009-06-11 00:27:41 UTC
Created attachment 136309 [details] [review]
XK_Escape.patch
Comment 2 Daniel Macks 2009-06-13 18:41:30 UTC
Alternative is simply to #include <X11/keysym.h>, which does all the necessary #defines and then loads the actual keysymdef.h
Comment 3 Cosimo Cecchi 2011-06-13 20:44:27 UTC
That code changed recently, and doesn't use XLib directly anymore. Closing as OBSOLETE.