[Date Prev][Date Next] [Chronological] [Thread] [Top]

libtool compilation failures (ITS#795)



Full_Name: Joe Little
Version: 2.0.4
OS: Redhat Linux 7.0
URL: 
Submission from: (NULL) (64.161.126.156)


Although a direct compile (./configuure after untaring) does correctly use
build/ltmain.sh in the source tree to create /libtool in the main directory,
an RPM build (which calls /usr/bin/libtoolize) generates a libtool from outside
the openldap build tree. In the case of OpenLdap 2.0.4, the result is a build
using either libtool 1.3.4 (rh6.2) or 1.3.5 (rh70). Both version's have an
ltmain.sh which do not have

  --only-shared)
    build_libtool_libs=yes
    build_old_libs=no
    ;;

  --only-static)
    build_libtool_libs=no
    build_old_libs=yes
    ;;

in its definition. The slapd/backend-ldbm makefile calls libtool with
--only-static.
On Redhat 6.2/7.0 systems (and likely any RPM-based system with libtool >
1.3.3),
an RPM build fails.

This is either an issue specific to OpenLDAP's build system, or possibly to
incorrect
new configuration in libtool 1.3.4/1.3.5. In any case, it maybe wise for
OpenLDAP to 
correctly handle all libtool versions or maybe use 1.3.5 out of the box.