Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11144 - qt-3.1.0 and qt-3.1.0-r1 don't compile - access violation
Summary: qt-3.1.0 and qt-3.1.0-r1 don't compile - access violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 11155 36930 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-23 19:54 UTC by Alex Walker
Modified: 2004-01-13 09:27 UTC (History)
5 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 Alex Walker 2002-11-23 19:54:45 UTC
I've been trying to compile qt-3.1 for a few days (trying each time the changelog says 
something has changed) and I have been getting this error lots.  Quite often when this 
happens - I recompile and all is well, alas, not this time. 
 
strip: 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/assistant 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/designer 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/linguist 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/lrelease 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/lupdate 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/moc 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/qm2ts 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/qmake 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/qtconfig 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/uic 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/lib/libqt-mt.so.3.1.0 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/lib/libqui.so.1.0.0 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/plugins/sqldrivers/libqsqlmysql.so 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/plugins/designer/libwizards.so 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/plugins/designer/libcppeditor.so 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/plugins/designer/libdlgplugin.so 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/plugins/designer/librcplugin.so 
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/plugins/designer/libkdevdlgplugin.so 
>>> Completed installing into /var/tmp/portage/qt-3.1.0-r1/image/ 
 
--------------------------- ACCESS VIOLATION SUMMARY --------------------------- 
LOG FILE = "/tmp/sandbox-qt-3.1.0-r1-11603.log" 
 
open_wr:   /usr/qt/3/etc/settings/.qtrc.lock 
[Repeat 193 times] 
-------------------------------------------------------------------------------- 
 
One example I can scroll back to of where the violation happens is here: 
 
/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/bin/uic -L 
/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/plugins mainwindowbase.ui -i 
mainwindowbase.h -o mainwindowbase.cpp 
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock 
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock 
/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/bin/uic -L 
/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/plugins paletteeditoradvancedbase.ui 
-i paletteeditoradvancedbase.h -o paletteeditoradvancedbase.cpp 
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock 
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock 
/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/bin/uic -L 
/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/plugins previewwidgetbase.ui -i 
previewwidgetbase.h -o previewwidgetbase.cpp 
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock 
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock 
/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/bin/uic -L 
/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/plugins  -embed qtconfig 
images/appicon.png -o qmake_image_collection.cpp 
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock 
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock 
 
erm, and here is my emerge info: 
 
Portage 2.0.44 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) 
================================================================= 
System uname: 2.4.19-gentoo-r10 i686 Pentium III (Coppermine) 
USE="x86 oss 3dnow apm libg++ mikmod nls zlib gtkhtml gdbm berkdb slang nas guile 
mysql X libwww ldap cdr scanner mmx sse nocardbus cups slp x dgs opengl xv kde qt 
qtmt arts gnome gtk gtk2 bonobo evo gtk-html motif tcltk imlib ncurses readline sdl svga 
lcms gif jpeg png tiff avi mpeg quicktime alsa esd dvd xmms oggvorbis flash encode 
pam ssl crypt imap maildir mbox tcpd mozilla spell truetype xml xml2 pdflib tetex java 
perl python samba gpm" 
ARCH="x86" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr 
-falign-functions=4 -fprefetch-loop-arrays" 
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr 
-falign-functions=4 -fprefetch-loop-arrays" 
ACCEPT_KEYWORDS="x86 ~x86" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/kde/3.1/share/config /usr/share/config 
/opt/quake3/cpma/server.cfg" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
MAKEOPTS="-j2" 
JDK_HOME="/opt/blackdown-jdk-1.3.1" 
JAVA_HOME="/opt/blackdown-jdk-1.3.1" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
Comment 1 SpanKY gentoo-dev 2002-11-24 13:24:03 UTC
*** Bug 11155 has been marked as a duplicate of this bug. ***
Comment 2 Arno Ekkes 2002-11-25 12:40:47 UTC
Same thing happened with me.
And here is my output and emerge info:

Here i where it happened:
QSettings: error creating /root/.qt
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock
QSettings: error creating /root/.qt
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock
QSettings: error creating /root/.qt
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock
QSettings: error creating /root/.qt
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock
/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/bin/uic -L
/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/plugins previewwidgetbase.ui
-o previewwidgetbase.h
QSettings: error creating /root/.qt
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock
QSettings: error creating /root/.qt
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock

