Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Build fails with zlib.h not found
@ 2006-11-30 22:36 Michael Moser
  2006-12-01  8:17 ` Pavel Roskin
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Moser @ 2006-11-30 22:36 UTC (permalink / raw)
  To: buildroot

I try to build a tool chain and initial filesystem for a xscale
prozessor which uses a jffs2 file system. This fails with the following
messages:

 > make[1]: Entering directory `/home/michael/development/buildroot/toolchain_build_arm/mtd_orig/util'
 > gcc -I../include -O2 -Wall -g -c -o mkfs.jffs2.o mkfs.jffs2.c -g -Wp,-MD,.mkfs.jffs2.c.dep
 > mkfs.jffs2.c:68:18: zlib.h: File or Directory not found
 > make[1]: *** [mkfs.jffs2.o] Error 1
 > make[1]: Leaving directory `/home/michael/development/buildroot/toolchain_build_arm/mtd_orig/util'
 > make: *** [/home/michael/development/buildroot/toolchain_build_arm/mtd_orig/util/mkfs.jffs2] Fehler 2

I already tried to change the make file and specifed a path to zlib.h
within the buildroot environment. Then the compilation succeeds but the
linker didn't find a compatible libz

I use gcc 4.1.1 on my development machine.

Can anyone give me some hints?

Regards,
Michael

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] Build fails with zlib.h not found
  2006-11-30 22:36 [Buildroot] Build fails with zlib.h not found Michael Moser
@ 2006-12-01  8:17 ` Pavel Roskin
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Roskin @ 2006-12-01  8:17 UTC (permalink / raw)
  To: buildroot

On Thu, 2006-11-30 at 23:36 +0100, Michael Moser wrote:
> I try to build a tool chain and initial filesystem for a xscale
> prozessor which uses a jffs2 file system. This fails with the following
> messages:
> 
>  > make[1]: Entering directory `/home/michael/development/buildroot/toolchain_build_arm/mtd_orig/util'
>  > gcc -I../include -O2 -Wall -g -c -o mkfs.jffs2.o mkfs.jffs2.c -g -Wp,-MD,.mkfs.jffs2.c.dep
>  > mkfs.jffs2.c:68:18: zlib.h: File or Directory not found
[skip]
> Can anyone give me some hints?

Since mkfs.jffs2.c is compiled by gcc for the host system, you need the
zlib development package on the host system.  It's called zlib-devel on
Fedora and provides both the header and the library.  I'm not sure about
other distros, but it's likely a similar name, something matching
{libz,zlib}{,1}-{dev,devel}

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-01  8:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-30 22:36 [Buildroot] Build fails with zlib.h not found Michael Moser
2006-12-01  8:17 ` Pavel Roskin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox