Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306959 - net-fs/openafs-kernel-1.4.11 claims "Linux headers lack version definition" and fails to compile
Summary: net-fs/openafs-kernel-1.4.11 claims "Linux headers lack version definition" a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-26 14:08 UTC by Mike Hammill
Modified: 2010-06-21 23:12 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/portage/net-fs:openafs-kernel-1.4.11:20100226-134521.log (openafs_build.log,5.79 KB, text/plain)
2010-02-26 14:14 UTC, Mike Hammill
Details
/var/tmp/portage/net-fs/openafs-kernel-1.4.11/temp/environment (openafs_env.txt,130.82 KB, text/plain)
2010-02-26 14:14 UTC, Mike Hammill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Hammill 2010-02-26 14:08:44 UTC
When trying to rebuild kernel modules for the new gentoo-sources 2.6.33, I noticed net-fs/openafs-kernel-1.4.11 fails to compile now with sys-kernel/linux-headers-2.6.30-r1 and sys-kernel/linux-headers-2.6.32.  It fails during configure with "checking your OS... configure: error: Linux headers lack version definition"

Reproducible: Always

Steps to Reproduce:
1. download gentoo-sources 2.6.33, and build
2. environment at this stage is linux-headers-2.6.30-r1
3. almost ready to boot into new kernel, just rebuild of kernel modules left, try that can find openafs-kernel can't rebuild because of above error.
4. tried installing newer linux-headers (namely 2.6.32), but get same error, making me suspect it is openafs-kernel's configure test that is wrong.

Actual Results:  
No rebuild of openafs-kernel

Expected Results:  
Openafs-kernel modules build against 2.6.30-r1 or 2.6.32 linux-headers and new kernel 2.6.33

Will attach build and config logs.
Comment 1 Mike Hammill 2010-02-26 14:10:01 UTC
# emerge --info =net-fs/openafs-kernel-1.4.11
Portage 2.1.7.16 (default/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r6 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-r6-x86_64-Intel-R-_Pentium-R-_D_CPU_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 26 Feb 2010 12:15:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg ccache collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/ http://ftp.rhnet.is/pub/gentoo/ http://mirror.gentoo.no/ http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/var/pkg"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl afs amd64 apache2 bash-completion berkdb bzip2 caps cgi cli cracklib crypt cups curl cxx dri emacs fam fortran gdbm geoip gnutls gpm iconv ipv6 kerberos ldap mailwrapper mmx modules mudflap nagios-ssh ncurses network-cron nls nptl nptlonly openmp openssl pam pcre perl pppd python readline reflection sasl session spl sse sse2 ssl sysfs tcpd threads unicode vhosts webdav xattr xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="access actions alias asis   auth auth_anon auth_dbm auth_digest authz_default authz_host   autoindex cache case_filter_in case_filter cern_meta cgi cgid charset_lite   dav dav_fs dav_lock deflate dir disk_cache echo env expires ext_filter   file_cache filter headers imap include info log_config logio   mem_cache mime mime_magic negotiation   proxy proxy_connect proxy_ftp proxy_http rewrite   setenvif so speling status   unique_id unique_id userdir usertrack vhost_alias   authn_file    authz_groupfile   authz_user" APACHE2_MPMS=" worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-fs/openafs-kernel-1.4.11 was built with the following:
USE="" 
Comment 2 Mike Hammill 2010-02-26 14:14:08 UTC
Created attachment 221331 [details]
/var/log/portage/net-fs:openafs-kernel-1.4.11:20100226-134521.log
Comment 3 Mike Hammill 2010-02-26 14:14:54 UTC
Created attachment 221335 [details]
/var/tmp/portage/net-fs/openafs-kernel-1.4.11/temp/environment
Comment 4 William Throwe 2010-02-27 03:39:43 UTC
I'm also seeing this.  It looks like the file utsrelease.h moved from include/linux to include/generated in the 2.6.33 kernel.  It looks like upstream has fixed this in the prerelease version 1.4.12 in this commit:

http://openafs.sinenomine.net/git/gitweb.cgi?p=openafs.git;a=commit;h=36f97969f39637042a54c0d45877a48cc9dfcac1

Perhaps the change could be added as a patch on the build system?
Comment 5 William Throwe 2010-02-27 03:49:51 UTC
On testing, that patch alone isn't enough.  There are more configure errors from other files being moved.
Comment 6 Marc Dionne 2010-03-01 17:44:05 UTC
(In reply to comment #5)
> On testing, that patch alone isn't enough.  There are more configure errors
> from other files being moved.

You also need: 
http://git.openafs.org/?p=openafs.git;a=commit;h=fd82293843b954ffa9741c3f71741e700005d7cd
Comment 7 William Throwe 2010-03-02 00:44:31 UTC
(In reply to comment #6)
> You also need: 
> http://git.openafs.org/?p=openafs.git;a=commit;h=fd82293843b954ffa9741c3f71741e700005d7cd
> 

Still doesn't work.  The configure succeeds, but it won't build.
Comment 8 tman 2010-03-09 06:13:43 UTC
it would be nice if someone can fix this as soon as. its annoyed to see that this kernel 2.6.33 is since 2 weeks in portage and this bug of openafs is still not fixed.

thanks
Comment 9 sirphreak 2010-03-23 10:18:29 UTC
(In reply to comment #8)
> it would be nice if someone can fix this as soon as. its annoyed to see that
> this kernel 2.6.33 is since 2 weeks in portage and this bug of openafs is still
> not fixed.
> 
> thanks
> 

Just use 1.4.12, works out of the box.
Comment 10 Mike Hammill 2010-03-23 15:46:35 UTC
(In reply to comment #9)
That would be fine if there was a 1.4.12 in portage.  I find 1.4.11 (unstable) and a hard masked 1.5.34 (x86, amd, ppc).  What box are you talking about getting 1.4.12 from, openafs.org?

Comment 11 Andrew Savchenko gentoo-dev 2010-03-23 19:58:18 UTC
(In reply to comment #10)
> (In reply to comment #9)
> That would be fine if there was a 1.4.12 in portage.  I find 1.4.11 (unstable)
> and a hard masked 1.5.34 (x86, amd, ppc).  What box are you talking about
> getting 1.4.12 from, openafs.org?

See bug 310627.

Comment 12 tman 2010-05-19 18:28:33 UTC
neither openafs-kernel-1.4.11 or openafs-kernel-1.4.12 works anymore with kernel 2.6.34

it would be nice if some dev take a look to there
Comment 13 Ulrich Müller gentoo-dev 2010-05-19 19:58:09 UTC
@tman: Please don't arbitrarily add devs to CC who aren't listed in metadata.
Comment 14 SpanKY gentoo-dev 2010-06-21 23:12:26 UTC
openafs-kernel-1.4.12.1 should fix things