pawandubey / superswitcher

Automatically exported from code.google.com/p/superswitcher
GNU General Public License v2.0
0 stars 0 forks source link

Fails to build on an up to date linux system #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Trying to build on Arch Linux, which of course has an up-to-date gtk2 and glib, 
I get the infamous "error: #error "Only <glib.h> can be included directly" 
build error.
And then after changing all the troublesome includes to <glib.h> I get this 
build error:

gcc -DPACKAGE_NAME=\"superswitcher\" -DPACKAGE_TARNAME=\"superswitcher\" 
-DPACKAGE_VERSION=\"0.6\" -DPACKAGE_STRING=\"superswitcher\ 0.6\" 
-DPACKAGE_BUGREPORT=\"http://code.google.com/p/superswitcher/\" 
-DPACKAGE_URL=\"\" -DPACKAGE=\"superswitcher\" -DVERSION=\"0.6\" 
-DGETTEXT_PACKAGE=\"superswitcher\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 
-DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -DHAVE_XINERAMA=/\*\*/ 
-DHAVE_GCONF=/\*\*/ -DHAVE_DBUS_GLIB=/\*\*/ -DHAVE_XCOMPOSITE=/\*\*/ 
-DHAVE_GTK_2_8=/\*\*/ -DHAVE_GTK_2_11=/\*\*/ -DHAVE_WNCK_2_12=/\*\*/ 
-DHAVE_WNCK_2_19_3_1=/\*\*/ -I.  -pthread -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include 
-I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 
-I/usr/include/atk-1.0 -I/usr/include/libwnck-1.0 
-I/usr/include/startup-notification-1.0    -pthread -I/usr/include/gconf/2 
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -I/usr/include/dbus-1.0 
-I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
    -DLOCALEDIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/usr/etc"\" 
-DDATADIR=\""/usr/share"\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED 
-DGTK_DISABLE_DEPRECATED -DWNCK_DISABLE_DEPRECATED 
-DWNCK_I_KNOW_THIS_IS_UNSTABLE  -Wall -Wmissing-prototypes  -march=i686 
-mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 
-D_FORTIFY_SOURCE=2 -MT superswitcher.o -MD -MP -MF .deps/superswitcher.Tpo -c 
-o superswitcher.o superswitcher.c
superswitcher.c: In function ‘filter_func’:
superswitcher.c:53:34: error: ‘gdk_display’ undeclared (first use in this 
function)
superswitcher.c:53:34: note: each undeclared identifier is reported only once 
for each function it appears in
superswitcher.c: In function ‘grab’:
superswitcher.c:76:13: error: ‘gdk_display’ undeclared (first use in this 
function)
superswitcher.c: In function ‘disable_caps_lock_default_behavior’:
superswitcher.c:94:31: error: ‘gdk_display’ undeclared (first use in this 
function)
superswitcher.c: In function ‘main’:
superswitcher.c:223:55: error: ‘gdk_display’ undeclared (first use in this 
function)
make[1]: *** [superswitcher.o] Error 1
make[1]: Leaving directory 
`/media/sdb1/abs/local/yaourtbuild/superswitcher-svn/src/superswitcher-read-only
-build/src'
make: *** [all-recursive] Error 1

Original issue reported on code.google.com by Alister....@gmail.com on 6 Jul 2012 at 1:34

GoogleCodeExporter commented 8 years ago
> And then after changing all the troublesome includes to <glib.h> I get this 
build error:

It seems there is a simple fix; see the comment at 
https://aur.archlinux.org/packages.php?ID=19230

Original comment by Alister....@gmail.com on 2 Sep 2012 at 2:12

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r39.

Original comment by nigel.ta...@gmail.com on 9 Sep 2012 at 10:47

GoogleCodeExporter commented 8 years ago
Thanks for the patch. Sorry for the late response.

Original comment by nigel.ta...@gmail.com on 9 Sep 2012 at 10:48