emerging hostap-driver-0.1.3 fails with access violation: open_wr: /usr/src/linux-2.6.4/include/linux/version.h.tmp open_wr: /usr/src/linux-2.6.4/scripts/.empty.o.d unlink: /usr/src/linux-2.6.4/scripts/empty.o open_wr: /usr/src/linux-2.6.4/scripts/empty.o unlink: /usr/src/linux-2.6.4/scripts/empty.o when building. Reproducible: Always Steps to Reproduce: Have a 2.6 as active kernel ( currently im using 2.6.4 ). emerge net-wireless/hostap-driver-0.1.3 Actual Results: * Building hostap-driver for kernel version: 2.6.4 make -C /usr/src/linux SUBDIRS=/var/tmp/portage/hostap-driver-0.1.3/work/hostap-driver-0.1.3/driver/modules \ MODVERDIR=/var/tmp/portage/hostap-driver-0.1.3/work/hostap-driver-0.1.3/driver/modules modules make[1]: Entering directory `/usr/src/linux-2.6.4' CHK include/linux/version.h ACCESS DENIED open_wr: /usr/src/linux-2.6.4/include/linux/version.h.tmp /bin/sh: line 1: include/linux/version.h.tmp: Permission denied UPD include/linux/version.h CC scripts/empty.o mv: cannot stat `include/linux/version.h.tmp': No such file or directory make[1]: *** [include/linux/version.h] Error 1 make[1]: *** Waiting for unfinished jobs.... ACCESS DENIED open_wr: /usr/src/linux-2.6.4/scripts/.empty.o.d cc1: Permission denied: opening dependency file scripts/.empty.o.d ACCESS DENIED unlink: /usr/src/linux-2.6.4/scripts/empty.o ACCESS DENIED open_wr: /usr/src/linux-2.6.4/scripts/empty.o Assembler messages: FATAL: can't create scripts/empty.o: Permission denied ACCESS DENIED unlink: /usr/src/linux-2.6.4/scripts/empty.o make[2]: *** [scripts/empty.o] Error 1 make[1]: *** [scripts] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.4' make: *** [2.6] Error 2 !!! ERROR: net-wireless/hostap-driver-0.1.3 failed. !!! Function src_compile, Line 63, Exitcode 2 !!! make failed --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-net-wireless_-_hostap-driver-0.1.3-9291.log" open_wr: /usr/src/linux-2.6.4/include/linux/version.h.tmp open_wr: /usr/src/linux-2.6.4/scripts/.empty.o.d unlink: /usr/src/linux-2.6.4/scripts/empty.o open_wr: /usr/src/linux-2.6.4/scripts/empty.o unlink: /usr/src/linux-2.6.4/scripts/empty.o Expected Results: A hostap driver :-)
I "fixed" this - by setting my FEATURES in /etc/make.conf to: "userpriv" - and NOT usersandbox - (ofcourse only while building this package) and then chown'ing the files I wanted it to access to the portage user. To fix this - one would need to copy the linux-driver-tree to the sandbox, and work on it there - rewring all urls from /usr/src/linux.. to /var/tmp/portage... Anyways, it runs perfectly once compiled - just annoying that portage keeps wanting to downgrade to a not-so-good version - 0.12.
I don't get the sandbox errors - however I still get permission denied errors. The way I got around that is to change the following line in /etc/make.conf FEATURES="-sandbox -userpriv -usersandbox -ccache -distcc buildpkg" It does spit out heaps of errors and a few make errors while compiling but it works once compiled. The other information I can add is that my server running: 2.4.22-gentoo-r5 is able to emerge this package with no problems or modifications to make.conf
This looks like a duplicate of Bug #41141 to me, which is in turn a duplicate of Bug #32737.
Please note that this is a due to a failure in the 2.6.x kernel make system that was not corrected until kernel 2.6.6 so please retest with a newer kernel and report back. However this a dup of bug #41141 *** This bug has been marked as a duplicate of 41141 ***