GNOME Bugzilla – Bug 320977
tile-swap.c doesn't compile with gcc-4.0.2 on Linux.
Last modified: 2008-01-15 14:04:53 UTC
Version details: gcc 4.0.2, glic-2.3.4, glib-2.8.3, gtk+-2.8.6, 2.6.14 Linux kernel Distribution/Version: Slackware 8-base w/ mods I just downloaded gimp-2.3.5.tar.bz2 and used these commands to compile it: $ ./configure --prefix=/usr/local/gimp-2.3 --enable-threaded-tile-swapper (configure output appears) $ time make After 13 minutes, I get this compile error: if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../app -I../../app -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/usr/local/gimp-2.3/include -DG_LOG_DOMAIN=\"Gimp-Base\" -pthread -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -DGIMP_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -g -O2 -Wall -MT tile-manager-crop.o -MD -MP -MF ".deps/tile-manager-crop.Tpo" -c -o tile-manager-crop.o tile-manager-crop.c; \ then mv -f ".deps/tile-manager-crop.Tpo" ".deps/tile-manager-crop.Po"; else rm -f ".deps/tile-manager-crop.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../app -I../../app -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/usr/local/gimp-2.3/include -DG_LOG_DOMAIN=\"Gimp-Base\" -pthread -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -DGIMP_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -g -O2 -Wall -MT tile-swap.o -MD -MP -MF ".deps/tile-swap.Tpo" -c -o tile-swap.o tile-swap.c; \ then mv -f ".deps/tile-swap.Tpo" ".deps/tile-swap.Po"; else rm -f ".deps/tile-swap.Tpo"; exit 1; fi tile-swap.c: In function 'tile_swap_in_attempt': tile-swap.c:953: error: 'bytes' undeclared (first use in this function) tile-swap.c:953: error: (Each undeclared identifier is reported only once tile-swap.c:953: error: for each function it appears in.) make[3]: *** [tile-swap.o] Error 1 make[3]: Leaving directory `/build/gimp-2.3.5/app/base' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/build/gimp-2.3.5/app' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/build/gimp-2.3.5' make: *** [all] Error 2 real 13m28.185s user 10m36.348s sys 2m4.380s tom@linux:~/build/gimp-2.3.5$ I couldn't find this reported in Bugzilla, so I opened this report.
That code quite obviously won't compile with *any* compiler. This is, after all, a development release, and the code is very recent and still heavily under development.
There's no point keeping a bug open about this. It *does* say in configure --help that --enable-threaded-tile-swapper is experimental. If you're not going to help hack on it, simply don't compile with the option.
Guys, don't be so defensive. The only reason I reported the problem is because 2.3.5 was "released", presumably so people could try it out. Since the developers already have access to the code through CVS, it doesn't make sense to "release" development snapshots to them. Take it easy.... Sorry to have wasted your time and I'll be sure not to open bug reports of this nature in the future.
Sure, 2.3.5 is for people to try out. That doesn't mean that work-in-progress code that's marked as such and disabled by default is expected to work. Bugs reports on stuff that's not obviously marked as "not ready" are of course welcome.
Well, the code should be fixed to compile and probably the configure option should be removed as that code isn't work in progress but rather some old code that AFAIK never worked (it used to compile though).
2005-11-11 Sven Neumann <sven@gimp.org> * app/base/tile-swap.c (tile_swap_default_in): fixed compilation of experimental threaded tile-swapper. Fixes bug #320977.