Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#11199 - old (bad?) kernel-headers

Attached to Project: Arch Linux
Opened by Vitaly Dolgov (Ferhiord) - Tuesday, 12 August 2008, 14:17 GMT
Last edited by Jan de Groot (JGC) - Monday, 02 February 2009, 07:35 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
i need new kernel-headers, i can't build some projects like kexec-tools
> kexec/arch/i386/kexec-multiboot-x86.c:344: error: ‘PAGE_SIZE’ undeclared (first use in this function)).

but after...

# cd /usr/include
# mv asm asm__
# sudo ln -s /usr/src/linux-2.6.26-ARCH/include/asm-x86/ asm

...everything work

Additional info:
kernel26 2.6.26.2-1
kernel-headers 2.6.25.8-1 (!)

This task depends upon

Closed by  Jan de Groot (JGC)
Monday, 02 February 2009, 07:35 GMT
Reason for closing:  Not a bug
Comment by Jan de Groot (JGC) - Tuesday, 12 August 2008, 15:03 GMT
PAGE_SIZE is kernel stuff, not userspace stuff. The kernel-headers package contains sanitized kernelheaders for userspace. The kexec-tools package is the one that's buggy here, not the kernel-headers package. glibc has a getpagesize() call for this (there's a manpage about it).

Note that kernel-headers doesn't have to match your running kernel, it has to match the version of kernel-headers glibc has been built against.
Comment by Vitaly Dolgov (Ferhiord) - Tuesday, 12 August 2008, 16:08 GMT
May be i'm not right, but kexec uses kernel headers, and kernel maintainer should update headers with the kernel
Comment by Jan de Groot (JGC) - Tuesday, 12 August 2008, 16:43 GMT
No, the headers don't have to be in sync with the running kernel. Kexec-tools source is buggy, it should not use kernel defines when compiling against headers in /usr/include.
Comment by Greg (dolby) - Monday, 02 February 2009, 01:13 GMT
Is this still a problem?

Loading...