And here again:
QSettings: error creating /root/.qt
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock
QSettings: error creating /root/.qt
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock
/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/bin/uic -L
/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/plugins
paletteeditoradvancedbase.ui -i paletteeditoradvancedbase.h -o
paletteeditoradvancedbase.cpp
QSettings: error creating /root/.qt
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock
QSettings: error creating /root/.qt
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock
/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/bin/uic -L
/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/plugins previewwidgetbase.ui
-i previewwidgetbase.h -o previewwidgetbase.cpp
QSettings: error creating /root/.qt
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock
QSettings: error creating /root/.qt
ACCESS DENIED  open_wr:   /usr/qt/3/etc/settings/.qtrc.lock

And the ebuild fails:
>>> Install qt-3.1.0-r1 into /var/tmp/portage/qt-3.1.0-r1/image/ category x11-libs
cp: omitting directory `include/private'
strip:
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/moc
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/uic
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/qm2ts
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/qmake
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/lrelease
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/assistant
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/lupdate
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/qtconfig
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/designer
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/bin/linguist
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/lib/libqui.so.1.0.0
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/lib/libqt-mt.so.3.1.0
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/plugins/designer/libwizards.so
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/plugins/designer/libdlgplugin.so
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/plugins/designer/librcplugin.so
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/plugins/designer/libcppeditor.so
/var/tmp/portage/qt-3.1.0-r1/image/usr/qt/3/plugins/designer/libkdevdlgplugin.so>>>
Completed installing into /var/tmp/portage/qt-3.1.0-r1/image/

--------------------------- ACCESS VIOLATION SUMMARY
---------------------------LOG FILE = "/tmp/sandbox-qt-3.1.0-r1-14409.log"

open_wr:   /usr/qt/3/etc/settings/.qtrc.lock
[repeated 193 times]

Here is emerge info:
Portage 2.0.44 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 AMD Athlon(tm) Processor
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ libwww mikmod mmx
mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib
gtkhtml gdbm berkdb slang readline java guile X sdl tcpd pam ssl perl python esd
imlib oggvorbis gnome gtk qt kde motif opengl alsa -arts bonobo cdr dvd evo gb
-gpm libgda mbox mozilla samba scanner -svga xml"
ARCH="x86"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe"
CXXFLAGS="-march=athlon-tbird -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config
/usr/kde/3/share/config:/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME="/opt/blackdown-jdk-1.3.1"
JAVA_HOME="/opt/blackdown-jdk-1.3.1"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"

Comment 3 Matthew Schick 2002-11-25 15:52:36 UTC
If you remove the /usr/qt/3/etc/ directory prior to emerging, all will be well... 
Comment 4 Alex Walker 2002-11-25 21:59:50 UTC
removing /usr/qt/3/etc/ did fix the problem.  Is that a reasonable fix, or should there be 
something more elegant? 
Comment 5 Arno Ekkes 2002-11-28 14:45:59 UTC
The directory /usr/qt/3/etc is used by redhat-artwork and maybe by other themes.
Therefore I think there should be a better solution.
Comment 6 Hannes Mehnert (RETIRED) gentoo-dev 2002-11-28 17:58:49 UTC
anyone who hasn't removed /usr/qt/3/etc yet, please tell me from where this dir is (i have no such dir) 
Comment 7 Arno Ekkes 2002-11-29 05:18:12 UTC
As I mentioned above, I think the dir is used to store qt themes.
I did some searching, but I can't find definitive prove.
Maybe somebody else can? I'm not a developer, just a user.
Comment 8 Shane Simmons 2002-11-30 03:39:21 UTC
That is indeed a dir used by kde-artwork, as well as redhat-artwork.  Eep!  
 
Some have suggested disabling sandbox, but I'd rather not if it's not 
necessary. :-/ 
Comment 9 Dan Armak (RETIRED) gentoo-dev 2002-11-30 13:40:35 UTC
It seems that when $QTDIR/etc/settings/qtrc exists, uic (or moc or one of those things) tries to create a .qtrc.lock file in that directory which is blocked by the sandbox. I've allowed the ebuild write acecss to that directory, which should be harmless and fix this problem. Please tell me if it works now. One of you also reported access attempts to /root/.qt/qtrc, I want to see if this fixes matters before adding write access to that also. 
Comment 10 Arno Ekkes 2002-12-01 06:03:05 UTC
Qt emerged good now.
There are some sandbox errors left, but they seemed to be not critical.
I think you can close this one.
Comment 11 Dan Armak (RETIRED) gentoo-dev 2002-12-01 14:26:27 UTC
I changed the qt ebuild again a day after the 1st change, allowing yet more writes to 
eliminate all possible cases of sandbox problems. 
If there are any problems left for anyone please say so, or I will close this bug. 
Comment 12 Moshe Kamensky 2004-01-03 22:45:52 UTC
*** Bug 36930 has been marked as a duplicate of this bug. ***