[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE ./configure Error WAS: 2.2.15 configure script changes
-----Original Message-----
From: owner-openldap-software@OpenLDAP.org [mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of jehan.procaccia
Sent: Friday, August 06, 2004 4:51 AM
To: openldap-software@OpenLDAP.org
Subject: 2.2.15 configure script changes
Hello
I'am building my own relocatable RPM package of openldap 2.2.15, and I
noticed that the configure script couldn't anymore check the BDB package
version . Indeed my package (as Redhat/Fedora packages do ) include it's
own version on BDB (4.2.52) to keep beeing system indepedent about BDB
version.
Everything worked fined before (in 2.2.14 at least !) but since 2.2.15 I
concluded that the conftest binary needs to be told where is the
embeded BDB libraries, in short I added
LD_LIBRARY_PATH=../db-4.2.52/build-rpm/.libs/ before running "test -s
conftest${ac_exeext} && (./conftest; exit) 2>/dev/null" at line 19291 in
configure script .
If not, configure ended with :
configure: error: Berkeley DB version mismatch
What changes between 2.2.14 and 2.2.15 causes this to happen ? is it
normal or there's an error in 2.2.15 configure script ?
Here's the patch I applied:
$ cat /usr/src/redhat/SOURCES/openldap-2.2.15-configure.patch
diff -ur openldap-2.2.15.old/configure openldap-2.2.15/configure
--- openldap-2.2.15.old/configure 2004-07-27 18:33:12.000000000 +0200
+++ openldap-2.2.15/configure 2004-08-05 15:32:28.371610872 +0200
@@ -19288,10 +19288,14 @@
return 0;
}
EOF
+export LD_LIBRARY_PATH=../db-4.2.52/build-rpm/.libs/
+echo jehan $LD_LIBRARY_PATH 1>&5
if { (eval echo configure:19292: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
+echo "jehan then" >&5
ol_cv_berkeley_db_version=yes
else
+echo "jehan else" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
With that patch it now builds correclty and my relocatable package works
fine ( I will send an other mail about the ditribution of that package ...)
Thanks.