delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-announce/2014/03/05/13:33:42

Message-Id: <201403051833.s25IXIvC012650@delorie.com>
Date: Wed, 05 Mar 2014 19:33:07 +0100
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
To: djgpp-announce AT delorie DOT com
Subject: ANNOUNCE: DJGPP port of GNU dbm 1.11 uploaded.
Reply-To: djgpp AT delorie DOT com

This is a port of GNU dbm 1.11 to MSDOS/DJGPP.


   GNU dbm (gdbm) is a set of database routines that use extendible hashing
   and works similar to the standard UNIX dbm routines.  The library provides
   also an optional compatibility layer for UNIX-like dbm and ndbm calls.
   These routines are provided to a programmer needing to create and manipulate
   a hashed database.  gdbm is NOT a complete database package for an end user.


   DJGPP specific changes.
   =======================

   This port requires fchmod, fchown, snprintf and some other functions that
   are not provided by djdev203 so there will be no more a DJGPP 2.03 port.
   The port version compiled with djdev204 will offer file locking support
   if the used OS provides the locking capability.  All other changes concern
   DOS specific issues like the reading and writing in binary mode, the handling
   of mixed slashes and backslashes in paths, the closing of destination and
   source files before renaming them and the correct initialization of the hash
   table directory for a new data base files.  This initialization is very
   dependent on the st_blksize value returned by fstat().  This value must
   always be an integral multiple of 512 or the initialization will fail and
   no new data base file will be created.

   The dbm and ndbm specific functions have been moved into a separate library.
   This means that there are two libraries:
     - libgdbm.a containing all gdbm specific functions and
     - libgdbm_compat.a containing all dbm specific functions

   If you need to compile an application using the old unix dbm functions you
   will have to put the compat lib before the gdbm lib like this:
     gcc application.c -lgdbm_compat -lgdbm

   Now you will have access to the dbm compatibility functions. Please note,
   that these compatibility functions are mapped to the equivalent gdbm functions
   so you must link both libraries in the order shown in the example above.

   The port does neither support mmap() for I/O operations nor the close-on-exec
   flag in gdbm_open (GDBM_CLOEXEC).

   Apart from the standard config.bat options like nls, cache and no-dep, the
   following option flags can be selected to configure and build the sources:

     compat or no-compat, if not specified, "compat" is the default.
       Build and install libgdbm_compat, a compatibility layer which provides
       UNIX-like dbm and ndbm interfaces.

     export or no-export, if not specified, "export" is the default.
       Build and install gdbmexport with the specified gdbm 1.8 library.
       If this option is specified, the configure script will get
         --with-gdbm183-library=-lgdbm
       passed as option and GDBM183_LIBDIR and GDBM183_INCLUDEDIR will be
       set to /dev/env/DJDIR/lib and /dev/env/DJDIR/include receptively.
       This means that you must have gdbm183b installed before you can
       build gdbmexport.exe.  gdbmexport.exe will be linked with the
       library of gdbm183b.


   The source package is now distributed configured for DJGPP 2.04 only.  In the
   top srcdir there is a "_build.204" directory in which the products will be
   build.

   The port has been configured and compiled with NLS support enabled using the
   latest ports of libiconv, libunistring and gettext.
     ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/licv114b.zip
     ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/luns093b.zip
     ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/gtx1832b.zip

   It may be possible to configure and compile the sources on plain DOS (no LFN
   support) but I have not tried it.


   Please read the docs to become familiar with the products.




   The port has been compiled using stock djdev204 and consists of the usual
   three packages that can be downloaded from ftp.delorie.com and mirrors as
   (time stamp 2014-03-04):

     GNU dbm 1.11 binaries, headers, libraries, info and man
     format documentation:
     ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/gdbm111b.zip

     GNU dbm 1.11 dvi, html, pdf and ps format documentation:
     ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/gdbm111d.zip

     GNU dbm 1.11 source:
     ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/gdbm111s.zip


   Send gdbm specific bug reports to <bug-gdbm AT gnu DOT org>.
   Send suggestions and bug reports concerning the DJGPP port to
   comp.os.msdos.djgpp or <djgpp AT delorie DOT com>.



Enjoy.

         Guerrero, Juan Manuel <juan DOT guerrero AT gmx DOT de>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019