Package: gmime2
Version: 2.0.14-2
Severity: normal
Tags: patch

When building 'gmime2' on amd64/unstable with gcc-4.0,
I get the following error:

md5-utils.c: In function 'md5_get_digest':
md5-utils.c:310: warning: pointer targets in passing argument 2 of 'md5_update' 
differ in signedness
 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 md5-utils.lo -MD 
-MP -MF .deps/md5-utils.Tpo -c md5-utils.c -o md5-utils.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile 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 -o memchunk.lo `test -f 'memchunk.c' || echo './'`memchunk.c; \
then mv -f ".deps/memchunk.Tpo" ".deps/memchunk.Plo"; \
else rm -f ".deps/memchunk.Tpo"; exit 1; \
fi
 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'

With the attached patch 'gmime2' can be compiled
on amd64 using gcc-4.0.

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-06-22 15:26:08.000000000 +0200
@@ -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]

Reply via email to