> Date: Fri, 2 Feb 2001 14:35:43 -0500 (EST)
> To: [EMAIL PROTECTED]
> Subject: Kernel Compile Error
> From: "Pete Peterson" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> 
> 
> OK -- this should be trivial, but I'm getting lost in all the makefile
> variables.  A friend was trying to build a new kernel to include
> masquerading for VPN.  He had problems and asked me to help.
> 
> He said he:
>  Did the patches for the VPN (there were two of them)
>  Made configuration file
>  Did "make dep"
>  Did "make clean"
>  Did "make"
> 
> ------------------------------
> He got the following error message immediately from "make":
> ------------------------------
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include
> scripts/split-include.c
> In file included from /usr/include/errno.h:36,
>                  from scripts/split-include.c:26:
> /usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
> make: *** [scripts/split-include] Error 1
> ------------------------------
> 
> The line in /usr/include/bits/errno.h said "#include <linux/errno.h>"
> and there exist the following:
> ----------
> [root@scrappy linux]# locate errno.h|grep linux
> /usr/lib/bcc/include/linux/errno.h
> /usr/lib/bcc/include/linuxmt/errno.h
> /usr/src/linux-2.2.16/include/asm-i386/errno.h
> /usr/src/linux-2.2.16/include/linux/errno.h
> ----------
> also: /usr/src/linux is a symlink to /usr/src/linux-2.2.16
> 
> I would have expected the include-path  to include /usr/src/linux/include,
> so why didn't it find the "linux/errno.h" that's in the list above.
> 
> This has gotta be real simple -- It's been a year or so since I last
> messed with any kernels, but I remember it being straightforward and
> working fine.
> 
> What obvious point am I missing here?

OK -- I checked some more.  At the end of the Makefile was a special rule
for "scripts/split-include":
----
scripts/split-include: scripts/split-include.c
        $(HOSTCC) $(HOSTCFLAGS) -o scripts/split-include scripts/split-include.c
----
So this doesn't use the standard builtin .c.o rule so the include path
doesn't get "HPATH" $(TOPDIR)/include included in the CC rule:
  CC      =$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH)

***************************************************************************
I checked where I had built some kernels in the past, but those kernels
didn't have a split-include in the scripts directory.

I tried the process on another 6.2 2.2.16 machine without doing the 
VPN Masquerade patches -- just using standard config.  Got the same error
my friend got.

Obviously I'm blind to something obvious.  Any help out there?


        pete peterson
        GenRad, Inc.
        7 Technology Park Drive
        Westford, MA 01886-0033

        [EMAIL PROTECTED] or [EMAIL PROTECTED]
        +1-978-589-7478 (GenRad);  +1-978-256-5829 (Home: Chelmsford, MA)
        +1-978-589-2088 (Closest FAX); +1-978-589-7007 (Main GenRad FAX)
 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to