From: Andre Fuechsel (af1@irz.inf.tu-dresden.de)
Date: 04/08/93


From: af1@irz.inf.tu-dresden.de (Andre Fuechsel)
Subject: Re: Compiler errors with SLS 0.99pl6
Date: 8 Apr 1993 06:00:17 GMT


In article Ben J Fornshell Fornshell writes:

>I recently ftp'd SLS 0.99pl6 onto my 486DX, it has run almost everything
>allright except that the I can't get anything to compile. When I
>attempt a make dep (after a make config) in /linux I get the following
>error:
>
>init/main.c:12: linux/mktime.h: No such file or directory
>init/main.c:13: linux/types.h: No such file or directory
>init/main.c:14: linux/fcntl.h: No such file or directory
>init/main.c:15: linux/config.h: No such file or directory
>init/main.c:16: linux/sched.h: No such file or directory
>init/main.c:17: linux/tty.h: No such file or directory
>init/main.c:18: linux/head.h: No such file or directory
>init/main.c:19: linux/unistd.h: No such file or directory
>init/main.c:20: linux/string.h: No such file or directory
>make: *** [dep] Error 1

I had always the same problem and the links seemed to be correct. But beneath
the symbolic link there have been some files in /usr/include/linux so the name
of the link was /usr/include/linx/linux (mysterious...). But I think the
following had solved the problem:

- rm /usr/include/linux/*
- rmdir /usr/include/linux
(if the /usr/include/asm is NOT only a link:
  - rm /usr/include/asm/*
  - rmdir /usr/include/asm)
- ln -fs /usr/src/linux/include/linux /usr/include/linux
- ln -fs /usr/src/linux/include/asm /usr/include/asm

Now the /usr/include/linux and /usr/include/asm are ONLY links instead of
real directories!

This should solve the problem.

Andre Fuechsel