"unable to read input" errors when testing cdb on Mac OS X

Kevin Murphy <[email protected]> Fri, 4 Jun 2004 17:12:19 -0400
Newsgroups gmane.comp.djb.cdb
Message-ID <[email protected]>
This is probably old news, but there's not much out there on the web.

I'm trying to install cdb 0.75 on Mac OS X 10.2.8 on a G5, but both the 
automatic and manual tests fail, perhaps for the same reason.  Output 
from cdbtest and a diff of rts.exp and rts.out can be found below.

I've gone ahead and installed anyway since the problem doesn't seem 
related to cdb's central functioning.  I've made some nice large 
databases with cdbmake and read them correctly (superficially, anyway) 
with a Perl program using CDB_File.

-Kevin Murphy

bash$ ./cdbtest < test.cdb

cdbtest: fatal: unable to read input: truncated file

bash$ cmp rts.out rts.exp

rts.out rts.exp differ: char 3670, line 202

bash$ diff rts.exp rts.out
202c202
< cdbmake: fatal: unable to create test.tmp: out of memory
---
 > cdbmake: fatal: unable to read input: bad format
216,221c216,217
< found: 100
< different record: 0
< bad length: 0
< not found: 0
< untested: 0
< 0
---
 > cdbtest: fatal: unable to read input: truncated file
 > 111
223,235c219,220
< records        100
< d0              96
< d1               4
< d2               0
< d3               0
< d4               0
< d5               0
< d6               0
< d7               0
< d8               0
< d9               0
< >9               0
< 0
---
 > cdbstats: fatal: unable to read input: truncated file
 > 111
238c223
< found: 5
---
 > found: 1
241c226
< not found: 0
---
 > not found: 767