Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing missing kernel header
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jbaublitz
n00b
n00b


Joined: 23 Feb 2015
Posts: 10

PostPosted: Mon Feb 23, 2015 8:08 pm    Post subject: Installing missing kernel header Reply with quote

I have recently run into a problem where I seem to be missing the /usr/include/net/netlink.h kernel header. I am currently developing an application that needs this API to function and I have been unable to figure out how to obtain this header. I briefly considered symlinking to /usr/src/linux/net/netlink.h because it *is* available in the kernel sources but I'd rather not hack around the problem. I tried enabling some of the netlink config options in the kernel, installing, rebooting, and then re-emerging linux-headers. This did not add the header that I needed to /usr/include/net/. Am I missing something about how headers are made available in Gentoo?

I am using hardened-sources-3.17.7-r1 for building the kernel on a x86_64 processor.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42860
Location: 56N 3W

PostPosted: Mon Feb 23, 2015 8:12 pm    Post subject: Reply with quote

jbaublitz,

Try filing a bug at bugs.gentoo.org, if there isn't one.
I would expect stuff like that to be provided by the kernel-headers package.

-- edit --
Scrap that ...
Code:
$ equery b netlink.h
 * Searching for netlink.h ...
sys-kernel/linux-headers-3.19 (/usr/include/linux/netlink.h)

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.


Last edited by NeddySeagoon on Mon Feb 23, 2015 8:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
jbaublitz
n00b
n00b


Joined: 23 Feb 2015
Posts: 10

PostPosted: Mon Feb 23, 2015 8:15 pm    Post subject: Reply with quote

I'm not entirely sure if it is a Gentoo bug after trying one more option. I ran

Code:
make headers_install


and the same headers were installed by the Makefile as by the linux-headers package. Maybe this is a bug but if it is, it seems to be affecting hardened-sources as well as linux-headers. I feel like I might be missing some configuration option that I'm not aware of. That is unless linux-headers is supposed to supply *all* of the headers in /usr/src/linux/include. In that case it definitely is a bug.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42860
Location: 56N 3W

PostPosted: Mon Feb 23, 2015 8:31 pm    Post subject: Reply with quote

jbaublitz,

See my correction above.
linux-headers provides a stable set of all the headers. It does not use your kernel .config.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum