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

Bug 85488

Summary: sys-kernel/linux26-headers doesn't include a linux/version.h file
Product: Gentoo Linux Reporter: Sophie Hamilton <gentoo-bugs>
Component: [OLD] Core systemAssignee: SpanKY <vapier>
Status: RESOLVED DUPLICATE    
Severity: major CC: kernel, scorpiusf
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: version.h

Description Sophie Hamilton 2005-03-16 04:09:54 UTC
The sys-kernel/linux26-headers-2.6.8.1-r2 package (ie. the latest unmasked one with the x86 keyword - I haven't tested any others) has no linux/version.h file. This is a problem when trying to recompile glibc wih NPTL support, for example, as the ebuild checks for this file and, when it can't find it, assumes that you don't have the right version of the headers needed for NPTL.

I was unsure whether to post this bug or not since it seems from what I've read that linux26-headers is being incorporated into linux-headers again, but it seems like a fairly critical thing so I'm going ahead and posting it. Please let me know if this was the wrong thing to do.

Reproducible: Always
Steps to Reproduce:
1. emerge linux26-headers
2. ls /usr/include/linux/version.h

Actual Results:  
"ls: /usr/include/linux/version.h: No such file or directory"

Expected Results:  
The file should have existed.

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.9-gentoo-r9 i686)
=================================================================
System uname: 2.6.9-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 1400MHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 02:51:43)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/
http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://distfiles.gentoo.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/ciaran/portage/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl dga
divx4linux dvd emboss encode esd fam flac font-server foomaticdb fortran gd gdbm
gif gmail gnome gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jack java
jbig joystick jpeg kde kdeenablefinal ladspa libg++ libwww mad mikmod mmx motif
mp3 mpeg multitarget mysql ncurses nls nodrm nptl oggvorbis opengl osspam pdflib
perl pic png povray python qt quicktime readline real samba sdl slang sse ssl
svga tcpd tiff truetype truetype-fonts type1-fonts v4l xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Sophie Hamilton 2005-03-16 04:17:17 UTC
Changing priority to major as thinking about it, putting a 'Core System' bug in with a 'blocker' priorityp robably carries more weight than I intended.
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2005-03-16 05:59:33 UTC
We don't use linux26-headers anymore, please confirm that the issue exists with linux-headers
Comment 3 Sophie Hamilton 2005-03-16 06:30:50 UTC
When I tried it before, it didn't emerge. I can't remember the error now, but I think the error was probably something to do with the fact that I have KBUILD_OUTPUT set all the time when root.

In the end, what I did to gete round the problem in the bug was to untar the linux archive manually and compile a very small kernel so that the include/linux/version.h file was generated. I then copied that to /usr/include/linux and erased the source tree as I had no further use for it. I'll attach the version.h that was generated after this post.

I realise now that linux26-headers isn't being used, but as the available documentation still refers to linux26-headers, would it be possible to generate the version.h file in the ebuild and install it? It could save some headaches. Besides, the 2.6 versions of linux-headers are in package.mask.
Comment 4 Sophie Hamilton 2005-03-16 06:32:24 UTC
Created attachment 53626 [details]
version.h

The generated version.h after compiling a kernel from the linux-2.6.8.1.tar.bz2
source tree.
Comment 5 Kostas Kavourakis 2005-03-22 06:34:32 UTC
I 'm afraid that I must confim the problem, ans it is not just version.h that is missing but other header files as well.
@Daniel Drake:
linux-headers with version higher than 2.4* are either hardmasked or ~arch masked in portage, while linux26-headers is still a valid stable package.
Nevertheless, I tried to merge linux-headers-26* anyway, and it wouldn't even complete the emerge. This is serious bug that needs to be resolved, all new Gentoo installations that sync portage early, will be broken until this is fixed.
Comment 6 Kostas Kavourakis 2005-03-23 00:30:09 UTC
After some more testing today I was able to install linux-headers-2.6.8.1-r2 successfully. It seems to dislike KBUILD_OUTPUT though. I was only able to install the headers after I removed KBUILD_OUTPUT support from my kernel. I recommend more testing to the devs.
Comment 7 Sophie Hamilton 2005-03-23 01:51:12 UTC
Thanks for confirming my suspicions, Costas. I would have tried it myself, but at the time I just wanted to get things up as soon as possible. Good to hear that it's definitely related to KBUILD_OUTPUT though.
Comment 8 SpanKY gentoo-dev 2005-03-24 11:20:50 UTC

*** This bug has been marked as a duplicate of 86104 ***