0.9.33-branch fails to compile since f99df0f182 [libc: backport fallocate() and fallocate64()]
Eugene Rudoy
gene.devel at gmail.com
Sun Sep 21 15:45:48 UTC 2014
Hi all,
just wanted to point out that since f99df0f182
<http://git.uclibc.org/uClibc/commit/?h=0.9.33&id=f99df0f182498402a1f267b3f419a5bda864ad85>
0.9.33-branch fails to compile with the following error:
libc/sysdeps/linux/common/fallocate64.c: In function '__libc_fallocate64':
libc/sysdeps/linux/common/fallocate64.c:29:1: error: macro
"internal_syscall6" requires 10 arguments, but only 8 given
OFF64_HI_LO (offset), OFF64_HI_LO (len)));
^
In file included from ./include/sys/syscall.h:34:0,
from libc/sysdeps/linux/common/fallocate64.c:11:
./include/bits/syscalls.h:39:2: error: 'internal_syscall6' undeclared
(first use in this function)
internal_syscall##nr (, "li\t$2, %2\t\t\t# " #name "\n\t", \
^
libc/sysdeps/linux/common/fallocate64.c:28:15: note: in expansion of macro
'INTERNAL_SYSCALL'
ret = (int) (INTERNAL_SYSCALL(fallocate, err, 6, fd, mode,
^
./include/bits/syscalls.h:39:2: note: each undeclared identifier is
reported only once for each function it appears in
internal_syscall##nr (, "li\t$2, %2\t\t\t# " #name "\n\t", \
^
libc/sysdeps/linux/common/fallocate64.c:28:15: note: in expansion of macro
'INTERNAL_SYSCALL'
ret = (int) (INTERNAL_SYSCALL(fallocate, err, 6, fd, mode,
^
make[1]: *** [libc/sysdeps/linux/common/fallocate64.os] Error
The reason is that OFF64_HI_LO macro is not available in 0.9.33.
Fix: it's either f6a03f19cf
<http://git.uclibc.org/uClibc/commit?id=f6a03f19cf2807170717593b4de8056a1248b99b>
should also be merged to 0.9.33 (I would say the better and the easier
solution) or OFF64_HI_LO should be reimplemented in-place as it was before
f99df0f182.
Best,
Gene
More information about the uClibc
mailing list