sys-libs/db-4.3.29 USE="-bootstrap -doc -java -nocxx -tcltk" checking for mmap... yes checking for munmap... yes checking for shmget... yes checking "rpcgen -C" build of db_server.h... no checking "rpcgen" build of db_server.h... no configure: error: Unable to build RPC support: rpcgen failed. !!! ERROR: sys-libs/db-4.3.29 failed. Portage 2.1_rc2-r2 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r3, 2.6.17-rc4 i686) ================================================================= System uname: 2.6.17-rc4 i686 AMD Athlon(tm) 2600+ Gentoo Base System version 1.12.0 ccache version 2.4 [enabled] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r1 dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.18.1 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-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe -ggdb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/init.d /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache collision-protect confcache distlocks metadata-transfer sandbox sfperms splitdebug strict userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://distfiles.gentoo.org" LANG="en_GB" LC_ALL="en_GB" LDFLAGS="-Wl,-O1" LINGUAS="en_GB en" MAKEOPTS="-j2" 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="/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 apache2 avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli crypt curl dbus dri dvd dvdr eds emboss encode esd ffmpeg firefox flac gdbm gif gnome gnutls gpm gstreamer gtk gtk2 hal imlib isdnlog jpeg kdeenablefinal libg++ libwww mad mikmod mmx mng mono mp3 mpeg mysql ncurses nls nptl offensive ogg opengl pam pcre pdflib perl png pppd python quicktime readline reflection ruby sdl session sndfile speex spell spl sse ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode vorbis xml xorg xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard kernel_linux linguas_en_GB linguas_en userland_GNU video_cards_nvidia" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS This works for me. sed -i 's@\(RPCGEN="rpcgen \)\-C"@\1\-Y /usr/bin \-C"@g' dist/configure
You're using eselect-compiler (or your CONFIG_PROTECT_MASK is really weird), which unlike gcc-config does not create /lib/cpp. When I asked about it when I ran into this same issue, the response was "it's flawed.. dont use eselect". As /lib/cpp is supposed to exist and function properly, and only doesn't because you (me too, so don't take this the wrong way) choose to use a hardmasked package with a bug in it, db should not work around this, in my opinion. Rather, eselect-compiler should be fixed or removed.
Sorry, didn't mean to touch "Component", setting it back.
Opened a new bug for this. *** This bug has been marked as a duplicate of 135749 ***
*** Bug 143740 has been marked as a duplicate of this bug. ***
Doesn't work for me. I don't know that much about sed, but as I suspected my directory environment is different from the example: cbl ~ # sed -i 's@\(RPCGEN="rpcgen \)\-C"@\1\-Y /usr/bin \-C"@g' dist/configure sed: can't read dist/configure: No such file or directory Should I just create this directory? Where? erich1@copper.net (In reply to comment #0) > sys-libs/db-4.3.29 USE="-bootstrap -doc -java -nocxx -tcltk" > > checking for mmap... yes > checking for munmap... yes > checking for shmget... yes > checking "rpcgen -C" build of db_server.h... no > checking "rpcgen" build of db_server.h... no > configure: error: Unable to build RPC support: rpcgen failed. > > !!! ERROR: sys-libs/db-4.3.29 failed. > > > Portage 2.1_rc2-r2 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r3, > 2.6.17-rc4 i686) > ================================================================= > System uname: 2.6.17-rc4 i686 AMD Athlon(tm) 2600+ > Gentoo Base System version 1.12.0 > ccache version 2.4 [enabled] > dev-lang/python: 2.4.3-r1 > dev-python/pycrypto: 2.0.1-r5 > dev-util/ccache: 2.4-r1 > dev-util/confcache: 0.4.2-r1 > sys-apps/sandbox: 1.2.18.1 > 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-r2 > sys-devel/binutils: 2.16.1-r2 > sys-devel/libtool: 1.5.22 > virtual/os-headers: 2.6.11-r5 > ACCEPT_KEYWORDS="x86 ~x86" > AUTOCLEAN="yes" > CBUILD="i686-pc-linux-gnu" > CFLAGS="-O2 -march=athlon-xp -pipe -ggdb" > CHOST="i686-pc-linux-gnu" > CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config > /usr/share/X11/xkb /usr/share/config /var/qmail/control" > CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/init.d > /etc/revdep-rebuild /etc/terminfo /etc/env.d" > CXXFLAGS="-O2 -march=athlon-xp -pipe -ggdb" > DISTDIR="/usr/portage/distfiles" > FEATURES="autoconfig ccache collision-protect confcache distlocks > metadata-transfer sandbox sfperms splitdebug strict userfetch userpriv > usersandbox" > GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://distfiles.gentoo.org" > LANG="en_GB" > LC_ALL="en_GB" > LDFLAGS="-Wl,-O1" > LINGUAS="en_GB en" > MAKEOPTS="-j2" > 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="/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 apache2 avi bash-completion berkdb > bitmap-fonts bzip2 cairo cdr cli crypt curl dbus dri dvd dvdr eds emboss encode > esd ffmpeg firefox flac gdbm gif gnome gnutls gpm gstreamer gtk gtk2 hal imlib > isdnlog jpeg kdeenablefinal libg++ libwww mad mikmod mmx mng mono mp3 mpeg > mysql ncurses nls nptl offensive ogg opengl pam pcre pdflib perl png pppd > python quicktime readline reflection ruby sdl session sndfile speex spell spl > sse ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode > vorbis xml xorg xv xvid zlib elibc_glibc input_devices_evdev > input_devices_keyboard kernel_linux linguas_en_GB linguas_en userland_GNU > video_cards_nvidia" > Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, > PORTAGE_RSYNC_EXTRA_OPTS > > > This works for me. > > sed -i 's@\(RPCGEN="rpcgen \)\-C"@\1\-Y /usr/bin \-C"@g' dist/configure >
Try running gcc-config $(gcc-config -c)
If this persists, please give the full output, and probably the config.log file.
Sure: cbl ~ # gcc-config -c i686-pc-linux-gnu-3.4.3-20050110 (In reply to comment #6) > Try running gcc-config $(gcc-config -c) >
I assume that you want the "full" output from the command: sed -i 's@\(RPCGEN="rpcgen \)\-C"@\1\-Y /usr/bin \-C"@g' dist/configure Well, on my system there's no such file named config.log Here's the sed version cbl ~ # sed --version GNU sed version 4.1.5 Since sed is trying to make an in-place edit on rpcgen, is the version of rpcgen important here? You really have to know what you're doing with rpcgen. Erich (In reply to comment #7) > If this persists, please give the full output, and probably the config.log > file. >