Package: gmime2 Severity: normal Tags: patch When building 'gmime2' on amd64 with gcc-4.0, I get the following error:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DGMIME_VERSION=\"2.0.14\" -DG_LOG_DOMAIN=\"gmime\" -DG_DISABLE_DEPRECATED -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT memchunk.lo -MD -MP -MF .deps/memchunk.Tpo -c memchunk.c -fPIC -DPIC -o .libs/memchunk.o memchunk.c: In function 'memchunk_alloc': memchunk.c:111: error: invalid lvalue in assignment make[4]: *** [memchunk.lo] Error 1 make[4]: Leaving directory `/gmime2-2.0.14/gmime' The attached patch 'gmime2' fixes this problem. Regards Andreas Jochens diff -urN ../tmp-orig/gmime2-2.0.14/gmime/memchunk.c ./gmime/memchunk.c --- ../tmp-orig/gmime2-2.0.14/gmime/memchunk.c 2004-02-06 05:51:47.000000000 +0100 +++ ./gmime/memchunk.c 2005-03-19 21:47:33.491747070 +0100 @@ -108,7 +108,8 @@ char *block; if (memchunk->free) { - block = (char *) node = memchunk->free; + node = memchunk->free; + block = (char *) node; node->atoms--; if (node->atoms > 0) return (void *) block + (node->atoms * memchunk->atomsize); -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]