ranlib breaks on long odd-length filenames when the file is the last one in the archive. The bug is in ar/archive.c:copy_ar. Fix: I don't have time to find it now. I will look into it later; maybe someone else has time to track it down now. How-To-Repeat: Try this script: #!/bin/csh set F=0123456789ABCDE cp /dev/null ${F}.c cc -c ${F}.c rm -f libfoo.a ar cq libfoo.a ${F}.o ranlib libfoo.a rm -f ${F}.c ${F}.o
State Changed From-To: open->closed Nate's changes supposedly fixed this problem.