[Kolab-devel] OpenLDAP build problem

Steffen Hansen steffen at kdab.net
Tue May 24 15:28:11 CEST 2005


Hi.

At least on SuSE-9.3 I have a problem building openldap -- it picks 
up the host system's libdb (which is /usr/lib/tls/libdb-4.3.so) instead 
of the openpkg one. This leads to all ldap tool crashing and burnings.

Uninstalling db from the host system is not an option -- too much depends
on it, so the only working solution I could come up with is this:

--- ../openldap.orig/openldap.spec      2005-02-21 18:02:29.000000000 +0100
+++ openldap.spec       2005-05-24 15:21:35.000000000 +0200
@@ -90,7 +90,7 @@ AutoReqProv:  no
     #   (2. make sure our Berkeley-DB is picked up first)
     %{l_shtool} subst \
         -e 's;ln -s;ln;g' \
-        -e 's;-ldb42;-ldb;g' \
+        -e 's;db43;db;g' \
         -e 's;<db\.h>;"db.h";g' \
         configure
 %if "%{with_sasl}" == "yes"

Anyone got a better idea?

thanks
-- 
Steffen Hansen          |       Klarälvdalens Datakonsult AB
Senior Software Engineer|       http://www.klaralvdalens-datakonsult.se
                        |
                        |       Platform-independent
                        |       software solutions




More information about the devel mailing list