CVS patch breaks zlib
Hi I'm new to the list
I'm designing with the Altera EPXA10.
I got the CVS version of mtd and applied the patch patchin.sh -c -j /home/crowe/aacSpva/linux-2.4.17_zlibBusted
I did a
make clean
make dep
make bzImage then died with make modules (mtd stuff is configured for modules)
Here is a snippit of what happened
make modules
....
make[1]: Entering directory `/home/crowe/aacSpva/linux-2.4.17_zlibBusted/lib'
arm_920t_le-gcc -D__KERNEL__ -I/home/crowe/aacSpva/linux-2.4.17_zlibBusted/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-common -pipe -g -mapcs-32 -march=armv4 -mtune=arm9tdmi -mshort-load-bytes -msoft-float -DMODULE -DEXPORT_SYMTAB -c zlib.c
zlib.c:72: `deflate' undeclared here (not in a function)
zlib.c:72: initializer element is not constant
...
a whole bunch of errors and warnings
...
ending with
zlib.c:5374: `adler32' used prior to declaration
zlib.c:5374: warning: adler32' was previously implicitly declared to return int' make[1]: *** [zlib.o] Error 1
make[1]: Leaving directory `/home/crowe/aacSpva/linux-2.4.17_zlibBusted/lib'
make: *** [_mod_lib] Error 2
Any Ideas on what I did wrong?
Thanks
Mike
Signature · 2 lines
Mike Crowe [email protected]
Quoted 14 lines · On Thursday 17 April 2003 19:08, [email protected] wrote:
Hi I'm new to the list
I'm designing with the Altera EPXA10.
I got the CVS version of mtd and applied the patchpatchin.sh-c -j/home/crowe/aacSpva/linux-2.4.17_zlibBustedHere is a snippit of what happened
make modules
....
make[1]: Entering directory `/home/crowe/aacSpva/linux-2.4.17_zlibBusted/lib' arm_920t_le-gcc(quoted diff) +0
-4-D__KERNEL__ -I/home/crowe/aacSpva/linux-2.4.17_zlibBusted/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-common -pipe -g -mapcs-32 -march=armv4 -mtune=arm9tdmi -mshort-load-bytes -msoft-float -DMODULE -DEXPORT_SYMTAB -c zlib.c
Quoted 2 lines
zlib.c:72: `deflate' undeclared here (not in a function) zlib.c:72: initializer element is not constant
There is no file zlib.c in lib. At least it should be not there. Did you apply any other patches , which modify lib directory ?
MTD patchin.sh is know to work on vanilla kernels 2.4.17-2.4.20, ARM kernels 2.4.17-rmkx - 2.4.19-rmkx and PPC kernels 2.4.19 and 2.4.20.
Signature · 5 lines
Thomas ________________________________________________________________________ linutronix - competence in embedded & realtime linux http://www.linutronix.de mail: [email protected]