Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 169610

Summary: sys-apps/kexec-tools-1.101-r3 build error with linux-headers-2.6.20
Product: Gentoo Linux Reporter: Sheldon Hearn <sheldonh>
Component: Current packagesAssignee: Stefan Schweizer (RETIRED) <genstef>
Status: RESOLVED FIXED    
Severity: normal CC: kernel
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 159304    

Description Sheldon Hearn 2007-03-06 13:05:31 UTC
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
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2007-03-06 13:59:14 UTC
what kernel version are you using? Because if it is not in the headers, it should not be in the sources either.
Comment 2 Sheldon Hearn 2007-03-06 14:23:31 UTC
I'm using gentoo-sources-2.6.20.  It's a ~x86 box.
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2007-03-06 14:36:58 UTC
asm/page.h got removed from the headers but is needed to build kexec -> headers are broken. Vapier, please advice
Comment 4 SpanKY gentoo-dev 2007-03-06 17:13:20 UTC
if a header doesnt exist, then dont try to include it
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2007-03-06 18:10:36 UTC
I fixed this in the ebuild, thanks done