Jam doesnt compile because of permission problems ("Keine Berechtigung" = Permission denied) ========================================================== EMERGE-OUTPUT : ========================================================== antares /usr/portage/distfiles # emerge jam Calculating dependencies ...done! >>> emerge (1 of 1) dev-util/jam-2.4 to / >>> md5 src_uri ;-) jam-2.4.zip >>> Unpacking source... >>> Unpacking jam-2.4.zip to /var/tmp/portage/jam-2.4/work >>> Source unpacked. /usr/sbin/ebuild.sh: line 639: ./command.c: Keine Berechtigung cp: regul
Jam doesnt compile because of permission problems ("Keine Berechtigung" = Permission denied) ========================================================== EMERGE-OUTPUT : ========================================================== antares /usr/portage/distfiles # emerge jam Calculating dependencies ...done! >>> emerge (1 of 1) dev-util/jam-2.4 to / >>> md5 src_uri ;-) jam-2.4.zip >>> Unpacking source... >>> Unpacking jam-2.4.zip to /var/tmp/portage/jam-2.4/work >>> Source unpacked. /usr/sbin/ebuild.sh: line 639: ./command.c: Keine Berechtigung cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt werden: Keine Berechtigung /usr/sbin/ebuild.sh: line 639: ./command.h: Keine Berechtigung cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt werden: Keine Berechtigung /usr/sbin/ebuild.sh: line 639: ./compile.c: Keine Berechtigung cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt werden: Keine Berechtigung /usr/sbin/ebuild.sh: line 639: ./compile.h: Keine Berechtigung cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt werden: Keine Berechtigung /usr/sbin/ebuild.sh: line 639: ./execcmd.h: Keine Berechtigung cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt werden: Keine Berechtigung /usr/sbin/ebuild.sh: line 639: ./execmac.c: Keine Berechtigung cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt werden: Keine Berechtigung /usr/sbin/ebuild.sh: line 639: ./execunix.c: Keine Berechtigung ... ... cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt werden: Keine Berechtigung /usr/sbin/ebuild.sh: line 639: ./builtins.h: Keine Berechtigung cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt werden: Keine Berechtigung /usr/sbin/ebuild.sh: line 639: ./pathsys.h: Keine Berechtigung cp: reguläre Datei »/var/tmp/portage/jam-2.4/temp/edos2unix« kann nicht angelegt werden: Keine Berechtigung gcc -o jam0 -march=athlon-tbird -O2 -pipe -mmmx -m3dnow builtins.c command.c compile.c execunix.c execvms.c expand.c filent.c fileos2.c fileunix.c filevms.c glob.c hash.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c parse.c pathunix.c pathvms.c regexp.c rules.c scan.c search.c timestamp.c variable.c In file included from jamgram.h:11, from scan.c:11: jam.h:475: redefinition of `struct globs' In file included from jamgram.h:13, from scan.c:11: lists.h:43: redefinition of `LIST' lists.h:43: `LIST' previously declared here lists.h:45: redefinition of `struct _list' lists.h:55: redefinition of `LOL' lists.h:55: `LOL' previously declared here lists.h:59: redefinition of `struct _lol' In file included from jamgram.h:14, from scan.c:11: parse.h:15: redefinition of `PARSE' parse.h:15: `PARSE' previously declared here parse.h:17: redefinition of `struct _PARSE' In file included from jamgramtab.h:11, from scan.c:32: jam.h:475: parse error before "struct" In file included from jamgramtab.h:13, from scan.c:32: lists.h:43: redefinition of `LIST' lists.h:43: `LIST' previously declared here lists.h:45: redefinition of `struct _list' lists.h:55: redefinition of `LOL' lists.h:55: `LOL' previously declared here lists.h:59: redefinition of `struct _lol' In file included from jamgramtab.h:14, from scan.c:32: parse.h:15: redefinition of `PARSE' parse.h:15: `PARSE' previously declared here parse.h:17: redefinition of `struct _PARSE' In file included from jamgramtab.h:16, from scan.c:32: rules.h:32: redefinition of `RULE' rules.h:32: `RULE' previously declared here rules.h:33: redefinition of `TARGET' rules.h:33: `TARGET' previously declared here rules.h:34: redefinition of `TARGETS' rules.h:34: `TARGETS' previously declared here rules.h:35: redefinition of `ACTION' rules.h:35: `ACTION' previously declared here rules.h:36: redefinition of `ACTIONS' rules.h:36: `ACTIONS' previously declared here rules.h:37: redefinition of `SETTINGS' rules.h:37: `SETTINGS' previously declared here rules.h:41: redefinition of `struct _rule' rules.h:59: redefinition of `struct _actions' rules.h:67: redefinition of `struct _action' rules.h:77: redefinition of `struct _settings' rules.h:85: redefinition of `struct _targets' rules.h:93: redefinition of `struct _target' In file included from jamgramtab.h:18, from scan.c:32: command.h:38: redefinition of `CMD' command.h:38: `CMD' previously declared here command.h:41: redefinition of `struct _cmd' In file included from scan.c:32: jamgramtab.h:30: redefinition of `cmd_new' jamgram.h:30: `cmd_new' previously defined here jamgramtab.h:59: redefinition of `cmd_free' jamgram.h:59: `cmd_free' previously defined here scan.c:33: parse error before '{' token scan.c: In function `yylex': scan.c:245: `STRING' undeclared (first use in this function) scan.c:245: (Each undeclared identifier is reported only once scan.c:245: for each function it appears in.) scan.c:342: `ARG' undeclared (first use in this function) scan.c: In function `symdump': scan.c:382: `ARG' undeclared (first use in this function) scan.c:385: `STRING' undeclared (first use in this function) make: *** [jam0] Fehler 1 !!! ERROR: dev-util/jam-2.4 failed. !!! Function src_compile, Line 21, Exitcode 2 !!! (no error message)
Created attachment 12527 [details] Full output of "emerge jam"
Created attachment 12528 [details] make.conf
Created attachment 12544 [details] Output of "emerge jam -d"
diff -u -b -B -r1.29 eutils.eclass --- eutils.eclass 11 Mar 2003 21:50:43 -0000 1.29 +++ eutils.eclass 29 May 2003 17:15:12 -0000 @@ -636,6 +636,8 @@ edos2unix() { for f in $@ ; do cp ${f} ${T}/edos2unix + rm -f ${f} sed 's/\r$//' ${T}/edos2unix > ${f} + rm -f ${T}/edos2unix done }
this is a patch for eclass/eutils.eclass
Fine - this works - for this packet I'll report Problems related to this fix here if they occure
Ok - I didn't experience any further problems. Looks like this "hack" is working. I suggest to close this one.
now in cvs
fix is incorrect ... will break other things
only happens on my gcc 3.2 machine on the old gcc 2.95 it works without hack
ok, this bug is not from the eclass, it is from 'userpriv' in FEATURES ... giving over to carpaski ... ive gone ahead and removed the 'fix' added to eclass ... the reason being that if you use edos2unix on a +x shell script, it would currently recreate the file without the +x ... nick: edos2unix fails because it cannot write a file to ${T} ...
*** This bug has been marked as a duplicate of 20251 ***