Build problem with OpenLDAP (ITS#1940)

Full_Name: Daniel Savard
Version: 2.1.2
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (65.92.145.118)
I am trying to build OpenLDAP for the first time. I previously built and
installed Berkeley DB version 4.0.14 in /usr/local/Berkeley.4.0.
So, my configuration is as follow:
env CPPFLAGS="-I/usr/local/BerkeleyDB.4.0/include"
LDFLAGS="-L/usr/local/BerkeleyDB.4.0/lib" ./configure --prefix=/usr
--enable-ldap --enable-slurpd --enable-perl
It completed successfully, I then proceed with the make depend which also
completed.
Now, when I am trying to make openldap, the make process start and I can see all
the steps and it then stuck on the following particular step:
./ucgendat ./UnicodeData.txt -x ./CompositionExclusions.txt
To make sure there is enough details, I include below the few lines before.
--------------------------------------------------------------------------------
rm -f version.c
../../build/mkversion -v "2.1.2" liblunicode.a > version.c
cc -g -O2 -I../../include -I../../include
-I/usr/local/BerkeleyDB.4.0/i
nclude -c -o version.o version.c
ar ru liblunicode.a ucdata.o ure.o urestubs.o ucstr.o version.o
cc -g -O2 -I../../include -I../../include
-I/usr/local/BerkeleyDB.4.0/i
nclude -c -o ucgendat.o ucgendat.c
/bin/sh /usr/src/redhat/BUILD/openldap-2.1.2/libtool --mode=link cc -static -g
-
O2 -L/usr/local/BerkeleyDB.4.0/lib -o ucgendat ucgendat.o -lresolv -ldl
cc -g -O2 -o ucgendat ucgendat.o -L/usr/local/BerkeleyDB.4.0/lib -lresolv -ldl
./ucgendat ./UnicodeData.txt -x ./CompositionExclusions.txt
--------------------------------------------------------------------------------
I have waited as long as a whole day for this ucgendat command to complete.
Unfortunately, when interrupted the command is removed. So, I tried to run a
second instance of the command while the make is running, with the same result.