help with arc

Dave Arnold dave at arnold.UUCP
Fri Oct 7 13:36:35 AEST 1988


Alan Strassberg <ccicpg!sun!oetl1!alan> writes:
In article <204 at arnold.UUCP> you write:
>I am trying to build arc for System V.  Everything compiles
>and runs ok---except it always creates corrupted archives.
>Anybody have similar problems?

	What version of arc ? What computer are you using ?
	How are the archives 'corrupted' ? Fail CRC check ?
	If you you answer this then maybe the net (and I)
	could help. 

					alan

Okay, sorry about that.  Here are the details:

My system: AT&T UNIXpc 3B1 running System V.2 3.5

What version of ARC?  Well:

--------------------------------------------------
/*
 * $Header: arc.c,v 1.12 88/07/31 18:39:50 hyc Exp $
 */

/*  ARC - Archive utility
  
    Version 5.21, created on 04/22/87 at 15:05:21

--end

I added the "-DSYSV=1" flag in the makefile.

Everything compiles and links perfectly.  The only problems
I had were gathering some scandir, opendir, readdir, closedir
routines together.  I am using some stuff I hacked up from netnews.

Now here is what happens when I create an archive:

$ arc a test.arc *
Creating new archive: test.arc
Adding file:   1431           analyzing, crunched, done. (14%)
Adding file:   1432           analyzing, crunched, done. (35%)
Adding file:   1433           analyzing, crunched, done. (23%)
Adding file:   1434           analyzing, crunched, done. (29%)
Adding file:   1435           analyzing, crunched, done. (32%)
Adding file:   1436           analyzing, crunched, done. (24%)
Adding file:   1437           analyzing, crunched, done. (28%)
Adding file:   1438           analyzing, crunched, done. (33%)
Adding file:   1439           analyzing, crunched, done. (34%)
Adding file:   1440           analyzing, crunched, done. (35%)
Adding file:   1441           analyzing, crunched, done. (28%)
Adding file:   1442           analyzing, crunched, done. (27%)
Adding file:   1443           analyzing, crunched, done. (39%)
Adding file:   1444           analyzing, crunched, done. (38%)
Adding file:   1445           analyzing, crunched, done. (24%)
Adding file:   1446           analyzing, crunched, done. (19%)
Adding file:   1447           analyzing, crunched, done. (22%)

---end

Now, here is what happens if I try to extract the archive:

$ arc t test.arc
Testing file: 1431          okay
Testing file: 1432          Corrupted compressed file.
Invalid code 905 when max is 840.
WARNING: File 1432 fails CRC check
An entry in test.arc has a bad header.  1082 bytes skipped.
Testing file: 1433          okay
Testing file: 1434          Corrupted compressed file.
Invalid code 1002 when max is 828.
WARNING: File 1434 fails CRC check
An entry in test.arc has a bad header.  644 bytes skipped.
Testing file: 1435          Corrupted compressed file.
Invalid code 333 when max is 257.
WARNING: File 1435 fails CRC check
An entry in test.arc has a bad header.  436 bytes skipped.
Archive truncated in file ^*%^HGF
13 errors detected

---end

NOTE: If I actually had ARC try and extract something, my directory gets
trashed!

Does this look familiar to anybody?

Thanks for hearing me out.
-- 
Dave Arnold
dave at arnold.UUCP	{cci632|uunet}!ccicpg!arnold!dave



More information about the Comp.sys.att mailing list