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

Re: Compile problems with 2.4.16 and Fedora 10

Quanah Gibson-Mount wrote:
--On Wednesday, April 15, 2009 10:08 AM -0700 Rick Stevens
<rps2@socal.rr.com>  wrote:

Quanah Gibson-Mount wrote:
--On Wednesday, April 15, 2009 9:53 AM -0700 Rick Stevens
<rps2@socal.rr.com>  wrote:

Quanah Gibson-Mount wrote:
--On Tuesday, April 14, 2009 3:25 PM -0700 Rick Stevens
<rps2@socal.rr.com>  wrote:

Hi, gang.

Having a bit of trouble compiling OpenLDAP 2.4.16 under Fedora 10.
I've built Berkeley DB 4.7 and installed it.  I run configure with:

CPPFLAGS="-I/usr/local/BerkeleyDB.4.7/include" ./configure
--enable-modules --enable-backends --enable-overlays=mod

(all one line).  Despite what "./configure --help" says, it still
tries to include the MySQL NDB stuff by default (and can't find the
headers even if the mysql-devel RPM is installed, the "NdbApi.hpp"
file is in /usr/include/mysql/ndb/ndbapi), so I've appended
"--enable-ndb=no" as well to get past that (don't need MySQL anyway).

Hints?  Suggestions?

Back-sql and back-ndb are different backends.  You need to add
--disable-ndb to your configure flags.  See the output of ./configure

I did, which is why I said '"Despite what ./configure --help" says':

--enable-ndb      enable MySQL NDB Cluster backend no|yes|mod [no]

I read that as saying the default is "--enable-ndb=no".  Am I wrong?

No, you're quite correct.  I missed that bit further down, so my
mistake, sorry. ;)

'Sok, but that still leaves a question: Help says NDB will NOT be built
by default, yet it is.  One must assume the help text needs to be
changed or configure's logic has to be fixed.

Beyond that, if you do let NDB build on a Fedora 10 machine, the build
bombs when it can't find NdbApi.hpp.  That file does exist if the
mysql-devel RPM has been installed.  The full path to the file is

Please keep replies on the list.

I suggest filing bugs in the ITS system on these two issues.


When you use "--enable-backends" it explicitly enables all of them. Don't use this switch if you don't mean it.

  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/