Compilation of MTD Utils
Artem B. Bityuckiy
dedekind at infradead.org
Mon Feb 14 08:37:39 EST 2005
On Mon, 2005-02-14 at 18:16 +0530, Niraj Maheshwari wrote:
> 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.
>
Looks like you need to link zlib library...
> 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
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
More information about the linux-mtd
mailing list