linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* upgrade to mdadm 2.6 x86_64 issues
@ 2007-01-19  1:22 Daniel Korstad
  2007-01-19  7:30 ` Luca Berra
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Korstad @ 2007-01-19  1:22 UTC (permalink / raw)
  To: linux-raid


I have a Fedora Core 4 on a 64 bit system running a x86_64 FC4;


[root@gateway ~]# uname -a
Linux gateway.korstad.net 2.6.17-1.2142_FC4 #1 Tue Jul 11 22:41:06 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux


Running;

[root@gateway ~]# mdadm --version
mdadm - v2.5.4 - 13 October 2006


I thought I would pull down the latest (2.6) and compile, but it errors out on the make;

gcc -Wall -Werror -Wstrict-prototypes -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -c -o super1.o super1.c
cc1: warnings being treated as errors
super1.c: In function âupdate_super1â:
super1.c:579: warning: format â%lluâ expects type âlong long unsigned intâ, but argument 2 has type â__u64â
super1.c:582: warning: format â%lluâ expects type âlong long unsigned intâ, but argument 2 has type â__u64â
make: *** [super1.o] Error 1
[root@gateway mdadm-2.6]#

Does not like the 64bit system?
Lines 579 thru 582

578 (sbv + 1024 + sizeof(struct bitmap_super_s));
579 printf("Size was %llu\n", __le64_to_cpu(sb->data_size));
580 sb->data_size = __cpu_to_le64(
581 misc->device_size - __le64_to_cpu(sb->data_offse t));
582 printf("Size is %llu\n", __le64_to_cpu(sb->data_size));
583 }


So, I went down one version from 2.6 to 2.5.6 and the make; make install ran fine bringing my FC4 64 bit system up from 2.5.4 to 2.5.6 but I can't get to 2.6 apparently.

[root@gateway mdadm-2.5.6]# make install
/usr/bin/install -D -m 644 mdadm.8 /usr/share/man/man8/mdadm.8
/usr/bin/install -D -m 644 md.4 /usr/share/man/man4/md.4
/usr/bin/install -D -m 644 mdadm.conf.5 /usr/share/man/man5/mdadm.conf.5
/usr/bin/install -D -m 755 mdadm /sbin/mdadm
[root@gateway ~]# mdadm --version
mdadm - v2.5.6 - 9 November 2006


Cheers,
Dan.
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: upgrade to mdadm 2.6 x86_64 issues
  2007-01-19  1:22 upgrade to mdadm 2.6 x86_64 issues Daniel Korstad
@ 2007-01-19  7:30 ` Luca Berra
  0 siblings, 0 replies; 2+ messages in thread
From: Luca Berra @ 2007-01-19  7:30 UTC (permalink / raw)
  To: linux-raid

On Thu, Jan 18, 2007 at 07:22:17PM -0600, Daniel Korstad wrote:
>Lines 579 thru 582
>
>578 (sbv + 1024 + sizeof(struct bitmap_super_s));
>579 printf("Size was %llu\n", __le64_to_cpu(sb->data_size));
>580 sb->data_size = __cpu_to_le64(
>581 misc->device_size - __le64_to_cpu(sb->data_offse t));
>582 printf("Size is %llu\n", __le64_to_cpu(sb->data_size));
>583 }
>
in other places in the code this was fixed previously to use a cast to
ull type, replace the above with:

578 (sbv + 1024 + sizeof(struct bitmap_super_s));
579 printf("Size was %llu\n", (unsigned long long)__le64_to_cpu(sb->data_size));
580 sb->data_size = __cpu_to_le64(
581 misc->device_size - __le64_to_cpu(sb->data_offse t));
582 printf("Size is %llu\n", (unsigned long long)__le64_to_cpu(sb->data_size));
583 }

regards,
L.


-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-19  7:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-19  1:22 upgrade to mdadm 2.6 x86_64 issues Daniel Korstad
2007-01-19  7:30 ` Luca Berra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).