After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 352609 - tile-cache.c:106: `idle_swapper' undeclared
tile-cache.c:106: `idle_swapper' undeclared
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
git master
Other All
: Normal trivial
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2006-08-23 22:06 UTC by che
Modified: 2006-08-24 06:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description che 2006-08-23 22:06:33 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 )
Comment 1 Sven Neumann 2006-08-24 06:07:06 UTC
Why would you compile without multiprocessor support?
Comment 2 Sven Neumann 2006-08-24 06:31:27 UTC
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).