LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-27-2011, 10:19 AM   #1
dmskibba
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
OpenLDAP configuration fails


I am trying to configure OpenLDAP and cannot get past the following error:

checking for localtime_r... yes
checking for gethostbyname_r... yes
checking for gethostbyaddr_r... yes
checking number of arguments of ctime_r... 2
checking number of arguments of gethostbyname_r... 6
checking number of arguments of gethostbyaddr_r... 8
checking db.h usability... yes
checking db.h presence... no
configure: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: db.h: proceeding with the compiler's result
checking for db.h... yes
checking for Berkeley DB major version in db.h... conftest.c:2:16: error: db.h: No such file or directory
1
checking for Berkeley DB minor version in db.h... conftest.c:2:16: error: db.h: No such file or directory
0
checking if Berkeley DB version supported by BDB/HDB backends... no
configure: error: BerkeleyDB version incompatible with BDB/HDB backends
[root@sccnhrh532d openldap-2.4.23]#

The error seems to indicate that db.h cannot be found.

I ran the following script to configure the LDAP server:

CFLAGS="-I/skibba/LDAP/DB/dbxml-2.3.11/install/include"
export CFLAGS
LDFLAGS="-L/usr/local/lib -L/skibba/LDAP/DB/dbxml-2.3.11/install/lib -R/skibba/LDAP/DB/dbxml-2.3.11/install/lib"
export LDFLAGS
LD_LIBRARY_PATH="/skibba/LDAP/DB/dbxml-2.3.11/install/lib"
export LD_LIBRARY_PATH
./configure -n --enable-bdb --prefix=/skibba/LDAP --exec-prefix=/skibba/LDAP

db.h exists in the directory referenced in the script. The Berkeley version is 5.5.20 which should be compatible with OpenLDAP 2.4.
 
Old 01-27-2011, 04:49 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Add CPPFLAGS in the env. variables:
Code:
export CPPFLAGS="-D_GNU_SOURCE -I/path/to/BerkeleyDB/include"
and see if it helps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openldap 2.4 configuration ilteris Linux - Software 1 03-28-2010 12:44 PM
openldap configuration !!!!! nsampath Linux - Software 0 09-05-2007 04:14 AM
./configure for openLDAP fails..... rayj00 Linux - Software 2 10-01-2006 04:11 PM
openldap configuration javier_ccs Linux - Software 6 07-04-2005 02:51 PM
openldap test017 fails jobesd Linux From Scratch 0 02-15-2005 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration