Package: mdadm
Severity: normal
Tags: patch
When building 'mdadm' on amd64 with gcc-4.0,
I get the following error:
gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm/mdadm.conf\" -g
-O2 -DSendmail=\""/usr/sbin/sendmail -t"\" -c -o util.o util.c
cc1: warnings being treated as errors
util.c: In function 'calc_sb_csum':
util.c:514: warning: pointer targets in initialization differ in signedness
make[1]: *** [util.o] Error 1
make[1]: Leaving directory `/mdadm-1.9.0'
make: *** [build-stamp] Error 2
With the attached patch 'mdadm' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/mdadm-1.9.0/util.c ./util.c
--- ../tmp-orig/mdadm-1.9.0/util.c 2005-02-08 16:25:55.320961907 +0100
+++ ./util.c 2005-02-08 16:25:38.552209938 +0100
@@ -511,7 +511,7 @@
unsigned long long newcsum = 0;
unsigned long csum;
int i;
- unsigned int *superc = (int*) super;
+ unsigned int *superc = (unsigned int*) super;
super->sb_csum = 0;
for(i=0; i<MD_SB_BYTES/4; i++)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]