Re: Bug in gtk+-2.0.7?

It's just a typo in io-gif.c. The patch is attached.

James Su

Olexiy Avramchenko wrote:

James Su wrote:

I just tried gtk+ 2.0.7, but gtk-demo cannot run, following message

gtk-demo: relocation error:
/usr/lib/gtk-2.0/2.0.0/loaders/ undefined symbol:

Yes, I tried it with my install and it failed too...
I see this also when run 'test-loaders' program from gdk-pixbuff...
Here's what 'make >/dev/null' in gdk-pixbuf says:

io-png.c:222: warning: `png_malloc_callback' defined but not used
io-png.c:228: warning: `png_free_callback' defined but not used
io-gif.c: In function `lzw_read_byte':
io-gif.c:619: warning: implicit declaration of function `CHECK_LZWP_SP'


diff -urN gtk+-2.0.7.old/gdk-pixbuf/io-gif.c gtk+-2.0.7/gdk-pixbuf/io-gif.c
--- gtk+-2.0.7.old/gdk-pixbuf/io-gif.c	2002-11-04 07:26:29.000000000 +0800
+++ gtk+-2.0.7/gdk-pixbuf/io-gif.c	2002-11-06 18:25:57.000000000 +0800
@@ -534,7 +534,7 @@
 	return 0;
-#define CHECK_LZW_SP() if(((guchar *)context->lzw_sp) >= (((guchar *)context->lzw_stack) + sizeof(context->lzw_stack))) { \
+#define CHECK_LZWP_SP() if(((guchar *)context->lzw_sp) >= (((guchar *)context->lzw_stack) + sizeof(context->lzw_stack))) { \
         g_set_error (context->error,                  \
                      GDK_PIXBUF_ERROR,                \
                      GDK_PIXBUF_ERROR_CORRUPT_IMAGE,  \

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