gcc can't find linux/ headers
I have a fresh install of 13.37. I chose defaults for most (maybe all) of the packages, including kernel-headers. I'm trying to build xcpustate but am getting the following error:
In file included from s.c:87:0:
s-linux.c:30:27: fatal error: linux/threads.h: No such file or directory
My glibc version is 2.13 as reported by ldd --version:
ldd (GNU libc) 2.13
The file is at /usr/src/linux-220.127.116.11/include/linux/threads.h
It seems that the files in /usr/include/linux are only a subset of what is in /usr/src/linux/include-18.104.22.168/linux. From what I understand, the files at /usr/include/linux are or should be the ones that libc was built for. I suspect there will be a similar problem with the /usr/include/asm directory.
On my very old linux system (slackware 3... um, yeah, it's been a while...) I recall a similar problem that was solved with some symbolic links but from what I've read that is not the right solution (plus I tried it and it didn't work.)
What's the proper (and hopefully easy) way to resolve this?