PDA

View Full Version : Some small compile problems



Randale91
28-09-2004, 13:58
Hi,

i've setup my host system with Debian.
More or less there were no problems.
I use GPL_1.7.5.6. All readme steps followed.

Now i get errors if i try to build the firmware with just make!

make -C /root/asus/WL500gb_1.7.5.6_GPL/release/src/wl500g-1.7.5.9-5/build/squashfs/squashfs-tools
make[1]: Entering directory `/root/asus/WL500gb_1.7.5.6_GPL/release/src/wl500g-1.7.5.9-5/build/squashfs/squashfs-tools'
cc mksquashfs.o read_fs.o sort.o -lz -o mksquashfs
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[1]: *** [mksquashfs] Error 1
make[1]: Leaving directory `/root/asus/WL500gb_1.7.5.6_GPL/release/src/wl500g-1.7.5.9-5/build/squashfs/squashfs-tools'
make: *** [mksquashfs] Error 2

What's the problem here ? I know it must be something with the linking options, can someone help me please ?

Thanks

Gabriel

Styno
28-09-2004, 15:38
I have no experience with the build environment, but I guess you have to set some environment variables and a correct path to some utilities. Check the readme files which accompany the crosscompiler and the firmware source.

Oleg
28-09-2004, 15:38
Squashfs tools should be compiled with host compiler, not the cross one.
Seems debian is screwed somehow. Try passing CC=gcc to squashfs make.