Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156842 - net-fs/openafs-kernel-1.4.2-r1 fails to compile w/ kernel 2.6.19
Summary: net-fs/openafs-kernel-1.4.2-r1 fails to compile w/ kernel 2.6.19
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kernel-2.6.19
  Show dependency tree
 
Reported: 2006-12-01 12:58 UTC by Dirk Heinrichs
Modified: 2006-12-23 01:25 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Heinrichs 2006-12-01 12:58:38 UTC
make[5]: Entering directory `/usr/src/linux-2.6.19'
  CC [M]  /gentoo/build/portage/net-fs/openafs-kernel-1.4.2-r1/work/openafs-1.4.2/src/libafs/MODLOAD-2.6.19-SP/afs_atomlist.o
In file included from /gentoo/build/portage/net-fs/openafs-kernel-1.4.2-r1/work/openafs-1.4.2/src/libafs/MODLOAD-2.6.19-SP/afs_atomlist.c:11:
/gentoo/build/portage/net-fs/openafs-kernel-1.4.2-r1/work/openafs-1.4.2/include/afs/param.h:34:26: error: linux/config.h: No such file or directory

Portage 2.1.2_rc2-r3 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19 i686)
=================================================================
System uname: 2.6.19 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.12.6
Last Sync: Fri, 01 Dec 2006 18:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/gentoo/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.gentoo.or.kr/ http://gentoo.inode.at/"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/gentoo/build"
PORTDIR="/gentoo/portage"
PORTDIR_OVERLAY="/gentoo/build/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac aalib acl acpi activefilter ada afs alsa aotuv arts asf async audiofile automount avahi bacula-clientonly bacula-split-init bash-completion berkdb bitmap-fonts bluetooth browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia chipcard cli client-only cpudetection cracklib crypt cups dbus dlloader doc dri dtaus dv dvd dvdread dynamic elibc_glibc emacs encode exif fam fbcon ffmpeg flac font-server foomaticdb fuse gcj gd-external gdbm geldkarte gif glibc-omitfp glut gmp gnustep gnutls gpg2-experimental gphoto2 gpm gstreamer hal hardened hbci httpd iconv icq idn imagemagick imap imlib input_devices_keyboard input_devices_mouse ipppd irmc isdnlog jpeg jpeg2k kcal kde kdehiddenvisibility kerberos kernel_linux latex layout-from-conf-file lcms ldap libedit libg++ libwww linguas_de lm_sensors logrotate lzo mad madwifi maildir mbox mime mmxext mng motif moznopango mozsvg mp3 mpeg mule musicbrainz nas ncurses nls no-old-linux noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nptl nptlonly nsplugin objc objc++ objc-gc ofx ogg on-the-fly-crypt openexr opengl pam pam_console pcre pdf perl perlsuid pg-intdatetime pic png postgres ppds pppd pwdb python qt3 qt4 quicktime rdesktop readline real reflection rtc samba savedconfig session slang slp sms socks5 speedo speex spell spl sql sqlite sqlite3 sse ssl stream subversion svg svga swat symlink sysfs syslog tcltk tcpd tetex theora threads tiff toolbar truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales vcd video_cards_radeon vim-pager vim-with-x vlm vorbis wifi win32codecs wmf wxwindows xine xml xorg xprint xscreensaver xv xvid xvmc zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Stefaan De Roeck (RETIRED) gentoo-dev 2006-12-03 00:25:46 UTC
I've been checking daily for the announced 1.4.3 version of openafs which should fix this issue.  I hope it comes soon.  

I won't be putting 1.5.x (the development tree of openafs) unmasked in portage anytime soon, as it isn't meant to go stable at any point, unless when it becomes 1.6.x.  If you're eager to have linux-2.6.19 support, feel free to try the freshly version bumped 1.5.12 though.  It worked ok for me, but I didn't test for long, as linux-2.6.19 has a serious problem with my home-directory on nfs where most subdirectories become unusable.  
Comment 2 Alan Jones 2006-12-13 14:05:58 UTC
It was a really ugly hack, but to get this working all I did was copy /usr/src/linux(2.6.16)/include/linux/config.h to /usr/src/linux(2.6.19)/include/linux/config.h 

It was enough to trick it into compiling and it worked find with 2.6.19-r2 after that.

Cheers,

Alan.
Comment 3 Stefaan De Roeck (RETIRED) gentoo-dev 2006-12-13 23:46:44 UTC
I'm guessing you mean "autoconf.h" as the source for the copy here...

I was surprised to read this, as all this time I was judging by the emails I saw in the upstream mailing lists.  They say that patches are needed for 2.6.19 and have been applied to CVS.  Upon closer looking, this e-mail seems to predate the release of the 1.4.2 version, so I'm guessing this patch made it in there, while the patch to look for autoconf.h when config.h isn't there didn't.  
I'm gonna see if I can do a quick fix here.  

Sorry for being slow on this, but the fact that kernels newer than 2.6.17 seem to hang my machine from time to time doesn't help :)
Comment 4 Alan Jones 2006-12-14 03:04:56 UTC
actually - mine does seem to have issues with some applications, but I think that's because I actually did you use config.h from an older kernel.

I'll try using autoconf.h for the source instead and see how I go :-)

BTW I also had freezing problems on my machine with later kernels using the Marvell network card drivers. But when they weren't there it was fine. (Got an old realtek card in now.)

Cheers,

Alan.
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2006-12-19 15:37:16 UTC
You can patch this easily, change the config.h include to:

#include <linux/version.h>
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18)
#include <linux/config.h>
#endif

Please ensure this is fixed in stable tree ASAP
Comment 6 Stefaan De Roeck (RETIRED) gentoo-dev 2006-12-23 01:25:52 UTC
Fixed in openafs-1.4.2-r2.  PLEASE TEST this version and report back on this bug, so that we can stabilize it as soon as possible.  

Also fixed in openafs-1.4.3_pre20061220.  Upstream was taking a bit too long, so I took a cvs-snapshot from the stable branch.  (Again, please test openafs-kernel-1.4.2-r2 first)