kexec-tools fails to build with linux-headers-2.6.20, because the latter no longer provides PAGE_SIZE in asm/page.h. I'm not sure whether it's okay to simply add /usr/src/linux to the header search path, so I'm not sure how to proceed. But in the meantime, I'm adding this bug as a blocker against #159304. Reproducible: Always Steps to Reproduce: ACCEPT_KEYWORDS='~x86' emerge =kexec-tools-1.101-r3 Actual Results: mkdir -p /var/tmp/portage/sys-apps/kexec-tools-1.101-r3/work/kexec-tools-1.101/objdir-i686-pc-linux-gnu/kexec/arch/i386 i686-pc-linux-gnu-gcc -Wall -g -fno-strict-aliasing -I./include -I./util_lib/include -DVERSION='"1.101"' -DRELEASE_DATE='"15 February 2005"' -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ZLIB_H=1 -Ikexec/arch/i386/include -o /var/tmp/portage/sys-apps/kexec-tools-1.101-r3/work/kexec-tools-1.101/objdir-i686-pc-linux-gnu/kexec/arch/i386/kexec-multiboot-x86.o -c kexec/arch/i386/kexec-multiboot-x86.c kexec/arch/i386/kexec-multiboot-x86.c:50:22: error: asm/page.h: No such file or directory kexec/arch/i386/kexec-multiboot-x86.c: In function 'multiboot_x86_load': kexec/arch/i386/kexec-multiboot-x86.c:216: warning: pointer targets in passing argument 3 of 'elf_rel_build_load' differ in signedness kexec/arch/i386/kexec-multiboot-x86.c:345: error: 'PAGE_SIZE' undeclared (first use in this function) kexec/arch/i386/kexec-multiboot-x86.c:345: error: (Each undeclared identifier is reported only once kexec/arch/i386/kexec-multiboot-x86.c:345: error: for each function it appears in.) make: *** [/var/tmp/portage/sys-apps/kexec-tools-1.101-r3/work/kexec-tools-1.101/objdir-i686-pc-linux-gnu/kexec/arch/i386/kexec-multiboot-x86.o] Error 1
what kernel version are you using? Because if it is not in the headers, it should not be in the sources either.
I'm using gentoo-sources-2.6.20. It's a ~x86 box.
asm/page.h got removed from the headers but is needed to build kexec -> headers are broken. Vapier, please advice
if a header doesnt exist, then dont try to include it
I fixed this in the ebuild, thanks done