Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 51066

Summary: kdebase-3.2.2 fails to configure. sandbox access violation.
Product: Gentoo Linux Reporter: anders pearson <anders>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED INVALID    
Severity: major CC: mike, richard
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: config.log

Description anders pearson 2004-05-14 09:06:43 UTC
when i try to emerge kdebase-3.2.2, it dies during the configure stage with the following: 

checking for KDE... libraries /usr/kde/3.2/lib, headers /usr/kde/3.2/include
checking if UIC has KDE plugins available... no
configure: error: you need to install kdelibs first.
 
!!! ERROR: kde-base/kdebase-3.2.2 failed.
!!! Function kde_src_compile, Line 118, Exitcode 1
!!! died running ./configure, kde_src_compile:configure
 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-kde-base_-_kdebase-3.2.2-21228.log"
 
mkdir:     /usr/local/qt/etc/settings
--------------------------------------------------------------------------------


i most definitely *do* have kdelibs installed: 

# emerge -p kdelibs
 
These are the packages that I would merge, in order:
 
Calculating dependencies ...done!
[ebuild   R   ] kde-base/kdelibs-3.2.2


Reproducible: Always
Steps to Reproduce:
1. emerge kde

Actual Results:  
dies with ACCESS VIOLATION SUMMARY.

Expected Results:  
installed kdebase

Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4)
=================================================================
System uname: 2.6.4 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.10
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf
/etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo http://cudlug.cudenver.edu/gentoo/
http://212.219.247.16/sites/www.ibiblio.org/gentoo/
http://212.219.247.20/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/bmg-main/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm arts avi berkdb cdr crypt cups dga directfb encode esd
foomaticdb gdbm gif gnome gpm gtk gtk2 imap imlib jpeg kde libg++ libwww mad
mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl
png postgres python qt quicktime readline sdl slang spell sse ssl svga tcltk
tcpd truetype x86 xinerama xml2 xmms xv zlib"
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-05-14 09:09:33 UTC
have you upgraded/downgraded qt since going to kdelibs-3.2.2?
Comment 2 anders pearson 2004-05-14 10:18:49 UTC
i've re-emerged both qt and kdelibs a few times in attempts to get kdebase to compile, but nothing has seemed to affect it. currently, qt is qt-3.3.0-r1.
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2004-05-14 10:22:20 UTC
The fact that it's looking for qt in /usr/local/qt is a bit disconcerning - do you have another version installed there that you self compiled?
Comment 4 anders pearson 2004-05-14 10:27:10 UTC
nope. i don't even have a /usr/local/qt directory. i haven't installed anything on this machine that wasn't through emerge.
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2004-05-14 10:29:05 UTC
another thought: have you not rebooted or rerun env-update since installing Qt?  perhaps the proper environment variables (QTDIR, etc) aren't set..?
Comment 6 anders pearson 2004-05-14 10:51:08 UTC
i haven't rebooted, but i have run env-update a number of times. 

