[9dfc02f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
| 6 | <sect1 id="ch-system-linux-libc-headers">
|
---|
| 7 | <title>Linux-Libc-Headers-&linux-libc-headers-version;</title>
|
---|
| 8 | <?dbhtml filename="linux-libc-headers.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-linux-libc-headers">
|
---|
| 11 | <primary sortas="a-Linux-Libc-Headers">Linux-Libc-Headers</primary>
|
---|
| 12 | <secondary>system, headers</secondary></indexterm>
|
---|
| 13 |
|
---|
| 14 | <screen>&buildtime; 0.1 SBU
|
---|
| 15 | &diskspace; 22 MB</screen>
|
---|
| 16 |
|
---|
| 17 |
|
---|
| 18 | <sect2>
|
---|
| 19 | <title>Installation of Linux-Libc-Headers</title>
|
---|
| 20 |
|
---|
| 21 | <para>For years it has been common practice to use so-called <quote>raw</quote>
|
---|
| 22 | kernel headers (straight from a kernel tarball) in /usr/include, but over the
|
---|
| 23 | last few years, the kernel developers have taken a strong stance that such
|
---|
| 24 | things should not be done. Thus was born the linux-libc-headers project,
|
---|
| 25 | designed to maintain an API stable version of the Linux headers.</para>
|
---|
| 26 |
|
---|
| 27 | <para>Install the header files:</para>
|
---|
| 28 |
|
---|
| 29 | <screen><userinput>cp -R include/asm-i386 /usr/include/asm
|
---|
| 30 | cp -R include/linux /usr/include</userinput></screen>
|
---|
| 31 |
|
---|
| 32 | <para>Assure that all the headers are owned by root:</para>
|
---|
| 33 |
|
---|
| 34 | <screen><userinput>chown -R root:root /usr/include/{asm,linux}</userinput></screen>
|
---|
| 35 |
|
---|
| 36 | <para>And make sure all the users can read the headers:</para>
|
---|
| 37 |
|
---|
| 38 | <screen><userinput>find /usr/include/{asm,linux} -type d -exec chmod 755 {} \;
|
---|
| 39 | find /usr/include/{asm,linux} -type f -exec chmod 644 {} \;</userinput></screen>
|
---|
| 40 |
|
---|
| 41 | </sect2>
|
---|
| 42 |
|
---|
| 43 | </sect1>
|
---|