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

Error on building openldap-2.2.10 with db-4.2.52

Hi, there,

I downloaded a latest version of openldap, which is 2.2.10 and Berkeley DB, which is 4.2.52. The db-4.2.52 built ok. But something wrong when building openldap.

The configure script always reports:
checking Berkeley DB version for BDB backend... no
configure: error: BDB: BerkeleyDB version incompatible

I found the reason that the conftest file which is used to verify the DB version always runs into "segment fault". More details below,

qsilver@marathon:~/workshop/community-trunk/deps/openldap-2.2.10> cc -o conftest -g -I/home/qsilver/garnome/include  -L/home/qsilver/garnome/lib bak.conftest.c -ldb-4.2  -pthread -lresolv
qsilver@marathon:~/workshop/community-trunk/deps/openldap-2.2.10> ./conftest
Segmentation fault
qsilver@marathon:~/workshop/community-trunk/deps/openldap-2.2.10> gdb conftest
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...
(gdb) b 24
Breakpoint 1 at 0x80484ec: file bak.conftest.c, line 24.
(gdb) r
Starting program: /home/qsilver/workshop/community-trunk/deps/openldap-2.2.10/conftest
[New Thread 1024 (LWP 31853)]
[Switching to Thread 1024 (LWP 31853)]

Breakpoint 1, main () at bak.conftest.c:24
24                      version = db_version( &major, &minor, &patch );
(gdb) n
26                      if( major != DB_VERSION_MAJOR ||
(gdb) n
38              db_env_create( NULL, 0 );
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
0x400abf9b in db_env_create (dbenvpp=0x0, flags=0) at ../env/env_method.c:102
102             *dbenvpp = dbenv;

Actually the DB_VERSION_MAJOR and DB_VERSION_MINOR are all match to openldap's request. Then why it's failed in db_env_create? Can someone help?

Many thanks.