Listmates,
Building sawfish from src.rpm and all goes well until it needs gtk/gtk.h and then the build bombs:
/usr/src/packages/BUILD/sawfish-1.3.5.3/src/.libs/x.lai -> ./.libexec/sawfish/wm/util/x.lai /usr/src/packages/BUILD/sawfish-1.3.5.3/src/.libs/x.o -> ./.libexec/sawfish/wm/util/x.o /usr/src/packages/BUILD/sawfish-1.3.5.3/src/.libs/x.so -> ./.libexec/sawfish/wm/util/x.so gcc -DHAVE_CONFIG_H -DSAWFISH -D__STRICT_ANSI__ -I. -I.. -o gtk-style gtk-style.c -lnsl gtk-style.c:23:21: error: gtk/gtk.h: No such file or directory gtk-style.c:30: error: expected ‘)’ before ‘*’ token gtk-style.c:36: error: expected declaration specifiers or ‘...’ before ‘GdkColor’ gtk-style.c: In function ‘print_colors’: gtk-style.c:43: error: ‘x’ undeclared (first use in this function)
The header is present and accounted for:
[01:39 alchemy:/usr/src/packages/SPECS] # l /usr/include/gtk-2.0/gtk/gtk.h -rw-r--r-- 1 root root 7381 2009-10-11 11:10 /usr/include/gtk-2.0/gtk/gtk.h
The source calls the header as such:
#include
#include "gtk/gtk.h" Umm... Why isn't it found? How to fix?
Because "gtk/gtk.h" is searched only in /usr/include unless there is a -I flag in the compiler command line which adds another path. However I'am not sure how to fix it. Might it be that this version of sawfish needs to be build against gtk-1 ? Then you have to install the gtk-1 development stuff , which should provide /usr/include/gtk/gtk.h. Why do you want to build sawfish-1.3.5 ? There is 1.6.1 in the repos ( Use http://software.opensuse.org/search to find it) If you really need to build 1.35 and it builds against gtk-2 the proper fix is to modify the src.rpm so that it adds a -I /usr/include/gtk-2.0 at the the compiler command line. As quick and dirty workaround you could try a link /usr/include/gtk->/usr/include/gtk-2.0/gtk. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org