You are not logged in.
Pages: 1
Hi. New here, I hope this is the right place.
I'm taking an OS programming class. The machines we have in the lab run Ubuntu, but I'm working on Arch at home since it's what I have.
I'm getting make errors for procfs calls, and upon further investigation, it seems the asm/uaccess.h header file is missing from the include folder. This code worked on Ubuntu last I checked. Did I miss anything?
Offline
It's part of linux-headers package.
https://wiki.archlinux.org/index.php/FA … ge_is_X.3F
Offline
Hi
Have you installed the linux-headers package?
Offline
@601210, you should install the pkgfile package. This will enable you to simply do pkgfile uaccess.h to find which package(s) that file might belong to.
Recently too, I discovered that the pkgfile package is shipped with bash and zsh compatible functions that will tell you where to find a given command if you get a "Command not found" error. So I just put the following in my zshrc:
source /usr/share/doc/pkgfile/command-not-found.zsh
So now when I issue a command for something I don't have I get:
% thunderbird
thunderbird may be found in the following packages:
extra/thunderbird 17.0.7-1 /usr/bin/thunderbird
Neat, eh?
Offline
I found it, thanks! Now my problem seems to be that the header files are somehow different from what I'm used to. This'll be an interesting night...
Offline
Diffing /usr/src/linux-3.10.10-1-ARCH/arch/x86/include/asm/uaccess.h with what you have on Ubuntu may shed some light on the issue.
Maybe you could install Ubuntu. Issues like this may crop once in a while and you'll end up wasting time.
Offline
Not a (Arch) Kernel Issue; moving to NC...
Offline
Pages: 1