Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134190 - sys-libs/db-4.3.29 fails on configure: rpcgen failed
Summary: sys-libs/db-4.3.29 fails on configure: rpcgen failed
Status: RESOLVED DUPLICATE of bug 135749
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Paul de Vrieze (RETIRED)
URL: http://linuxfromscratch.org/pipermail...
Whiteboard:
Keywords:
: 143740 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-24 04:22 UTC by Tristan Heaven (RETIRED)
Modified: 2006-08-15 18:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tristan Heaven (RETIRED) gentoo-dev 2006-05-24 04:22:29 UTC
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
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2006-05-24 05:00:35 UTC
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.
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2006-05-24 05:04:21 UTC
Sorry, didn't mean to touch "Component", setting it back.
Comment 3 Tristan Heaven (RETIRED) gentoo-dev 2006-06-06 03:53:18 UTC
Opened a new bug for this.

*** This bug has been marked as a duplicate of 135749 ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-08-12 22:53:10 UTC
*** Bug 143740 has been marked as a duplicate of this bug. ***
Comment 5 erich f 2006-08-14 19:51:46 UTC
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
> 

Comment 6 Tristan Heaven (RETIRED) gentoo-dev 2006-08-14 20:02:32 UTC
Try running gcc-config $(gcc-config -c)
Comment 7 Paul de Vrieze (RETIRED) gentoo-dev 2006-08-15 02:56:05 UTC
If this persists, please give the full output, and probably the config.log file.
Comment 8 erich f 2006-08-15 17:36:52 UTC
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)
> 

Comment 9 erich f 2006-08-15 18:12:42 UTC
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.
>