[Grml] Re: error: linux/errno.h not found

T mlist4suntong at yahoo.com
Sat Aug 26 18:17:42 CEST 2006


On Sat, 26 Aug 2006 18:14:59 +0200, T wrote:

> Hi
> 
> I must have one fundamental step missing from setting up my compiling
> environment. This is what I got when compiling a c file:
> 
> In file included from /usr/include/errno.h:36,
>                  from archh.c:1637:
> /usr/include/bits/errno.h:25:26: error: linux/errno.h: No such file or
> directory make[1]: *** [/home/tong/local/bin/archh] Error 1
> 
> I found the file "linux/errno.h" is at
> 
>   /usr/src/linux-headers-2.6.16-grml/include/linux/errno.h
> 
> $ ls -l /usr/src/linux-headers-2.6.16-grml/include/linux/errno.h
> -rw-r--r-- 1 root root 1027 03-20 06:53
> /usr/src/linux-headers-2.6.16-grml/include/linux/errno.h
> 
> How should I tell gcc to look for headers in
> /usr/src/linux-headers-2.6.16-grml/include for all c files, the Debian
> way?

I've already setup an symlink like this:

$ ls -l /usr/src/linux
lrwxrwxrwx 1 root 1000 35 07-16 18:40 /usr/src/linux -> /usr/src/linux-headers-2.6.16-grml//

thanks (and sorry for the a bit OT question).

tong





More information about the Grml mailing list