Summary: | Can't prepare rlocate module in kernel 2.6.15 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | playmiac <eap> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | david.morgan, gentoo.bugzilla, vapier |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
URL: | http://sourceforge.net/tracker/index.php?func=detail&aid=1398066&group_id=129555&atid=715563 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 118671 | ||
Attachments: |
rlocate-0.3.3-build.patch
rlocate-0.3.3-linux-2.6.15.patch |
Description
playmiac
2006-01-09 05:12:44 UTC
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 |