Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24230 - kdebase ./configure not finding xmkmf/imake in path, they are there though!!!!
Summary: kdebase ./configure not finding xmkmf/imake in path, they are there though!!!!
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on: 23992
Blocks:
  Show dependency tree
 
Reported: 2003-07-10 06:33 UTC by robert jorgenson
Modified: 2003-07-17 05:23 UTC (History)
0 users

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


Attachments
config.log for kdebase-3.1.2 (config.log,282.16 KB, application/octet-stream)
2003-07-11 08:26 UTC, robert jorgenson
Details
config.log for kdebase-3.1.2 (config.log,282.16 KB, application/octet-stream)
2003-07-11 08:27 UTC, robert jorgenson
Details
config.log for kdebase-3.1.2 (config.log,282.16 KB, text/plain)
2003-07-11 08:27 UTC, robert jorgenson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description robert jorgenson 2003-07-10 06:33:27 UTC
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"
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2003-07-11 01:50:40 UTC
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.
Comment 2 robert jorgenson 2003-07-11 08:24:59 UTC
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.
Comment 3 robert jorgenson 2003-07-11 08:26:45 UTC
Created attachment 14375 [details]
config.log for kdebase-3.1.2
Comment 4 robert jorgenson 2003-07-11 08:27:07 UTC
Created attachment 14376 [details]
config.log for kdebase-3.1.2
Comment 5 robert jorgenson 2003-07-11 08:27:55 UTC
Created attachment 14377 [details]
config.log for kdebase-3.1.2
Comment 6 robert jorgenson 2003-07-11 08:28:58 UTC
I forget to set the permissions right the first time, and didn't realize untill the second time, third times a charm!
Comment 7 Paul de Vrieze (RETIRED) gentoo-dev 2003-07-11 12:02:42 UTC
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.
Comment 8 robert jorgenson 2003-07-11 13:46:11 UTC
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.
Comment 9 Paul de Vrieze (RETIRED) gentoo-dev 2003-07-12 02:42:46 UTC
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
Comment 10 robert jorgenson 2003-07-12 07:58:08 UTC
#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.
Comment 11 Paul de Vrieze (RETIRED) gentoo-dev 2003-07-17 04:24:22 UTC
For now you can edit /etc/profile and remove or comment out the line that says
unset ROOTPATH
Comment 12 Paul de Vrieze (RETIRED) gentoo-dev 2003-07-17 05:23:33 UTC
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