Skip to contentSkip to conversation

zlib version 1.1.3

DISCUSSION Rob Zwiebel 2 participants 2 messages Jan 10, 2005 – Sep 19, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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 the z_stream structure.

Quoted 14 lines

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'

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