output of ./configure on kdebase-3.1.2 ... checking sys/raw.h usability... yes checking sys/raw.h presence... yes checking for sys/raw.h... yes checking for long long... yes checking for freetype-config... /usr/bin/freetype-config checking for FTC_Manager_New in -lfreetype... yes checking for getifaddrs... yes checking for getnameinfo... yes checking kcarddb.h usability... no checking kcarddb.h presence... no checking for kcarddb.h... no checking X11/extensions/Xrender.h usability... yes checking X11/extensions/Xrender.h presence... yes checking for X11/extensions/Xrender.h... yes checking for XRenderComposite in -lXrender... yes checking for sigset... yes checking for sigaction... yes checking "struct ucred"... yes checking nogroup... nogroup checking for getpeereid... no checking for xmkmf... not found configure: error: xmkmf/imake not found. Please make sure it's in PATH! !!! ERROR: kde-base/kdebase-3.1.2 failed. !!! Function kde_src_compile, Line 118, Exitcode 1 !!! died running ./configure, kde_src_compile:configure Location of imake and xmkmf ... #/var/tmp/portage/kdebase-3.1.2/work/kdebase-3.1.2: whereis xmkmf xmkmf: /usr/X11R6/bin/xmkmf /usr/bin/X11/xmkmf #/var/tmp/portage/kdebase-3.1.2/work/kdebase-3.1.2: whereis imake imake: /usr/X11R6/bin/imake /usr/bin/X11/imake roots path: #/var/tmp/portage/kdebase-3.1.2/work/kdebase-3.1.2: echo ${PATH} /bin:/sbin:/usr/bin/wrappers/:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/opt/sun-j2sdk-1.4.1/bin:/opt/sun-j2sdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.1/sbin:/usr/kde/3.1/bin I cd'd into the work directory and did ./configure manually as root and it worked fine. Not using userpriv option, here is output of emerge --info .. #~: emerge --info Portage 2.0.48-r3 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Duron(tm) Processor GENTOO_MIRRORS=" ftp://mirror.iawnet.sandia.gov/pub/gentoo/" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 3dnow apm avi encode gif jpeg libg++ mmx mpeg ncurses png quicktime truetype xmms xv directfb berkdb slang aalib svga tcltk java guile X sdl pam libwww ssl python imlib oggvorbis gtk opengl cdr alsa -arts -crypt -cups dga -esd fbcon -gdbm -gnome -gpm jikes -kde lcms maildir -mikmod -motif mozilla mysql -nls -oss -pdflib perl -qt -qtmt -readline ruby samba -spell -tcpd -xml2 -zlib" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon -mcpu=athlon -O2 -pipe" CXXFLAGS="-march=athlon -mcpu=athlon -O2 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Could you give the contents of your PATH variable. Also could you attach /var/tmp/portage/kdebase-3.1.2/work/kdebase-3.1.2/config.log.
The contents of path was included, it is ... roots path: #/var/tmp/portage/kdebase-3.1.2/work/kdebase-3.1.2: echo ${PATH} /bin:/sbin:/usr/bin/wrappers/:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/opt/sun-j2sdk-1.4.1/bin:/opt/sun-j2sdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.1/sbin:/usr/kde/3.1/bin and the contents of /var/tmp/portage/kdebase-3.1.2/work/kdebase-3.1.2/config.log is really huge so I will just attatch it.
Created attachment 14375 [details] config.log for kdebase-3.1.2
Created attachment 14376 [details] config.log for kdebase-3.1.2
Created attachment 14377 [details] config.log for kdebase-3.1.2
I forget to set the permissions right the first time, and didn't realize untill the second time, third times a charm!
The path as is passed to the configure script does not include /usr/X11R6/bin as should. Do you have a custom .bashrc or .bash_profile for /root or are you using sudo where those files are custom for your user. Also did you change /etc/profile. If in doubt you can attach those files to this bug.
if [ `/usr/bin/whoami` = 'root' ] then if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ] then export PS1='\[\033[01;31m\]#\[\033[01;34m\]\w\[\033[00m\]: ' fi export PATH="/bin:/sbin:/usr/bin/wrappers/:/usr/bin:/usr/sbin:/usr/X11R6/bin:${ROOTPA TH}" else if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ] then export PS1='\[\033[01;32m\]#\[\033[01;34m\]\w\[\033[00m\]: ' fi export PATH="/bin:/usr/bin/wrappers/:/usr/bin:/usr/local/bin:/opt/vmware/bin:${PATH}" fi That is the entry out of my /etc/profile that sets the path, i do have a .bashrc/.bash_profile but they dont alter the PATH at all, just adds a few alias's.
Does your /etc/profile start with: # /etc/profile: # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/profile,v 1.23 2003/04/29 21: 23:18 azarah Exp $ if [ -e "/etc/profile.env" ] then . /etc/profile.env fi and does /etc/profile.env contain a PATH statement that includes X, also try whether it works with userpriv enabled
#Does your /etc/profile start with: ## /etc/profile: ## $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/profile,v 1.23 2003/04/29 21:23:18 azarah Exp $ # #if [ -e "/etc/profile.env" ] #then # . /etc/profile.env #fi yes #and does /etc/profile.env contain a PATH statement that includes X, also try yes ... export ROOTPATH='/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/o pt/sun-j2sdk-1.4.1/bin:/opt/sun-j2sdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.1/sbin:/usr/kde/ 3.1/bin' export PATH='/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/opt/s un-j2sdk-1.4.1/bin:/opt/sun-j2sdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.1/bin:/usr/games/bin ' both in /etc/profile.env #whether #it works with userpriv enabled no, I get the same error with userpriv enabled plus a few other permission errors.
For now you can edit /etc/profile and remove or comment out the line that says unset ROOTPATH
This is fixed in the newest portage. If you don't want to update just yet, edit /usr/sbin/ebuild.sh and change the line that says: if [ "$USERLAND" == "Linux" ]; then into if [ "$USERLAND" == "GNU" ]; then