RE: "unable to read input" errors when testing cdb on Mac OS X
"Dave Kitabjian" <[email protected]> Mon, 7 Jun 2004 11:51:21 -0400
| Newsgroups | gmane.comp.djb.cdb |
|---|---|
| Message-ID | <E388694238BBE5459F483F47306E4F1003079C54@nce2k.ncdomain.netcarrier.com> |
Two things pop into mind that might be useful and might not (disclaimer: I haven't read your notes very carefully)... 1) Did you remember the blank line at the end of the file? 2) Make sure that there's not a line-termination incompatibility issue, such as Unix/cdb expecting "newlines" (ASCII 10) and OS X expecting "carriage returns" (ASCII 13), etc... Dave > -----Original Message----- > From: Kevin Murphy [mailto:[email protected]] > Sent: Friday, June 04, 2004 5:12 PM > To: [email protected] > Subject: "unable to read input" errors when testing cdb on Mac OS X >=20 > This is probably old news, but there's not much out there on the web. >=20 > 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. >=20 > 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. >=20 > -Kevin Murphy >=20 > bash$ ./cdbtest < test.cdb >=20 > cdbtest: fatal: unable to read input: truncated file >=20 > bash$ cmp rts.out rts.exp >=20 > rts.out rts.exp differ: char 3670, line 202 >=20 > 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 >=20