This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 1026
  Build failure for *xstat.c for Linux headers < 2.6.4 Last modified: 2010-05-06 15:11
     Query page      Enter new bug
Bug#: 1026   Hardware:   Reporter: Maciej W. Rozycki <macro@linux-mips.org>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: VERIFIED   Priority:  
Resolution: FIXED   Severity:  
Assigned To: Roland McGrath <roland@gnu.org>   Target Milestone:  
Flags: Requestee:
  backport ()
  examined ()
  testsuite ()
Summary:
Keywords:

Attachment Description Type Created Actions
glibc-2.3.5-alpha-xstat64.patch glibc-2.3.5-alpha-xstat64.patch patch 2005-06-20 17:28 Edit | Diff
6001_all_alpha-glibc-2.4-xstat.patch 6001_all_alpha-glibc-2.4-xstat.patch patch 2006-03-15 02:51 Edit | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 1026 depends on: Show dependency tree
Show dependency graph
Bug 1026 blocks:

Additional Comments:


Leave as VERIFIED FIXED
Reopen bug

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2005-06-20 17:25
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.

------- Additional Comment #1 From Maciej W. Rozycki 2005-06-20 17:28 -------
Created an attachment (id=523)
glibc-2.3.5-alpha-xstat64.patch

------- Additional Comment #2 From Mike Frysinger 2006-03-14 06:14 -------
mmm i'm pretty sure GOTO's patch is more correct:
http://sourceware.org/ml/libc-alpha/2005-02/msg00122.html

------- Additional Comment #3 From Mike Frysinger 2006-03-15 02:51 -------
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

------- Additional Comment #4 From GOTO Masanori 2006-03-15 05:44 -------
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?

------- Additional Comment #5 From Mike Frysinger 2006-03-15 05:49 -------
> This patch works more than one year with Debian alpha platforms.

yeah, we've need it for Gentoo/alpha too

------- Additional Comment #6 From Maciej W. Rozycki 2006-03-17 14:56 -------
 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.

------- Additional Comment #7 From Mike Frysinger 2006-03-17 15:02 -------
isnt that the point ?  glibc isnt supposed to work on any kernel lower than what
was passed to --enable-kernel at build time ...

------- Additional Comment #8 From Maciej W. Rozycki 2006-03-17 15:15 -------
 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.

------- Additional Comment #9 From Ulrich Drepper 2008-11-26 23:25 -------
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.

------- Additional Comment #10 From Matt Turner 2010-05-04 17:12 -------
Richard Henderson committed GOTO Masanori's fix in commit 6a84c77c71 to
glibc-ports.git. Marking as fixed.

------- Additional Comment #11 From GOTO Masanori 2010-05-06 15:11 -------
Thanks a lot, Matt and Richard!

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In