Can't compile 2.4.2 kernel after MTD patch

Iasen Hristov ihristov at
Sun Mar 25 13:45:17 EST 2001

1. I have a Mandrake 7.2 (kernel 2.2.17)
2. Downloaded 2.4.2 version of kernel from
        linux-2.4.2.tar.gz      21-Feb-2001 17:00  24.1M
3. Compiled with MTD options enabled, able to boot from hard disk, but
could not detect the DOC
4. downloaded MTD from CVS
5. patched in the kernel, which created the corresponding symbolic links

6. now if I do
        make bzImage (after "make mrproper", "make menuconfig" and "make
I get

make -C mtd
make[2]: Entering directory `/home/src/linux-2.4.2/drivers/mtd'
make all_targets
make[3]: Entering directory `/home/src/linux-2.4.2/drivers/mtd'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=i486    -c -o nftl.o nftl.c
nftl.c: In function `NFTL_notify_add':
nftl.c:204: warning: long int format, int arg (arg 3)
nftl.c:204: warning: long int format, int arg (arg 4)
nftl.c: In function `NFTL_findwriteunit':
nftl.c:624: `MTD_DEBUG_LEVEL_1' undeclared (first use in this function)
nftl.c:624: (Each undeclared identifier is reported only once
nftl.c:624: for each function it appears in.)
nftl.c: In function `nftl_ioctl':
nftl.c:847: warning: implicit declaration of function `blk_ioctl'
make[3]: *** [nftl.o] Error 1
make[3]: Leaving directory `/home/src/linux-2.4.2/drivers/mtd'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/home/src/linux-2.4.2/drivers/mtd'
make[1]: *** [_subdir_mtd] Error 2
make[1]: Leaving directory `/home/src/linux-2.4.2/drivers'
make: *** [_dir_drivers] Error 2

Am I doing something wrong?
Iassen Hristov
Databrokers, Inc.
mailto:iassen at

To unsubscribe, send "unsubscribe mtd" to majordomo at

More information about the linux-mtd mailing list