6.42. GDBM-1.11

The GDBM package contains the GNU Database Manager. It is a library of database functions that use extensible hashing and work similar to the standard UNIX dbm. The library provides primitives for storing key/data pairs, searching and retrieving the data by its key and deleting a key along with its data.

Approximate build time: 0.1 SBU
Required disk space: 12.6 MB

6.42.1. Installation of GDBM

6.42.2. 32-bit Installation

Prepare GDBM for 32-bit compilation:

./configure --prefix=/usr    \
     --enable-libgdbm-compat \
     --libdir=/usr/lib32     \
     CC="gcc -m32"

The meaning of the configure option:

--enable-libgdbm-compat

This switch enables the libgdbm compatibility library to be built, as some packages outside of LFS may require the older DBM routines it provides.

Compile the package:

make

To test the results, issue:

make check

Install the package:

make install

Clean up the build directory before moving on to the next platform:

make clean

6.42.3. x32 ABI Installation

Prepare GDBM for x32 ABI compilation:

./configure --prefix=/usr    \
     --enable-libgdbm-compat \
     --libdir=/usr/libx32     \
     CC="gcc -mx32"

The meaning of the configure option:

--enable-libgdbm-compat

This switch enables the libgdbm compatibility library to be built, as some packages outside of LFS may require the older DBM routines it provides.

Compile the package:

make

To test the results, issue:

make check

Install the package:

make install

Clean up the build directory before moving on to the next platform:

make clean

6.42.4. 64-bit Installation

Prepare GDBM for 64-bit compilation:

./configure --prefix=/usr --enable-libgdbm-compat

The meaning of the configure option:

--enable-libgdbm-compat

This switch enables the libgdbm compatibility library to be built, as some packages outside of LFS may require the older DBM routines it provides.

Compile the package:

make

To test the results, issue:

make check

Install the package:

make install

6.42.5. Contents of GDBM

Installed programs: gdbm_dump, gdbm_load, and gdbmtool
Installed libraries: libgdbm.{a,so} and libgdbm_compat.{a,so}

Short Descriptions

gdbm_dump

Dumps a GDBM database to a file

gdbm_load

Recreates a GDBM database from a dump file

gdbmtool

Tests and modifies a GDBM database

libgdbm

Contains functions to manipulate a hashed database

libgdbm_compat

Compatibility library containing older DBM functions