Re: asm/page.h

2008-04-22 Thread Bryan Kadzban
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Jeremy Huntwork wrote: > On Tue, Apr 22, 2008 at 12:21:49PM -0700, Dan Nicholson wrote: >> So, I suppose you could grep for some regex >> (PAGE_(SHIFT|SIZE|MASK)) of those macros to be safe. > > Nothing for the other patterns. So seems like a usa

Re: asm/page.h

2008-04-22 Thread Jeremy Huntwork
On Wed, Apr 23, 2008 at 12:47:07AM +0200, Philipp Christian Loewner wrote: > I built a 64 bit system without multilib, kernel 2.6.24.4, > GCC 4.3.0, Glibc 2.7. I'll try building a similar system > on a i586 notebook in a few days, and if I'm "lucky", the > errors will happen again so I can post the

Re: asm/page.h

2008-04-22 Thread Philipp Christian Loewner
--- Forwarded message --- From: "Philipp Christian Loewner" <[EMAIL PROTECTED]> To: "LFS Developers Mailinglist" Cc: Subject: Re: asm/page.h Date: Wed, 23 Apr 2008 00:20:53 +0200 Hi there, Hopefully this is not going to be a double post. Sorry for just stum

Re: asm/page.h

2008-04-22 Thread Jeremy Huntwork
On Tue, Apr 22, 2008 at 12:21:49PM -0700, Dan Nicholson wrote: > So, I suppose you could grep for some regex (PAGE_(SHIFT|SIZE|MASK)) > of those macros to be safe. Nothing for the other patterns. So seems like a usable enough solution for perl. Will have to see if this affects any other packages..

Re: asm/page.h

2008-04-22 Thread Dan Nicholson
_size = sysconf(_SC_PAGE_SIZE); Cool. I guess it's just an extraneous #include in SysV.xs. Here's everything defined in my 2.6.22 asm/page.h (on x86): #define PAGE_SHIFT 12 #define PAGE_SIZE (1UL << PAGE_SHIFT) #define PAGE_MASK (~(PAGE_SIZE-1)) #define LARGE_PAGE

Re: asm/page.h

2008-04-22 Thread Jeremy Huntwork
On Tue, Apr 22, 2008 at 01:09:10PM -0600, Jeremy Huntwork wrote: > I removed the line where it includes the header and Perl built > successfully and all tests passed. This is also what Gentoo does: > https://bugs.gentoo.org/show_bug.cgi?id=168312 > > However, there's likely a better and more robus

Re: asm/page.h

2008-04-22 Thread Jeremy Huntwork
On Tue, Apr 22, 2008 at 12:02:14PM -0700, Dan Nicholson wrote: > On Tue, Apr 22, 2008 at 11:47 AM, Jeremy Huntwork > For page.h, we'll need to patch so that getpagesize() or sysconf( > _SC_PAGESIZE) is used instead of PAGE_SIZE. That's the way it always > should have been, anyway. Which source file

Re: asm/page.h

2008-04-22 Thread Dan Nicholson
On Tue, Apr 22, 2008 at 11:47 AM, Jeremy Huntwork <[EMAIL PROTECTED]> wrote: > > Running through a build here (with a couple of package updates) and ran > across an error when running 'make test' for chapter 6 perl. Essentially > amounts to a 'No such file

asm/page.h

2008-04-22 Thread Jeremy Huntwork
Hey all, Running through a build here (with a couple of package updates) and ran across an error when running 'make test' for chapter 6 perl. Essentially amounts to a 'No such file' error for asm/page.h. Tracking it down, it appears that recent Linux headers no longer in