Emerge rlocate-0.3.3 fails with kernel 2.6.15 with the following error: * Preparing rlocate module mv Makefile Makefile.automake cp ./Makefile.kernel ./Makefile make -C /usr/src/linux SUBDIRS=`cd . && pwd` modules \ KBUILD_VERBOSE=1 make[1]: Entering directory `/usr/src/linux-2.6.15-gentoo' mkdir -p /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/.tmp_versions make -f scripts/Makefile.build obj=/var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module gcc -Wp,-MD,/var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/.rlocate.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os -fomit-frame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -DIRCTL_DEV_MAJOR=254 -DRL_VERSION=\"0.3.3\" -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I.. -I ./ -I /usr/src/linux/include/ -DMODULE -DKBUILD_BASENAME=rlocate -DKBUILD_MODNAME=rlocate -c -o /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/.tmp_rlocate.o /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.c /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.c:28:39: linux/modversions.h: No such file or directory /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.c: In function `rlocate_dev_register': /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.c:684: warning: passing arg 2 of `class_device_create' makes pointer from integer without a cast /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.c:684: warning: passing arg 3 of `class_device_create' makes integer from pointer without a cast /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.c:684: warning: passing arg 4 of `class_device_create' from incompatible pointer type /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.c:684: error: too few arguments to function `class_device_create' /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.c: In function `insert_path': /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.c:838: error: structure has no member named `sem' /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.c:851: error: structure has no member named `sem' make[2]: *** [/var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.o] Error 1 make[1]: *** [_module_/var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.15-gentoo' make: *** [rlocate.o] Error 2 !!! ERROR: sys-apps/rlocate-0.3.3 failed. !!! Function linux-mod_src_compile, Line 505, Exitcode 2 !!! Unable to make all. !!! If you need support, post the topmost build error, NOT this status message. emerge info: Portage 2.1_pre3-r1 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo x86_64) ================================================================= System uname: 2.6.15-gentoo x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.0_pre13 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -pipe -O2 -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/mail/dspam /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/alias /var/qmail/control /var/run/dspam /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=k8 -pipe -O2 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.mirror.solnet.ch http://mirror.ovh.net/gentoo-distfiles/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.inf.elte.hu/ http://mirror.uni-c.dk/pub/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.pudas.net/gentoo ftp://ftp.solnet.ch/mirror/Gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X aac acl alsa amd64 apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cdr crypt cscope cups curl directfb dv dvd dvdr dvdread eds emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm geoip gif glut gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal idn imagemagick imlib ipv6 jack java jpeg junit kde lcms ldap libwww lua lzw lzw-tiff mad mhash mikmod mng motif mozilla mp3 mpeg mysql ncurses nls nptl nvidia odbc ogg openal opengl pam pcre pdflib perl php plotutils png postgres python qt quicktime readline recode ruby scanner sdl slang snmp speex spell sqlite ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis xine xml xml2 xmms xpm xv zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Seems that someone has had this problem aready back in November with rlocate-0.3.2 and kernel 2.6.14-nitro1. see http://forums.gentoo.org/viewtopic-t-401252-highlight-rlocate.html
It happens here on x86 Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo i686) ================================================================= System uname: 2.6.15-gentoo i686 Intel(R) Pentium(R) M processor 1.86GHz Gentoo Base System version 1.12.0_pre13 ccache version 2.4 [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://gentoo.blueyonder.co.uk http://mirrors.blueyonder.co.uk/mirrors/gentoo" LC_ALL="en_GB.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="x86 X a52 aac afs alsa apm asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdda cddb cdparanoia cdr crypt cscope cups curl daap directfb dri dvd dvdr emboss encode exif expat fbcon ffmpeg flac foomaticdb fortran ftp gdbm gif glut gmp gpm graphviz gstreamer gtk2 imagemagick jack jpeg lcms libg++ libwww lua mad maildir mbox mikmod mmx mng motif mp3 mpeg ncurses nls nptl nvidial ogg oggvorbis opengl pam pcre pdflib perl png python quicktime readline real ruby samba sdl spell sse sse2 ssl svga tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode userlocales vcd vidix vorbis win32codecs xine xv xvid xvmc zlib elibc_glibc kernel_linux userland_GNU video_cards_radeon" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS
Created attachment 76798 [details, diff] rlocate-0.3.3-build.patch
I patched up /usr/portage/sys-apps/rlocate/files/rlocate-0.3.3-build.patch (not suitable for direct drop-in in portage, but do a diff between it and the original and you'll see what needs to be done).
to clarify, it's not suitable for committing. For someone using 2.6.15 it'll work just fine as a replacement for the original rlocate-0.3.3-build.patch (remember to digest the ebuild before emerging).
Created attachment 76800 [details, diff] rlocate-0.3.3-linux-2.6.15.patch try this
With SpanKY's patch I get a different error to before: Preparing rlocate module mv Makefile Makefile.automake cp ./Makefile.kernel ./Makefile make -C /usr/src/linux SUBDIRS=`cd . && pwd` modules \ KBUILD_VERBOSE=1 make[1]: Entering directory `/usr/src/linux-2.6.15-gentoo' mkdir -p /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/.tmp_versions make -f scripts/Makefile.build obj=/var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module gcc -m32 -Wp,-MD,/var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/.rlocate.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -mtune=pentium3 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -DIRCTL_DEV_MAJOR=254 -DRL_VERSION=\"0.3.3\" -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I.. -I ./ -I /usr/src/linux/include/ -DMODULE -DKBUILD_BASENAME=rlocate -DKBUILD_MODNAME=rlocate -c -o /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/.tmp_rlocate.o /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.c /var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.c:28:39: linux/modversions.h: No such file or directory make[2]: *** [/var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.o] Error 1 make[1]: *** [_module_/var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.15-gentoo' make: *** [rlocate.o] Error 2 !!! ERROR: sys-apps/rlocate-0.3.3 failed. !!! Function linux-mod_src_compile, Line 505, Exitcode 2 !!! Unable to make all. !!! If you need support, post the topmost build error, NOT this status message. (I haven't tried Andreas's fix yet)
SpanKY's patch works great for me.
added to cvs, thanks for testing