[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] uClinux compile error on "make dep"



Hi David,

I ran into the same issue - it turned out that I didn't have the zlib
development files installed on the machine I was using for compiling.  For my
distro (Centos 3), I had to install the "zlib-devel" package (yum install
zlib-devel).

Regards,
Paul

Quoting David Lai <dlai@irispower.com>:

> Thank you Paul, for the suggestion of
>
> $ cvs update -d -D'July 12 2005'
>
> It has gotten "make dep" to complete successful again, however the orginal
> error from "make" was encountered.
>
> error from "make"
> ---8<-snip---
> In file included from /opt/uClinux-dist/user/cramfs/mkcramfs.c:36:
> /opt/uClinux-dist/linux-2.4.x/include/linux/cramfs_fs.h:120:2: warning:
> #warning "__BYTE_ORDER == __LITTLE_ENDIAN"
> /opt/uClinux-dist/user/cramfs/mkcramfs.c:37:18: zlib.h: No such file or
> directory
> /opt/uClinux-dist/user/cramfs/mkcramfs.c: In function `cramsort':
> /opt/uClinux-dist/user/cramfs/mkcramfs.c:156: warning: assignment discards
> qualifiers from pointer target type
> /opt/uClinux-dist/user/cramfs/mkcramfs.c:157: warning: assignment discards
> qualifiers from pointer target type
> /opt/uClinux-dist/user/cramfs/mkcramfs.c: In function `write_superblock':
> /opt/uClinux-dist/user/cramfs/mkcramfs.c:397: error: `Z_NULL' undeclared
> (first use in this function)
> /opt/uClinux-dist/user/cramfs/mkcramfs.c:397: error: (Each undeclared
> identifier is reported only once
> /opt/uClinux-dist/user/cramfs/mkcramfs.c:397: error: for each function it
> appears in.)
> /opt/uClinux-dist/user/cramfs/mkcramfs.c: In function `main':
> /opt/uClinux-dist/user/cramfs/mkcramfs.c:669: error: `Z_NULL' undeclared
> (first use in this function)
> make[1]: *** [mkcramfs] Error 1
> make[1]: Leaving directory `/opt/uClinux-dist/vendors/Xilinx/uclinux-auto'
> make: *** [image] Error 2
> -----------------------------------------------------------------------------
>
> From my interpretation, it seems the file zlib.h could not have been found.
> Thus, I have copied zlib.h into one of the directories where mkcramfs.c
> searches for its included header files.
> Specifically, I have copied zlib.h into /opt/uClinux-2.4.x/include/linux/
>
> This action has taken me another step further, or that is what I would like
> to believe.
> However, a different error was encountered afterwards. (snip below)
> Any help is greatly appreciated.  Thank you very much for your time.
>
> Dave.

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/