After applying the patches in bug #342101, which really should find their way into portage soon, I get the following error when building: [...] CC [M] /var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.o /var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.c:288: warning: data definition has no type or storage class /var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.c:288: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’ /var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.c:288: warning: parameter names (without types) in function declaration /var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.c: In function ‘osi_linux_alloc’: /var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.c:306: error: ‘afs_linux_alloc_sem’ undeclared (first use in this function) /var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.c:306: error: (Each undeclared identifier is reported only once /var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.c:306: error: for each function it appears in.) /var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.c: In function ‘osi_linux_free’: /var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.c:356: error: ‘afs_linux_alloc_sem’ undeclared (first use in this function) /var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.c: In function ‘osi_linux_free_afs_memory’: /var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.c:378: error: ‘afs_linux_alloc_sem’ undeclared (first use in this function) /var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.c: In function ‘osi_linux_verify_alloced_memory’: /var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.c:404: error: ‘afs_linux_alloc_sem’ undeclared (first use in this function) make[6]: *** [/var/tmp/portage/net-fs/openafs-kernel-1.4.12.1/work/openafs-1.4.12.1/src/libafs/MODLOAD-2.6.37-gentoo-SP/osi_alloc.o] Error 1 [cascading ...] I noticed kqemu and vmware-modules had similar migration problems: something to do with initializing semaphores and/or mutexes. According to below, openafs-kernel-1.4.14 should work with linux-2.6.37: http://dl.openafs.org/dl/openafs/openafs/1.4.14/RELNOTES-1.4.14 Reproducible: Always Steps to Reproduce: Portage 2.2.0_alpha13 (default/linux/x86/10.0/desktop, gcc-4.4.5, glibc-2.11.2-r3, 2.6.37-gentoo i686) ================================================================= System uname: Linux-2.6.37-gentoo-i686-Intel-R-_Pentium-R-_M_processor_1.73GHz-with-gentoo-2.0.1 Timestamp of tree: Wed, 05 Jan 2011 21:45:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r1 dev-lang/python: 2.7.1, 3.1.3 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.6.8 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.34 (sys-kernel/linux-headers) Repositories: gentoo perl-experimental java-overlay local ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 PUEL" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb /var/spool/torque" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=pentium-m -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS=" ftp://gentoo.chem.wisc.edu/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo/ ftp://ftp.ndlug.nd.edu/pub/gentoo/ ftp://lug.mtu.edu/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" 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="/var/lib/layman/perl-experimental /var/lib/layman/java-overlay /usr/local/portage" SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi afs aim alsa apache2 apm audiofile bash-completion berkdb blas branding bzip2 cairo caps cdda cdparanoia cdr cli consolekit cracklib crypt cscope css cups cxx dbus dga dhcp directfb divx4linux djvu dri dts dv dvd dvdr eds emboss encode esd exif expat fam fame fbcon ffmpeg fftw firefox flac font-server fontconfig fortran ftp gcj gd gdu geoip gif ginac glut gmp gnomekeyring gpm gs gstreamer gtk gtk2 hal howl iconv icq icu ieee1394 imagemagick imap imlib ipod ipv6 java java6 javascript jce joystick jpeg jpeg2k kde kerberos lame lapack latex lcms libcaca libedit libnotify lzo mad maildir matroska mikmod mime mmx mmx2 mng modules mp3 mp4 mpeg mpi mplayer msn mtp mudflap musepack musicbrainz ncurses networkmanager nfs nls nntp nptl nptlonly nsplugin offensive ogg oggvorbis openal opengl openmp pam pango pch pcmcia pcre pdf perl plasma plotutils png policykit posix postgres ppds pppd prelude pulseaudio python qt3support qt4 quicktime rar readline rss rtc ruby samba sasl sdl session slang sockets socks5 sox speex spell sse sse2 ssl startup-notification static-libs subtitles subversion svg sysfs syslog sysvinc taglib tcpd tetex tga theora threads tiff truetype udev unicode usb v41 vcd vim-syntax vim-with-x vorbis wavpack wifi win32codecs wxwidgets x264 x86 xcb xcomposite xft xine xinetd xml xorg xosd xpm xprint xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel" 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="dav dir mime mime_magic userdir" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev joystick keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 259000 [details, diff] openafs-kernel-1.4.12.1-seminit.patch Okay, this ought to do it. I don't think that AFS_LINUX24_ENV macro makes any sense but whatever. It compiles, and since I don't use OpenAFS really, that's good enough for me. Again, you should apply this along with the patches from #342101.
openafs 1.4.14 was released yesterday. I will prepare the ebuilds today.
Thanks, Andrej! I just built openafs-kernel (1.4.14) with no patches for once!