[patch] Re: 2.3.42: error in cs.o -- stills since 2.3.35

From: Mathijs Mohlmann (mathijs@knoware.nl)
Date: Wed Feb 02 2000 - 14:55:13 EST


>gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
>-fomit-frame-pointer -fno-strict-aliasing -pipe -DCPU=586 -march=i586
>-DMODULE -DMODVERSIONS -include
>/usr/src/linux/include/linux/modversions.h -DEXPORT_SYMTAB -c cs.c
>cs.c:48: linux/compile.h: Arquivo ou diretrio no encontrado
>cs.c:101: parse error before `UTS_VERSION'

Here's what i think happens. "make depend" fails to notice the dependency
with include/linux/compile.h, because it doesn't exist yet. The following
patch should fix this:

        me

--- linux-2.3.42.orig/Makefile Wed Feb 2 10:07:58 2000
+++ devel/Makefile Wed Feb 2 19:30:37 2000
@@ -476,7 +476,7 @@
 sums:
         find . -type f -print | sort | xargs sum > .SUMS
 
-dep-files: scripts/mkdep archdep include/linux/version.h
+dep-files: scripts/mkdep archdep include/linux/version.h
include/linux/compile.h
         scripts/mkdep init/*.c > .depend
         scripts/mkdep `find $(FINDHPATH) -follow -name \*.h ! -name modversions.h -print` > .hdepend
         $(MAKE) $(patsubst %,_sfdep_%,$(SUBDIRS)) _FASTDEP_ALL_SUB_DIRS="$(SUBDIRS)"

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Feb 07 2000 - 21:00:08 EST