GNOME Bugzilla – Bug 352609
tile-cache.c:106: `idle_swapper' undeclared
Last modified: 2006-08-24 06:31:27 UTC
Please describe the problem: In app/base/time-cache.c, variable idle_swapper is not declared when ENABLE_MP is not defined. Compilation the fails on undeclared variable. if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../app -I../../app -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include -DG_LOG_DOMAIN=\"Gimp-Base\" -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 -O3 -march=pentium4 -pipe -fomit-frame-pointer -mfpmath=sse -mmmx -msse -msse2 -Wall -MT tile-cache.o -MD -MP -MF ".deps/tile-cache.Tpo" -c -o tile-cache.o tile-cache.c; \ then mv -f ".deps/tile-cache.Tpo" ".deps/tile-cache.Po"; else rm -f ".deps/tile-cache.Tpo"; exit 1; fi (...) tile-cache.c: In function `tile_cache_init': tile-cache.c:106: error: `idle_swapper' undeclared (first use in this function) tile-cache.c:106: error: (Each undeclared identifier is reported only once tile-cache.c:106: error: for each function it appears in.) make[3]: *** [tile-cache.o] Error 1 Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information: Kevin told me on IRC that the problem was probably introduted in recent fix of a bug. (My guess would be bug 346923 and http://cvs.gnome.org/viewcvs/gimp/app/base/tile-cache.c?r1=1.28&r2=1.29 )
Why would you compile without multiprocessor support?
2006-08-24 Sven Neumann <sven@gimp.org> * INSTALL: mention that multi-processor support is on by default. * app/base/tile-cache.c: fixed compilation if multi-processor support is disabled (bug #352609).