Compilation of MTD Utils

Niraj Maheshwari niraj.maheshwari at gmail.com
Mon Feb 14 07:46:13 EST 2005


Hi,

I am trying to compile the MTD utils ( Specifically mkfs.jffs2  ) for
ARM-Linux platform. I am getting lot of errors while compiling this.
Does anyone already have mkfs.jffs2 executable for ARM-Linux platform
then pl. send it to me.

Or if you can help me how to do this compilation then it will be of
great help. I am getting following error. It's not able to find
deflate() etc functions.

arm-linux-gcc  -o mkfs.jffs2 crc32.o compr_rtime.o mkfs.jffs2.o
deftree.o deflate.o compr_zlib.o compr.o compr_lzari.o compr_lzo.o
-L./libz.so.1.1.4
compr_zlib.o(.text+0x34): In function `jffs2_zlib_compress':
/root/temp/mtd/util/compr_zlib.c:68: undefined reference to `deflateInit_'
compr_zlib.o(.text+0x98):/root/temp/mtd/util/compr_zlib.c:80:
undefined reference to `deflate'
compr_zlib.o(.text+0xe4):/root/temp/mtd/util/compr_zlib.c:88:
undefined reference to `deflate'
compr_zlib.o(.text+0xf4):/root/temp/mtd/util/compr_zlib.c:93:
undefined reference to `deflateEnd'
compr_zlib.o(.text+0x128):/root/temp/mtd/util/compr_zlib.c:82:
undefined reference to `deflateEnd'
compr_zlib.o(.text+0x158): In function `jffs2_zlib_decompress':
/root/temp/mtd/util/compr_zlib.c:113: undefined reference to `inflateInit_'
compr_zlib.o(.text+0x188):/root/temp/mtd/util/compr_zlib.c:124:
undefined reference to `inflate'
compr_zlib.o(.text+0x198):/root/temp/mtd/util/compr_zlib.c:127:
undefined reference to `inflateEnd'
collect2: ld returned 1 exit status
make: *** [mkfs.jffs2] Error 1

Thanks
Niraj




More information about the linux-mtd mailing list