Re: 2.5.3 compile failure

Heinz Diehl (hd@cavy.de)
Thu, 31 Jan 2002 21:44:41 +0100


On Thu Jan 31 2002, rudmer wrote:

> make[3]: Entering directory `/usr/src/linux-2.5.3/drivers/base'
> gcc -D__KERNEL__ -I/usr/src/linux-2.5.3/include -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
> -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4
> -DEXPORT_SYMTAB -c core.c
> core.c:10: linux/malloc.h: No such file or directory
> make[3]: *** [core.o] Error 1
> make[3]: Leaving directory `/usr/src/linux-2.5.3/drivers/base'
> make[2]: *** [first_rule] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.5.3/drivers/base'
> make[1]: *** [_subdir_base] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.5.3/drivers'
> make: *** [_dir_drivers] Error 2

Open "/linux/drivers/base/core.c" and "fs.c" and change

#include <linux/malloc.h>

into

#include <linux/slab.h>

and recompile.

-- 
# Heinz Diehl, 68259 Mannheim, Germany
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/