to verify things, i just did an 'emerge qt kdelibs kdebase' and got the same error. then i did an env-update and tried to to emerge kdebase again, still with no success.
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2004-05-14 12:20:14 UTC
Can you attach the config.log from your /var/tmp/portage/kdebase-3.2.2/work/kdebase-3.2.2/ directory?
Comment 8 anders pearson 2004-05-14 12:32:48 UTC
Created attachment 31439 [details]
config.log
Comment 9 Caleb Tennis (RETIRED) gentoo-dev 2004-05-14 12:48:19 UTC
configure: 29536: /usr/kde/3.2/include/ksharedptr.h
taking that
configure: 29566: /usr/kde/3.2/lib/libkio.la
taking that
configure: 29584: /usr/kde/3.2/lib/kde3/plugins/designer/kdewidgets.la
taking that
configure:29654: result: libraries /usr/kde/3.2/lib, headers /usr/kde/3.2/include
configure:29693: checking if UIC has KDE plugins available
configure:29720: /usr/qt/3/bin/uic -L /usr/kde/3.2/lib/kde3/plugins/designer -nounload -impl actest.h actest.ui > actest.cpp
 [31;01mACCESS DENIED [0m  mkdir:     /usr/local/qt/etc/settings
Conflict in /usr/kde/3.2/lib/kde3/plugins/designer/kdewidgets.so:
  Plugin uses incompatible Qt library (3.3.0)!
configure:29723: $? = 0
configure:29737: result: no
configure:29740: error: you need to install kdelibs first.

Is the interesting part here
Comment 10 Michael Doornbos 2004-05-14 16:44:58 UTC
I have the same issue.  
Comment 11 Stefan Kiesler 2004-05-16 01:25:23 UTC
No sandbox access violation here, but configure fails at the same line, complaining for the already installed kdelibs-3.2.2.
Here's an excerpt from my config.log right after the first "emerge -uv qt kdebase":

configure:29654: result: libraries /usr/kde/3.2/lib, headers /usr/kde/3.2/include
configure:29693: checking if UIC has KDE plugins available
configure:29720: /usr/qt/3/bin/uic -L /usr/kde/3.2/lib/kde3/plugins/designer -nounload -impl actest.h actest.ui > actest.cpp
Conflict in /usr/kde/3.2/lib/kde3/plugins/designer/kdewidgets.so:
  Plugin uses incompatible Qt library!
  expected build key "i686 Linux g++-3.* full-config", got "i686 Linux g++-3.* full-config no-ipv6".
configure:29723: $? = 0
configure:29737: result: no
configure:29740: error: you need to install kdelibs first


After rebooting and trying kdebase again, the log only says:

configure:29654: result: libraries /usr/kde/3.2/lib, headers /usr/kde/3.2/include
configure:29693: checking if UIC has KDE plugins available
configure:29720: /usr/qt/3/bin/uic -L /usr/kde/3.2/lib/kde3/plugins/designer -nounload -impl actest.h actest.ui > actest.cpp
configure:29723: $? = 0
configure:29737: result: no
configure:29740: error: you need to install kdelibs first.
Comment 12 Kristian 2004-05-17 12:33:21 UTC
same problem here. i had +opengl in my use flags. in config.log i found

Conflict in /usr/kde/3.2/lib/kde3/plugins/designer/kdewidgets.so:
  Plugin uses incompatible Qt library!
  expected build key "i686 Linux g++-3.* full-config", got "i686 Linux g++-3.* full-config opengl".

so i recompiled kdelibs without the opengl use flag and kdebase just started to compile.

i'm still pretty new to gentoo, but as of today i only had trouble with use flags ... what was their purpose again? (except making life harder, due to incompatible settings)
Comment 13 anders pearson 2004-05-18 08:56:19 UTC
i tried adding -opengl to my USE flags and recompiling qt and kdelibs, but it doesn't seem to have helped..
Comment 14 Michael Doornbos 2004-05-18 09:03:24 UTC
I resolved my issue my re-emerging qt and then kdelibs (it has to be in that order).  In my case kdelibs got upgraded before qt.
Comment 15 Richard Garand 2004-05-18 20:18:16 UTC
I just fixed this problem by removing the qt libraries from /usr/local/lib and running ldconfig. The problem was that the qt tools, which referenced the qt libraries, were getting linked to the ones in /usr/local, because it comes before /usr/qt/3/lib in the library paths; maybe this should be changed while running an ebuild to give system libraries precedence over /usr/local.
Comment 16 Caleb Tennis (RETIRED) gentoo-dev 2004-05-19 09:03:52 UTC
If you have Qt libraries in /usr/local/qt, they weren't installed by portage, and as such you're liable to run into problems like this.
Comment 17 anders pearson 2004-05-19 13:29:17 UTC
yeah. for some reason i had a version of qt installed in /usr/local/. don't know how it got there, but clearing it out took care of things. 
Comment 18 Richard Garand 2004-05-19 15:29:03 UTC
If someone still has this problem, could you try LD_LIBRARY_PATH="/usr/qt/3/lib" emerge <kde package>?

If that works, it could be placed in the kde eclasses to provide a workaround that would allow people to do things outside of portage (with Gentoo, of all distributions, this should be expected).
Comment 19 Andy Meier 2004-07-05 08:51:12 UTC
I realize this bug is closed but I would just like to confirm the suggestion by Richard Garand works.  I haven't been able to upgrade KDE in about 2 months so it's great to finally try something that works.

Like anders pearson, I had a full QT install in /usr/local and also like anders, I did not put it there.  However, I think I know how I got a copy of QT there:

The emerge for kdebase kept giving me the "Access Violation" error referring to the command "mkdir /usr/local/qt".  The directory did not exist so I tried to fix the problem by manually running "mkdir /usr/local/qt".  Then I re-emerged qt and kdelibs.  For some reason, a full QT install is now in /usr/local/qt.