> > Eight files of various sizes and content.
> That's easy. Replace the entire table in crc/zip.c with the normal one
> starting with 0x77073096 (easily found online).
I found that table here
http://www.mrob.com/pub/comp/crc-all.html
Tricksy thing that macutils source. crc/zip.c is a generated file but
the makefile doesn't make that clear. When I did "rm *.o; make" in
the crc directory, it built makecrc first and overwrote my changes
to zip.c, producing a libcrc.a that was still broken. I thought I
might have forgotten to save the changes when everything worked
exactly as before.
$ diff -u makefile.orig makefile
--- makefile.orig 2021-08-08 18:06:24.871687850 -0700
+++ makefile 2021-08-08 18:06:45.539250712 -0700
@@ -10,10 +10,10 @@
fi
clean:
- -rm -f $(CRCC) $(CRCO) libcrc.a makecrc makecrc.o
+ -rm -f $(CRCO) libcrc.a makecrc makecrc.o
$(CRCC): makecrc
- ./makecrc
+ echo NOT RUNNING ./makecrc
makecrc: makecrc.o
cc -O -o makecrc makecrc.o
$
> I also made a Python script to extract the archives.
With a working CRC this tool seems pretty good. Thanks for the pointer.
Elijah
------
also upped the PATCHLEVEL define for the build