mdadm build fails on x86_64 because dietlibc does not provide lseek64() call. Bugfix: http://archives.mandrivalinux.com/changelog/2005-03/msg02075.php Steps to Reproduce: > hsh --initroot-only $hasher_dir > hsh-install $hasher_dir dietlibc > hsh-shell $hasher_dir > cd /tmp > cat > test_lseek64.c << EOF #include <unistd.h> int main(void) { lseek64(0,0,0); return 0; } EOF > diet gcc -Wall -Werror -Wstrict-prototypes -fno-strict-aliasing -pipe -Wall - O2 -o test_lseek64 test_lseek64.c Actual Results: cc1: warnings being treated as errors test_lseek64.c: In function 'main': test_lseek64.c:19: warning: implicit declaration of function 'lseek64' Expected Results: No warnings! No errors!
I have no idea why mdadm build requires dietlibc, but anyway, reassigning to maintainer.
Fixed in 0.30-alt1.1
mdadm binary itself works well with glibc, but mdassemble is linked with dietlibc for reducing size on initrd's and boot floppies. This mode is inherited from Mdk builds.
(In reply to comment #3) > mdadm binary itself works well with glibc, but mdassemble is linked with > dietlibc for reducing size on initrd's and boot floppies. This mode is inherited > from Mdk builds. But why we should use it? Our mkinitrd doesn't support mdassemble/mdadm, only raidtools.