zlib version 1.1.3
I am using SUSE 9.1 which includes zlib version 1.1.3.
When I compile the latest version of the mkfs.jffs2.
There are errors caused by the lack of the zalloc variable found in the z_stream structure.
compr_zlib.c: In function `jffs2_zlib_compress':
compr_zlib.c:65: error: structure has no member named zalloc' compr_zlib.c:66: error: structure has no member named zfree' compr_zlib.c:68: warning: implicit declaration of function deflateInit' compr_zlib.c:80: warning: implicit declaration of function deflate' compr_zlib.c:82: warning: implicit declaration of function deflateEnd' compr_zlib.c: In function jffs2_zlib_decompress':
compr_zlib.c:110: error: structure has no member named zalloc' compr_zlib.c:111: error: structure has no member named zfree' compr_zlib.c:113: warning: implicit declaration of function inflateInit' compr_zlib.c:124: warning: implicit declaration of function inflate' compr_zlib.c:127: warning: implicit declaration of function `inflateEnd'
What is the best way to proceed?
Rob
Hi Rob,
Quoted 6 lines · Rob Zwiebel
I am using SUSE 9.1 which includes zlib version 1.1.3.
When I compile the latest version of the mkfs.jffs2.
There are errors caused by the lack of the zalloc variable found in thez_streamstructure.
Quoted 14 lines
compr_zlib.c: In function `jffs2_zlib_compress':
compr_zlib.c:65: error: structure has no member namedzalloc' compr_zlib.c:66: error: structure has no member namedzfree' compr_zlib.c:68: warning: implicit declaration of functiondeflateInit' compr_zlib.c:80: warning: implicit declaration of functiondeflate' compr_zlib.c:82: warning: implicit declaration of functiondeflateEnd' compr_zlib.c: In functionjffs2_zlib_decompress':
compr_zlib.c:110: error: structure has no member namedzalloc' compr_zlib.c:111: error: structure has no member namedzfree' compr_zlib.c:113: warning: implicit declaration of functioninflateInit' compr_zlib.c:124: warning: implicit declaration of functioninflate' compr_zlib.c:127: warning: implicit declaration of function `inflateEnd'
Did you installed the development package of zlib, too?
At me there is two zlib related packages installed:
zlib1g and zlib1g-dev.
The version of them is 1.2.2 and on an other machine it is 1.1.4 - so I think it should work with 1.1.3, too.
Bye,
Ferenc