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 320977 - tile-swap.c doesn't compile with gcc-4.0.2 on Linux.
tile-swap.c doesn't compile with gcc-4.0.2 on Linux.
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
2.3.x
Other Linux
: Normal trivial
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-11-08 15:30 UTC by Tom Williams
Modified: 2008-01-15 14:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tom Williams 2005-11-08 15:30:36 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.
Comment 1 weskaggs 2005-11-08 16:50:03 UTC
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.
Comment 2 Manish Singh 2005-11-08 17:30:12 UTC
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.
Comment 3 Tom Williams 2005-11-08 18:27:49 UTC
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.
Comment 4 Manish Singh 2005-11-08 18:46:38 UTC
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.


Comment 5 Sven Neumann 2005-11-08 20:42:56 UTC
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).
Comment 6 Sven Neumann 2005-11-11 14:28:56 UTC
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.