Mail Archives: cygwin/2001/01/03/12:00:13
Just to cover the simple stuff first:
It seems that you are not using gdbm in its native mode. "dbm_open" etc
are the ndbm-compatibility routines. nbdm compatibility is broken on
FAT drives (and on Win9x/Me because they can only use FAT). See
/usr/doc/Cygwin/cvs-1.11.0.README for more information (yes, I really do
mean the cvs package documentation).
However, if you are on NTFS, then:
make sure that you refer to database foo as "foo", not "foo.pag" or
"foo.dir". The ndbm compatibility routine "dbm_open()" automatically
adds the appropriate ".pag" / ".dir" ending.
If these simple items do not explain / fix your failures, then you've
probably found a bug of some sort. You'll have to use gdb and figure
out what's happening.
--Chuck
Jeff Lu wrote:
>
> Hi,
>
> I'm having problem reading the file after updating it with new info. It
> seems to be related to the keys I use. I get "gdbm fatal: read error"
>
> I'm using -lgdbm to compile
> dbm_open, dbm_store, dbm_fetch etc.
>
> For instance, when used DEPT1, DEPT2, DEPT3 etc. for keys for some records.
> The file is updated successfully. I looked in the file all the data are
> there. But I get gdbm fatal: read error when tried to read it.
>
> However, when changed the keys to DP1, DP2, DP3 etc. everything is fine.
>
> Thanks
> -Jeff
>
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -