C compiler cannot create executables.
Ensure that gcc is ahead of cc in PATH.
Set the shell environment variable,
CC=gcc
export CC
Berkely DB not available.
Set CPPFLAGS shell environment variable to the directory containing
db.h header file of Berkely DB. For example,
CPPFLAGS=-I/usr/db-4.6.21/build_unix
export CPPFLAGS
Structure has no member named lk_handle
Maybe, you are using Berkely DB 4.7. Try using Bekely DB 4.6.
During the installation, make sure that the PATH has all the directories
containing executables in the right order, especially after changing over
to the superuser shell for make install
.