error compiling gtk-2.10.11



Hi,

gtk-update-icon-cache seems to be broken:

----------8<----------
/bin/sh ../libtool --mode=link arm-iwmmx-linux-gnueabi-gcc  -g -O2 -Wall  -L/some/path/local/arm-iwmmx-linux-gnueabi/lib -L/some/path/local/arm-iwmmx-linux-gnueabi/usr/lib -Wl,-rpath-link -Wl,/some/path/local/arm-iwmmx-linux-gnueabi/usr/lib -o gtk-update-icon-cache  updateiconcache.o ../gdk-pixbuf/libgdk_pixbuf-2.0.la 
mkdir .libs
arm-iwmmx-linux-gnueabi-gcc -g -O2 -Wall -Wl,-rpath-link -Wl,/some/path/local/arm-iwmmx-linux-gnueabi/usr/lib -o .libs/gtk-update-icon-cache updateiconcache.o  -L/some/path/local/arm-iwmmx-linux-gnueabi/lib -L/some/path/local/arm-iwmmx-linux-gnueabi/usr/lib ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so -lm
creating gtk-update-icon-cache
make[4]: Leaving directory `/some/path/build-target/gtk+-2.10.11/gtk'
/usr/bin/gtk-update-icon-cache --force --ignore-theme-index             \
           --source builtin_icons stock-icons > gtkbuiltincache.h.tmp &&        \
        mv gtkbuiltincache.h.tmp gtkbuiltincache.h
No theme index file in '--force'.
If you really want to create an icon cache here, use --ignore-theme-index.
make[3]: *** [gtkbuiltincache.h] Error 1
----------8<----------

This is while cross compiling to ARM, so gtk-update-icon-cache is taken from
the distro, which is debian (2.8.20-7), but it seems that also
gtk/updateiconcache.c in 2.10.11 has argv[1] hardcoded to be the icon cache
filename. I'm wondering how this could ever have worked.

To find out what could be done, I temporarily pimped Makefile this way:

----------8<----------
gtkbuiltincache.h:  stamp-icons
        $(MAKE) $(AM_MAKEFLAGS) gtk-update-icon-cache$(EXEEXT)
-       $(gtk_update_icon_cache_program) --force --ignore-theme-index         \
+       $(gtk_update_icon_cache_program) . --force --ignore-theme-index         \
           --source builtin_icons stock-icons > gtkbuiltincache.h.tmp &&        \
        mv gtkbuiltincache.h.tmp gtkbuiltincache.h
----------8<----------

This lets the compiler go ahead, but it breaks here:

----------8<----------
 arm-iwmmx-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/usr/lib\" -DGTK_DATADIR=\"/usr/share\" -DGTK_DATA_PREFIX=\"/usr\" -DGTK_SYSCONFDIR=\"/etc\" -DGTK_VERSION=\"2.10.11\" -DGTK_BINARY_VERSION=\"2.10.0\" -DGTK_HOST=\"arm-iwmmx-linux-gnueabi\" -DGTK_COMPILATION -DGTK_PRINT_BACKENDS=\"file,lpr\" "-DGTK_PRINT_PREVIEW_COMMAND=\"evince --preview %f\"" -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS -pthread -I/some/path/local/arm-iwmmx-linux-gnueabi/usr/include/glib-2.0 -I/some/path/local/arm-iwmmx-linux-gnueabi/usr/lib/glib-2.0/include -I/some/path/local/arm-iwmmx-linux-gnueabi/usr/include/pango-1.0 -I/some/path/local/arm-iwmmx-linux-gnueabi/usr/include/cairo -I/some/path/local/arm-iwmmx-linux-gnueabi/usr/include -I/some/path/local/arm-iwmmx-linux-gnueabi/usr/include/freetype2 -I/some/path/local/arm-iwmmx-linux-gnueabi/usr/include/freetype2 -I/some/path/local/arm-iwmmx-linux-gnueabi/usr/include -I/some/path/local/arm-iwmmx-linux-gnueabi/usr/include/libpng12 -I/some/path/local/arm-iwmmx-linux-gnueabi/usr/include/atk-1.0 -isystem /some/path/local/arm-iwmmx-linux-gnueabi/include -isystem /some/path/local/arm-iwmmx-linux-gnueabi/usr/include -I/some/path/local/arm-iwmmx-linux-gnueabi/usr/include -g -O2 -Wall -MT gtkicontheme.lo -MD -MP -MF .deps/gtkicontheme.Tpo -c gtkicontheme.c  -fPIC -DPIC -o .libs/gtkicontheme.o
gtkicontheme.c: In function '_gtk_icon_theme_ensure_builtin_cache':
gtkicontheme.c:1166: error: 'builtin_icons' undeclared (first use in this function)
gtkicontheme.c:1166: error: (Each undeclared identifier is reported only once
gtkicontheme.c:1166: error: for each function it appears in.)
gtkicontheme.c: In function 'load_svg_at_size':
gtkicontheme.c:2553: warning: pointer targets in passing argument 2 of 'gdk_pixbuf_loader_write' differ in signedness
make[5]: *** [gtkicontheme.lo] Error 1
----------8<----------

Any idea, anyone?

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]