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"
*** Bug 11155 has been marked as a duplicate of this bug. ***
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"
If you remove the /usr/qt/3/etc/ directory prior to emerging, all will be well...
removing /usr/qt/3/etc/ did fix the problem. Is that a reasonable fix, or should there be something more elegant?
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.
anyone who hasn't removed /usr/qt/3/etc yet, please tell me from where this dir is (i have no such dir)
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.
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. :-/
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.
Qt emerged good now. There are some sandbox errors left, but they seemed to be not critical. I think you can close this one.
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.
*** Bug 36930 has been marked as a duplicate of this bug. ***