Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-25-2007, 07:26 AM   #1
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 230

Rep: Reputation: 30
Differences between /usr/include/* and linux/include/*

I was trying to compile PAM, and 'make' complained about not finding the RLIMIT_NICE symbol. After some googling, i found that RLIMIT_NICE should be found inside linux-<version>/include/asm-generic/resource.h.

I've got linux 2.6.19 sources, and i did find RLIMIT_NICE. I think that the problem is that PAM sources look for resource.h inside /usr/include/asm, and there RLIMIT_NICE is not defined.

Is it normal that the two files differ?
What should i do (besides substituting RLIMIT_NICE with 13 everywhere i find it in PAM sources)?

Old 08-26-2007, 03:36 AM   #2
Junior Hacker
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Most often (usually), when make can't fine a source file for compiling, it'll usually mention where it was expecting to find it. And usually it would be something like /usr/src/uname -r/include/asm-generic/resource.h. After all, your compiling using the same source as your kernel, therefore it should be looking in the source directory. Here is the RMLIMIT_NICE line in my resource.h file in that directory:
#define RLIMIT_NICE		13	/* max nice prio allowed to raise to
If according to make's errors it is not in/or looking at this directory, you'll need to make changes in the file from your PAM source that's calling for it which should be mentioned prior to the error message. Maybe you should post the command you issued and all the output that followed to the point this error get's printed on screen.
Old 08-26-2007, 03:41 AM   #3
Junior Hacker
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Might it be possible you don't have your current kernel's source (headers) installed? If you type: uname -r in a terminal, it will tell you what your current kernel is, the uname -r in that directory path should be the exact same.

Last edited by Junior Hacker; 08-26-2007 at 03:45 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing include directories - /usr/local/include quep_fly Linux - Newbie 6 08-12-2007 04:36 PM
which headers usr/include/ or /usr/include/nptl/? Chris.Rector Linux - Enterprise 0 02-02-2007 01:40 PM
/usr/include/linux/Joystick.h -> :( stevesk Slackware 2 07-16-2006 06:04 PM
/usr/include/linux revsteban Debian 1 02-22-2005 10:41 PM
/usr/include/linux contains? alaios Linux - General 4 11-11-2004 10:34 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration