Skip to contentSkip to conversation

kernel source rpm

DISCUSSION Michael Norton 4 participants 4 messages Oct 28, 2000 – Oct 30, 2000

lore
Share & tools
lore
#0 lore raw

hi,

I am working on an application which requires the header file <linux/limits.h>. Which file do I need to rpm from the LinuxPPC 2000 CD-Rom to install kernel source?

thanks,

Mike

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 6 lines · Michael Norton

hi,

I am working on an application which requires the header file <linux/limits.h>.
Which file do I need to rpm from the LinuxPPC 2000 CD-Rom to install kernel source?

Don't do that. Kernel header files are not intended to be directly #include'd into user applications. Use the the GNU C and/or C++ libraries and headers like you're supposed to, and you will not depend on kernel files at all.

Tim Seufert

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 9 lines · Timothy A. Seufert
Quoted 6 lines · Michael Norton

hi,

I am working on an application which requires the header file <linux/limits.h>.
Which file do I need to rpm from the LinuxPPC 2000 CD-Rom to install kernel source?

Quoted 4 lines

Don't do that. Kernel header files are not intended to be directly #include'd into user applications. Use the the GNU C and/or C++ libraries and headers like you're supposed to, and you will not depend on kernel files at all.

This is correct in the Linus-approved True Linux Userspace (tm). Problem is that on RedHat based systems like linuxppc, glibc doesn't contain /usr/include/linux except as a symlink to /usr/src/linux/include/linux. So you need either kernel sources from some archive or the "kernel-headers" RPM.

--
Martin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#3 lore raw
Quoted 10 lines · Martin Costabel
Quoted 4 lines

Don't do that. Kernel header files are not intended to be directly #include'd into user applications. Use the the GNU C and/or C++ libraries and headers like you're supposed to, and you will not depend on kernel files at all.

This is correct in the Linus-approved True Linux Userspace (tm). Problem is that on RedHat based systems like linuxppc, glibc doesn't contain /usr/include/linux except as a symlink to /usr/src/linux/include/linux. So you need either kernel sources from some archive or the "kernel-headers" RPM.

or Debian GNU/Linux

/me ducks

Signature · 2 lines
Ethan Benson
http://www.alaska.net/~erbenson/