Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231509 - net-fs/openafs-kernel-1.4.7: configure failes at linux-2.6.21-xen
Summary: net-fs/openafs-kernel-1.4.7: configure failes at linux-2.6.21-xen
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-11 15:56 UTC by Mathias Schaefer
Modified: 2009-10-24 21:54 UTC (History)
0 users

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


Attachments
config.log (without eclass modification) (config.log_1,1.25 KB, text/plain)
2008-07-11 16:00 UTC, Mathias Schaefer
Details
config.log (after hardcoding kernel-version into get_version()) (config.log_2,6.51 KB, text/plain)
2008-07-11 16:01 UTC, Mathias Schaefer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Schaefer 2008-07-11 15:56:18 UTC
When i try to install openafs-kernel (dependency of net-fs/openafs-1.4.7) configure failes with
"* Found kernel source directory:
 *     /usr/src/linux
 * Could not detect kernel version.
 * Please ensure that /usr/src/linux points to a complete set of Linux sources"

The kernel sources are 	definitively okay (configured + build). 
After that a tried a little hackery on /usr/portage/eclass/linux-info.eclass (I think this is where the error happens). I hardcode the proper values into the function get_version().

Then the configure proceeded, but stuck again later with that error:
"...
checking for linux kernel module build works... no
configure: error: Fix problem or use --disable-kernel-module...
See `config.log' for more details."
Maybe this is an effect of this error at beginning configure:
"Running aclocal
am-wrapper: /usr/bin/aclocal-1.9 is missing or not executable.
            Please try emerging the correct version of automake.
Running autoconf
Running autoconf for configure-libafs
Running autoheader
autoheader-2.61: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader-2.61: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader-2.61: WARNING: is deprecated and discouraged.
autoheader-2.61:
autoheader-2.61: WARNING: Using the third argument of `AC_DEFINE' and
autoheader-2.61: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader-2.61: WARNING: `acconfig.h':
autoheader-2.61:
autoheader-2.61: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader-2.61:                [Define if a function `main' is needed.])
autoheader-2.61:
autoheader-2.61: WARNING: More sophisticated templates can also be produced, see the
autoheader-2.61: WARNING: documentation."

I've attached the config log for both cases.


Reproducible: Always

Steps to Reproduce:
just emerge -av openafs-kernel




emerge --info
Portage 2.1.4.4 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.6.1-r0, 2.6.21-xen x86_64)
=================================================================
System uname: 2.6.21-xen x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5600+
Timestamp of tree: Fri, 11 Jul 2008 06:34:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -pipe -fforce-addr"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -msse3 -O2 -pipe -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi amd64 berkdb cracklib crypt hardened justify midi nls nptl nptlonly openldap pam pic pie readline sasl2 sse2 sse3 ssh ssl tcpd threads unicode urandom vhosts 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="vga radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Mathias Schaefer 2008-07-11 16:00:19 UTC
Created attachment 160127 [details]
config.log (without eclass modification)
Comment 2 Mathias Schaefer 2008-07-11 16:01:02 UTC
Created attachment 160128 [details]
config.log (after hardcoding kernel-version into get_version())
Comment 3 Stefaan De Roeck (RETIRED) gentoo-dev 2008-11-28 13:13:57 UTC
It seems xen-sources-2.6.21 is hard masked, and the latest kernel officially supported by xen seems to be 2.6.18.  Is this really an issue for you?
Comment 4 Stefaan De Roeck (RETIRED) gentoo-dev 2009-10-24 21:54:55 UTC
No feedback for some time now, closing.