Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47726 - hostap-driver-0.1.3 on 2.6 kernel reports ACCESS DENIED
Summary: hostap-driver-0.1.3 on 2.6 kernel reports ACCESS DENIED
Status: RESOLVED DUPLICATE of bug 41141
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-13 10:07 UTC by Jesper Toft
Modified: 2005-07-17 13:06 UTC (History)
0 users

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 Jesper Toft 2004-04-13 10:07:22 UTC
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 :-)
Comment 1 klavs klavsen 2004-04-18 09:48:58 UTC
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.
Comment 2 Adrian Head 2004-04-18 20:44:08 UTC
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
Comment 3 Josh Glover (RETIRED) gentoo-dev 2004-05-12 07:54:21 UTC
This looks like a duplicate of Bug #41141 to me, which is in turn a duplicate of Bug #32737.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2004-08-25 11:52:01 UTC
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 ***