You are not logged in.

#1 2013-09-09 17:23:23

601210
Member
Registered: 2013-09-09
Posts: 2

Missing Kernel Headers?

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

#2 2013-09-09 17:28:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Missing Kernel Headers?

It's part of linux-headers package.
https://wiki.archlinux.org/index.php/FA … ge_is_X.3F

Offline

#3 2013-09-09 17:30:05

skualito
Member
Registered: 2008-11-19
Posts: 203

Re: Missing Kernel Headers?

Hi
Have you installed the linux-headers package?

Offline

#4 2013-09-09 17:41:35

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Missing Kernel Headers?

@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

#5 2013-09-09 17:49:35

601210
Member
Registered: 2013-09-09
Posts: 2

Re: Missing Kernel Headers?

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

#6 2013-09-09 17:52:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Missing Kernel Headers?

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

#7 2013-09-09 17:54:30

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Missing Kernel Headers?

Not a (Arch) Kernel Issue; moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB