Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3A535A71.EFFC4EAC@ece.gatech.edu> Date: Wed, 03 Jan 2001 11:59:29 -0500 From: Charles Wilson X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Jeff Lu CC: cygwin AT cygwin DOT com Subject: Re: Is there a criteria on what can be used as a key for .PAG files References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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