Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17317 - kde-base/kdelibs-3.1-r3 fails to build as user
Summary: kde-base/kdelibs-3.1-r3 fails to build as user
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-11 13:48 UTC by Ian Smith
Modified: 2003-04-25 02:10 UTC (History)
1 user (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 Ian Smith 2003-03-11 13:48:45 UTC
access violation

Reproducible: Always
Steps to Reproduce:
1. found during emerge -u world
2. presumably emerge kdelibs will do, but I haven't checked yet (you know how
long it takes . . .)
3.

Actual Results:  
libtool: link: warning: `-version-info' is ignored for programs
/bin/sh ../../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor
-Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
-Wconversion -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O3 -pipe -fno-exceptions
-fno-check-new  -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST
-DQT_NO_COMPAT    -o libkdeprint_management.la -rpath /usr/kde/3.1/lib
-L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib  -version-info 5:0:1
-no-undefined kmdbcreator.lo kmdriverdb.lo kmdriverdbwidget.lo kmiconview.lo
kminfopage.lo kmmainview.lo kmpages.lo kmprinterview.lo kmjobviewer.lo
jobitem.lo kmpropwidget.lo kmpropcontainer.lo kmpropertypage.lo kmpropgeneral.lo
cjanuswidget.lo kmpropmembers.lo kmpropbackend.lo kmpropdriver.lo kmlistview.lo
kminstancepage.lo kmtimer.lo kmwizard.lo kmwizardpage.lo kmwinfopage.lo
kmwpassword.lo kmwsocketutil.lo kmwbackend.lo kmwsocket.lo kmwdriver.lo
kmwdriverselect.lo kmwdrivertest.lo kmwinfobase.lo kmwname.lo kmwend.lo
kmwclass.lo kmwlpd.lo kmwfile.lo kmdriverdialog.lo kmwsmb.lo smbview.lo
kmconfigdialog.lo kmconfigpage.lo kmconfiggeneral.lo kmspecialprinterdlg.lo
kmwlocal.lo kiconselectaction.lo kmconfigpreview.lo sidepixmap.lo
pluginaction.lo kxmlcommanddlg.lo kxmlcommandselector.lo kmconfigcommand.lo
kmconfigfilter.lo kmconfigfonts.lo kmconfigjobs.lo networkscanner.lo
../libkdeprint.la 
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
ACCESS DENIED  unlink:    /.libs/libkdeprint_management.so.4.1.0
make[3]: *** [libkdeprint_management.la] Error 1
make[3]: Leaving directory
`/mnt/scratch/tmp/portage/kdelibs-3.1-r3/work/kdelibs-3.1/kdeprint/management'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/mnt/scratch/tmp/portage/kdelibs-3.1-r3/work/kdelibs-3.1/kdeprint'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/mnt/scratch/tmp/portage/kdelibs-3.1-r3/work/kdelibs-3.1'
make: *** [all] Error 2

!!! ERROR: kde-base/kdelibs-3.1-r3 failed.
!!! Function kde_src_compile, Line 117, Exitcode 2
!!! died running emake, kde_src_compile:make

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-kdelibs-3.1-r3-28048.log"

open_wr:   /.libs/libkdeprint_management.so.4.1.0
open_wr:   /.libs/libkdeprint_management.so.4.1.0
unlink:    /.libs/libkdeprint_management.so.4.1.0
--------------------------------------------------------------------------------

Expected Results:  
merged successfully

137 $ emerge info
Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0)
=================================================================
System uname: 2.4.20 i686 AMD Athlon(tm) XP 1800+
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo
http://mirrors.sunsite.dk/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/init.d /etc/xfce /etc/X11/xkb /etc/gconf /etc/env.d"
PORTDIR="/mnt/scratch/portage"
DISTDIR="/mnt/scratch/portage/distfiles"
PKGDIR="/mnt/scratch/portage/packages"
PORTAGE_TMPDIR="/mnt/scratch/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa
gdbm berkdb slang readline arts tetex bonobo svga java guile X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl cdr
samba mysql postgres odbc dvd -doc dga aalib fbcon mozilla sse tcltk mta-tls"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS=""
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache userpriv usersandbox"
Comment 1 Dan Armak (RETIRED) gentoo-dev 2003-03-11 14:00:19 UTC
carpaski, the "ACCESS DENIED  unlink:    /.libs/libkdeprint_management.so.4.1.0" looks like a 
userpriv issue... what do you think? 
Comment 2 Ian Smith 2003-03-11 16:39:51 UTC
just found out it works as root
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2003-03-12 09:32:23 UTC
'userpriv' generally can't have issues. It's all related to the package.
It either needs to be fixed in the ebuild, just the same as if it were
a root violation or stop using usersandbox.

The former is the better direction, but it's not pressing in any sense.
It's a optional feature, not a requirement.
Comment 4 Ian Smith 2003-03-12 12:12:03 UTC
Should have said before, but I use sudo as user (which fails).  It works in a "pure" root environment.

So no, it shouldn't be a userpriv thing, more likely to be a (e)uid or ENV thing.
Comment 5 Ian Smith 2003-03-15 07:38:33 UTC
portage just tried to bust me down to r2 - same problem:

ACCESS DENIED  open_wr:   /ltdl.loT
../libtool: line 1018: ltdl.loT: Permission denied
ACCESS DENIED  open_wr:   /ltdl.loT
../libtool: line 1097: ltdl.loT: Permission denied
mv: cannot stat `ltdl.loT': No such file or directory
/bin/sh ../libtool --silent --mode=link gcc  -ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -march=athlon-xp -O3 -pipe   -o libltdlc.la   ltdl.lo -ldl 
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
../libtool: ../libtool: No such file or directory
make[2]: *** [libltdlc.la] Error 127
make[2]: Leaving directory `/mnt/scratch/tmp/portage/kdelibs-3.1-r2/work/kdelibs-3.1/libltdl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/scratch/tmp/portage/kdelibs-3.1-r2/work/kdelibs-3.1'
make: *** [all] Error 2

!!! ERROR: kde-base/kdelibs-3.1-r2 failed.
!!! Function kde_src_compile, Line 117, Exitcode 2
!!! died running emake, kde_src_compile:make

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-kdelibs-3.1-r2-21897.log"

open_wr:   /ltdl.loT
open_wr:   /ltdl.loT
--------------------------------------------------------------------------------
Comment 6 Dan Armak (RETIRED) gentoo-dev 2003-03-18 17:02:03 UTC
Oh, that sudo again... yuck... I really don't know what to do about it. At the point where a 
process doesn't have perms for a file it just created... 
 
As for downgrading to r2, that should be fixed now, cf bug 17429. 
Comment 7 Paul de Vrieze (RETIRED) gentoo-dev 2003-04-24 15:00:38 UTC
Could you do a set command both when being root in a working way, and using sudo. After that just try to set one by one all the variables from the sudo environment into the working root environment. That way we can pinpoint the culprit.
Comment 8 Ian Smith 2003-04-24 17:12:28 UTC
This is not happening now, and I might have an idea why.  Trouble is, if I'm right it's my fault, and also very embarrassing ;)

It just occurred to me that it might be due to a clash of emerge with a background emerge rsync run from a cron job.  I might be wrong, but it's impossible to test unless I can reproduce it, which if I am right won't happen again IYSWIM!

If it happens again I'll try the environment test.
Comment 9 Paul de Vrieze (RETIRED) gentoo-dev 2003-04-25 02:10:30 UTC
Ok, I'll close this for now. If it happens again, just submit a comment, and we will reopen it