GNOME Bugzilla – Bug 493547
Missing -I flags for X11
Last modified: 2007-12-03 06:24:01 UTC
Compiling at-spi-1.20.1 fails in atk-bridge: /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -DORBIT2=1 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/atk-1.0 -I/sw/include/orbit-2.0 -I/sw/include/bonobo-activation-2.0 -I/sw/include/libbonobo-2.0 -I/sw/lib/pango-ft219/include/pango-1.0 -I/sw/lib/pango-ft219/include -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include -I/sw/lib/fontconfig2/include -I/sw/include -Os -c -o accessible.lo accessible.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -DORBIT2=1 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/atk-1.0 -I/sw/include/orbit-2.0 -I/sw/include/bonobo-activation-2.0 -I/sw/include/libbonobo-2.0 -I/sw/lib/pango-ft219/include/pango-1.0 -I/sw/lib/pango-ft219/include -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include -I/sw/lib/fontconfig2/include -I/sw/include -Os -c accessible.c -fno-common -DPIC -o .libs/accessible.o In file included from ../libspi/devicelistener.h:30, from ../libspi/libspi.h:46, from accessible.c:30: ../libspi/keymasks.h:27:22: error: X11/Xlib.h: No such file or directory It uses X11 headers but doesn't pass the -I to find them. Previous versions of the GNOME suite inherited that flag from dependent libraries via pkg-config, but not any more. We need $(X_CFLAGS) in INCLUDES in atk-bridge/Makefile.am
Created attachment 99755 [details] [review] patch
Does the patch fix your problem?
Created attachment 99764 [details] [review] patch2 please apply this patch too.
There are lots of Makefile.am in at-spi; could you provide more detailed paths in those diffs?
Found 'em...libspi/Makefile.am and atk-bridge/Makefile.am respectively. Yes, with those two applied (well, their equilvalent applied to the Makefile.in) at-spi-1.20.1 now builds completely (modulo the python bindings, which I patched out because I don't yet have python>=2.4) on my OS X 10.3 machine and passes its self-tests.