You are not logged in.

#1 2011-07-01 10:52:37

chemicalfan
Member
From: United Kingdom
Registered: 2011-05-25
Posts: 58

Difference between kernel26-headers and linux-api-headers?

What's the difference between kernel26-headers and linux-api-headers? From what I can gather, linux-api-headers have been "sanitised for use in userspace", but that means nothing to me! You need them for compiling glibc, but that's about it, it seems. I use a custom kernel with custom kernel headers, so the kernel26-headers package doesn't apply to me (as I understand). If both are kernel headers, what's the difference, and are they compatible?

This started as I tried to compile the latest glibc, and it said I needed "linux-api-headers=>2.6.29". I was confused, as I know my custom kernel has supplied headers at version 2.6.39.2, so do I need both header packages??

Offline

#2 2011-07-01 11:06:47

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Difference between kernel26-headers and linux-api-headers?

In short, I think you have basically covered what the difference is.

linux-api-headers is for the toolchain (gcc, glibc, etc) so is needed for all systems
kernel26-headers is for building kernel modules, so is needed if you want to build kernel modules

Note that they do not have to match versions at all because they do not interact with each other.

Offline

#3 2011-07-01 11:07:00

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Difference between kernel26-headers and linux-api-headers?

linux-api-headers is for userspace/runtime stuff while  kernel26-headers are the headers used when building modules.

Also linux-api-headers usually follows the same kernel version as glibc was built against, not the latest kernel version in the repo.

Edit: Old post from before the kernel-headers -> linux-api-headers rename, but still valid:
http://bbs.archlinux.org/viewtopic.php?id=49105

Last edited by Mr.Elendig (2011-07-01 11:08:33)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2011-07-01 12:58:12

chemicalfan
Member
From: United Kingdom
Registered: 2011-05-25
Posts: 58

Re: Difference between kernel26-headers and linux-api-headers?

Right, so I shouldn't panic about linux-api-headers being in conflict with my kernel headers, and just treat it as "just any dependency"?

Offline

#5 2011-07-01 13:31:37

lukaszan
Member
Registered: 2011-05-05
Posts: 117

Re: Difference between kernel26-headers and linux-api-headers?

chemicalfan wrote:

Right, so I shouldn't panic about linux-api-headers being in conflict with my kernel headers, and just treat it as "just any dependency"?

They won't be in conflict. Despite name similarity they are separate packages.

Offline

#6 2011-07-01 13:51:41

chemicalfan
Member
From: United Kingdom
Registered: 2011-05-25
Posts: 58

Re: Difference between kernel26-headers and linux-api-headers?

Cool, thanks very much smile

Offline

Board footer

Powered by FluxBB