Bug 9939

Summary: Missing lseek64 on x86_64
Product: Sisyphus Reporter: evseev <evseev>
Component: dietlibcAssignee: Konstantin A Lepikhov (L.A. Kostis) <lakostis>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2    
Version: unstable   
Hardware: all   
OS: Linux   

Description evseev 2006-08-30 19:31:11 MSD
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!
Comment 1 Dmitry V. Levin 2006-08-30 19:36:53 MSD
I have no idea why mdadm build requires dietlibc, but anyway,
reassigning to maintainer.
Comment 2 Konstantin A Lepikhov (L.A. Kostis) 2006-08-30 19:55:48 MSD
Fixed in 0.30-alt1.1
Comment 3 evseev 2006-08-30 22:25:51 MSD
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.
Comment 4 Konstantin A Lepikhov (L.A. Kostis) 2006-08-30 23:19:29 MSD
(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.