Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

can't emerge rlocate

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
disconn3ct
n00b
n00b
Posts: 8
Joined: Fri Nov 11, 2005 7:23 pm
Location: Moscow, Russia

can't emerge rlocate

  • Quote

Post by disconn3ct » Fri Nov 11, 2005 9:29 pm

Code: Select all

make[2]: Leaving directory `/var/tmp/portage/rlocate-0.3.2/work/rlocate-0.3.2'
make[1]: Leaving directory `/var/tmp/portage/rlocate-0.3.2/work/rlocate-0.3.2'
 * 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.14-nitro1'
mkdir -p /var/tmp/portage/rlocate-0.3.2/work/rlocate-0.3.2/rlocate-module/.tmp_versions
make -f scripts/Makefile.build obj=/var/tmp/portage/rlocate-0.3.2/work/rlocate-0.3.2/rlocate-module
  gcc -m32 -Wp,-MD,/var/tmp/portage/rlocate-0.3.2/work/rlocate-0.3.2/rlocate-module/.rlocate.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.0.1/include -D__KERNEL__ -Iinclude  -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=athlon -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -DIRCTL_DEV_MAJOR=254 -DRL_VERSION=\"0.3.2\" -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.2/work/rlocate-0.3.2/rlocate-module/rlocate.o /var/tmp/portage/rlocate-0.3.2/work/rlocate-0.3.2/rlocate-module/rlocate.c
/var/tmp/portage/rlocate-0.3.2/work/rlocate-0.3.2/rlocate-module/rlocate.c: In function 'rlocate_dev_register':
/var/tmp/portage/rlocate-0.3.2/work/rlocate-0.3.2/rlocate-module/rlocate.c:684: warning: passing argument 2 of 'class_device_create' makes pointer from integer without a cast
/var/tmp/portage/rlocate-0.3.2/work/rlocate-0.3.2/rlocate-module/rlocate.c:684: warning: passing argument 3 of 'class_device_create' makes integer from pointer without a cast
/var/tmp/portage/rlocate-0.3.2/work/rlocate-0.3.2/rlocate-module/rlocate.c:684: warning: passing argument 4 of 'class_device_create' from incompatible pointer type
/var/tmp/portage/rlocate-0.3.2/work/rlocate-0.3.2/rlocate-module/rlocate.c:684: error: too few arguments to function 'class_device_create'
make[2]: *** [/var/tmp/portage/rlocate-0.3.2/work/rlocate-0.3.2/rlocate-module/rlocate.o] Error 1
make[1]: *** [_module_/var/tmp/portage/rlocate-0.3.2/work/rlocate-0.3.2/rlocate-module] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.14-nitro1'
make: *** [rlocate.o] Error 2

!!! ERROR: sys-apps/rlocate-0.3.2 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.

Code: Select all

disconnect / # emerge --info
Portage 2.0.53_rc7 (default-linux/x86/2005.0, gcc-4.0.1, glibc-2.3.5-r3, 2.6.14-nitro1 i686)
=================================================================
System uname: 2.6.14-nitro1 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.0_pre10
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
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
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -ftracer -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -mmmx -m3dnow -msse -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /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="-march=athlon-xp -O3 -pipe -ftracer -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -mmmx -m3dnow -msse -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo http://mirror.pudas.net/gentoo http://ftp.du.se/pub/os/gentoo"
LANG="ru_RU.CP1251"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
LINGUAS="ru"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac acpi alsa audiofile avi bitmap-fonts bzip2 cdr crypt cups curl dga dio divx dvd eds emboss encode exif expat fam fbcon ffmpeg flac foomaticdb ftp gif glut gpm gstreamer gtk2 hal iconv icq idn imagemagick imlib java javascript jpeg kde lcms libg++ libwww lm_sensors mad mikmod mime mmap mmx mng motif mozilla mp3 mpeg ncurses nis nls nptl ogg oggvorbis opengl oss pam pcre pdflib perl pic png python qt quicktime readline samba scanner sdl slang sndfile speex spell sse ssl svg svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis win32codecs wmf xine xml xml2 xmms xv xvid zlib video_cards_nvidia linguas_ru userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL
accoring to last changes in kernel, 2,3,4 agruments must be 3, 4, 5 and 2nd argument of class_device_create should be NULL
Top
_loki_
l33t
l33t
Posts: 680
Joined: Thu Dec 18, 2003 1:30 pm
Location: in the shell

  • Quote

Post by _loki_ » Tue Jan 10, 2006 11:19 pm

I'm having problems trying to compile 0.3.3 against 2.6.15-nitro1..

Code: Select all

/var/tmp/portage/rlocate-0.3.3/work/rlocate-0.3.3/rlocate-module/rlocate.c: In f unction `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 witho ut 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 witho ut 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 f unction `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/r locate.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-nitro1'
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.
..
Top
darkless
n00b
n00b
Posts: 42
Joined: Thu Jan 01, 2004 2:21 pm
Location: Denmark

  • Quote

Post by darkless » Wed Jan 11, 2006 1:02 am

I'm seeing the same thing here... :(
Ignorance should be painful.
Top
darkless
n00b
n00b
Posts: 42
Joined: Thu Jan 01, 2004 2:21 pm
Location: Denmark

  • Quote

Post by darkless » Wed Jan 11, 2006 2:40 am

I got tired of rlocate bitching about 2.6.15, so I patched it up a bit.

Replace the file /usr/portage/sys-apps/rlocate/files/rlocate-0.3.3-build.patch

with this one:
http://www.sundebo.dk/dark-sources/rloc ... uild.patch

and do an "ebuild /usr/portage/sys-apps/rlocate/rlocate-0.3.3.ebuild digest"

Happy emerging :)
Ignorance should be painful.
Top
_loki_
l33t
l33t
Posts: 680
Joined: Thu Dec 18, 2003 1:30 pm
Location: in the shell

  • Quote

Post by _loki_ » Wed Jan 11, 2006 7:44 am

it's working like a charm!
thanks a lot
Top
xenon
Guru
Guru
User avatar
Posts: 432
Joined: Wed Dec 25, 2002 1:47 am
Location: Europe

  • Quote

Post by xenon » Thu Jan 12, 2006 1:48 am

I got the 2.6.15 gentoo kernel; I tried both the patch replacements; they still gave me the following error:

Code: Select all

/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
I finally fixed the thing with a simple

Code: Select all

ln -s /usr/src/linux-2.6.15-gentoo/include/config/modversions.h /usr/src/linux
In case someone had the same problem...
Top
Post Reply

6 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic