View Bug Activity | Format For Printing
As advised by Ulrich Drepper I'm putting this report for you to resolve when possible. The Alpha/Linux port requires *stat64 calls for building sysdeps/unix/sysv/linux/alpha/*xstat.c, but they have only been introduced in Linux 2.6.4. The attached patch fixes the problem by only using these calls if their numbers are provided by the set of Linux headers used for the build. 2005-06-20 Maciej W. Rozycki <macro@linux-mips.org> * sysdeps/unix/sysv/linux/alpha/fxstat.c (__fxstat): Exclude code for calling the fstat64() syscall if its number is unavailable. * sysdeps/unix/sysv/linux/alpha/lxstat.c (__lxstat): Likewise for lstat64(). * sysdeps/unix/sysv/linux/alpha/xstat.c (__xstat): Likewise for stat64(). Please consider -- for HEAD. See also "http://sourceware.org/ml/libc-alpha/2005-06/msg00042.html" and the containing thread.
Created an attachment (id=523) glibc-2.3.5-alpha-xstat64.patch
mmm i'm pretty sure GOTO's patch is more correct: http://sourceware.org/ml/libc-alpha/2005-02/msg00122.html
Created an attachment (id=920) 6001_all_alpha-glibc-2.4-xstat.patch trunk has a new file that also needs to be updated: sysdeps/unix/sysv/linux/alpha/fxstatat.c
Thanks for your submission. This patch works more than one year with Debian alpha platforms. I'm happy if it'll be integrated in mainline. Maciej, Richard, could you review it?
> This patch works more than one year with Debian alpha platforms. yeah, we've need it for Gentoo/alpha too
Well, it looks like the resulting library won't work correctly if built against headers from Linux 2.6.4 or later and run on an earlier kernel.
isnt that the point ? glibc isnt supposed to work on any kernel lower than what was passed to --enable-kernel at build time ...
It's not about what's been passed to --enable-kernel if at all, but about what kernel headers are used for the build. In this particular case the option wasn't used.
Alpha is not in the main tree anymore since we have no maintainer. Somebody has to step up and volunteer to be the maintainer of the alpha ports tree or nothing will happen.
Richard Henderson committed GOTO Masanori's fix in commit 6a84c77c71 to glibc-ports.git. Marking as fixed.
Thanks a lot, Matt and Richard!