Bug 9939 - Missing lseek64 on x86_64
: Missing lseek64 on x86_64
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/dietlibc)
: unstable
: all Linux
: P2 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2006-08-30 19:31 by
Modified: 2007-04-21 16:21 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2006-08-30 19:31:11
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 From 2006-08-30 19:36:53 -------
I have no idea why mdadm build requires dietlibc, but anyway,
reassigning to maintainer.
------- Comment #2 From 2006-08-30 19:55:48 -------
Fixed in 0.30-alt1.1
------- Comment #3 From 2006-08-30 22:25:51 -------
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 From 2006-08-30 23:19:29 -------
(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.