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

Re: [microblaze-uclinux] Compile Errors - mkcramfs.c




Found the solution - just needed to install zlib-devel.  See http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/2005/07/msg00154.html.

Regards,

David Stude



david.stude@xxxxxxxxxxxxxxxxxx
Sent by: owner-microblaze-uclinux@xxxxxxxxxxxxxx

06/27/2007 10:16 AM

Please respond to
microblaze-uclinux@xxxxxxxxxxxxxx

To
microblaze-uclinux@xxxxxxxxxxxxxx
cc
Subject
[microblaze-uclinux] Compile Errors - mkcramfs.c






(Apologies about the last post without a subject)


Hi All,


I'm new to this project and just trying to get an image compiled.  Following the instructions in http://developer.petalogix.com/wiki/BoardGuides/Xilinx/S3E500/Tutorial, I get an error with compiling.  I'm using freshly-installed minimal installations of CentOS 4.5 in VMWare - only things added are gcc, ncurses (for menuconfig) and dependencies.  Ran makeconfig, but the only thing i changed was the name of the system (to "uclinux", out of habit).


Looks like zlib.h is included in the offending source, but there's no compiler options that include a directory with that header.  I'm still pretty amateur at analyzing make processes, so while I begin to do just  that, has anyone experienced this before?  Seems likely, since I'm pretty much working with a pretty much plain jane situation here.


Any comments would be much appreciated!


make[2]: Entering directory `/root/petalinux-v0.20-rc3/software/petalinux-dist/vendors/Xilinx/Spartan3E500-RevC'

cc -o mkcramfs -I/root/petalinux-v0.20-rc3/software/petalinux-dist/linux-2.6.x/include /root/petalinux-v0.20-rc3/software/petalinux-dist/user/cramfs/mkcramfs.c -lz

/root/petalinux-v0.20-rc3/software/petalinux-dist/user/cramfs/mkcramfs.c:38:18: zlib.h: No such file or directory

/root/petalinux-v0.20-rc3/software/petalinux-dist/user/cramfs/mkcramfs.c: In function `cramsort':

/root/petalinux-v0.20-rc3/software/petalinux-dist/user/cramfs/mkcramfs.c:157: warning: assignment discards qualifiers from pointer target type

/root/petalinux-v0.20-rc3/software/petalinux-dist/user/cramfs/mkcramfs.c:158: warning: assignment discards qualifiers from pointer target type

/root/petalinux-v0.20-rc3/software/petalinux-dist/user/cramfs/mkcramfs.c: In function `write_superblock':

/root/petalinux-v0.20-rc3/software/petalinux-dist/user/cramfs/mkcramfs.c:398: error: `Z_NULL' undeclared (first use in this function)

/root/petalinux-v0.20-rc3/software/petalinux-dist/user/cramfs/mkcramfs.c:398: error: (Each undeclared identifier is reported only once

/root/petalinux-v0.20-rc3/software/petalinux-dist/user/cramfs/mkcramfs.c:398: error: for each function it appears in.)

/root/petalinux-v0.20-rc3/software/petalinux-dist/user/cramfs/mkcramfs.c: In function `main':

/root/petalinux-v0.20-rc3/software/petalinux-dist/user/cramfs/mkcramfs.c:670: error: `Z_NULL' undeclared (first use in this function)

make[2]: *** [mkcramfs] Error 1

make[2]: Leaving directory `/root/petalinux-v0.20-rc3/software/petalinux-dist/vendors/Xilinx/Spartan3E500-RevC'

make[1]: *** [image] Error 2

make[1]: Leaving directory `/root/petalinux-v0.20-rc3/software/petalinux-dist/vendors'

make: *** [image] Error 2



Regards,

David Stude