This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 5145
  alpha: Fix up NBPG in <sys/user.h> Last modified: 2010-05-04 02:22
     Query page      Enter new bug
Bug#: 5145   Hardware:   Reporter: Maciej W. Rozycki <macro@linux-mips.org>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   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.4-alpha-user-page.patch The fix for the problem patch 2007-10-08 12:33 Edit | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

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

Additional Comments:


Leave as RESOLVED FIXED
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2007-10-08 12:30
Linux headers stopped providing PAGE_SIZE at some point, over a year 
ago, and <asm/page.h>, at least for the Alpha, is now solely for the 
kernel use only, wrapped by an #ifdef __KERNEL__ protection, so there is 
no point in including it at all.

 Here is a patch that provides the necessary definition in a way similar 
to what the i386 port does.  Without this change programs that make use of 
NBPG do not build for the Alpha, e.g. (taken from a build of BFD):

alpha-linux-gcc -DHAVE_CONFIG_H -I. -DTRAD_CORE -I. -I. -I./../include -W -Wall 
-Wstrict-prototypes -Wmissing-prototypes -Werror -mcpu=ev4 -pipe -O2 -fomit-fram
e-pointer -c trad-core.c  -fPIC -DPIC -o .libs/trad-core.o
trad-core.c: In function 'trad_unix_core_file_p':
trad-core.c:122: error: 'PAGE_SIZE' undeclared (first use in this function)
trad-core.c:122: error: (Each undeclared identifier is reported only once
trad-core.c:122: error: for each function it appears in.)

------- Additional Comment #1 From Maciej W. Rozycki 2007-10-08 12:33 -------
Created an attachment (id=2036)
The fix for the problem

2007-10-01  Maciej W. Rozycki  <macro@linux-mips.org>

	* sysdeps/unix/sysv/linux/alpha/sys/user.h: Do not include 
	<asm/page.h>.
	(PAGE_SHIFT, PAGE_SIZE, PAGE_MASK): Define.

 Taken against 2.4, but applies to HEAD.  Please apply.

------- Additional Comment #2 From Ulrich Drepper 2008-11-26 23:28 -------
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 #3 From Matt Turner 2010-05-04 02:22 -------
Richard Henderson fixed this in commit 6546e0c4997c8 to glibc-ports.git. Marking
as fixed.

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