Skip to contentSkip to conversation

zlib versions

DISCUSSION david stevenson 2 participants 3 messages Oct 30, 2003 – Oct 31, 2003 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Could someone please educate me on zlib?

I can compile kernel 2.4.21 with MTD updated from tarball 20031021 with jff2 with no errors.
But when I try and compile the utils from the same tar ball, using the same kernel headers I get error file not found zlib.h.

I can compile the utils against the kernel headers on my host 2.4.20 without error. But I guess then the binaries will not run on the target machine?

The difference appears to be linux/zlib v1.1.3 or /zlib v1.1.4 but I am not sure what I should use to get utils that run.
Thanks
David

#1 lore raw
Quoted 6 lines · david stevenson

Could someone please educate me on zlib?

I can compile kernel 2.4.21 with MTD updated from tarball 20031021 with jff2 with no errors.
But when I try and compile the utils from the same tar ball, using the same kernel headers I get error file not found zlib.h.

Do you have the zlib-devel package installed? Are you compiling natively or cross-compiling?

Signature · 1 line
dwmw2
#2 lore raw
Quoted 10 lines · David Woodhouse
Quoted 6 lines · david stevenson

Could someone please educate me on zlib?

I can compile kernel 2.4.21 with MTD updated from tarball 20031021 with jff2 with no errors.
But when I try and compile the utils from the same tar ball, using the same kernel headers I get error file not found zlib.h.

Do you have the zlib-devel package installed? Are you compiling natively or cross-compiling?

I am cross compiling - well actually it is from pentium to i386.

I do not know about zlib-devel, which probably means I don't have it. But the kernel code includes include/linux/zlib.h which is included by /fs/jffs2/compr_zlib.c and this compiles OK. So I assumed I had all that was needed.

However in the util tree compr_zlib.c is looking for include/zlib.h, and I belive a different version.

If I need to get zlib-devel can you give a reference to where I get it from as I have seen confusing alternatives.

Thanks
David