Hi Quanah

Thank you for taking the time to help.

I installed mysql-cluster-gpl-7.1.5 from source with ./configure
--prefix=/usr/local/mysql so everything is under /usr/local/mysql. I do
the make and make install and test and MySQL Cluster works fine. I then
export PATH=/usr/local/mysql/bin:$PATH so that mysql_config is in the
PATH.

I then try to install openldap-2.4.23 from source with./configure
--enable-ndb --disable-hdb --disable-bdb --prefix=/usr/local/openldap
this ends with the following:
checking for NdbApi.hpp... configure: error: could not locate NdbApi
headers

I check the output of mysql_config --include and see that its
-I/usr/local/mysql/include/mysql

I look into configure and find:
SQL_INC=`mysql_config --include`
SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb
$SQL_INC/storage/ndb/ndbapi"

The output of ls for that path shows that the files are there:

r...@sms:/tmp/openldap-2.4.23#
ls /usr/local/mysql/include/mysql/storage/ndb/
mgmapi  ndbapi  ndb_constants.h  ndb_init.h  ndb_types.h  ndb_version.h

r...@sms:/tmp/openldap-2.4.23#
ls /usr/local/mysql/include/mysql/storage/ndb/ndbapi/
NdbApi.hpp       ndb_cluster_connection.hpp  NdbError.hpp
NdbIndexOperation.hpp      NdbInterpretedCode.hpp  NdbPool.hpp
NdbScanFilter.hpp
ndbapi_limits.h  NdbDictionary.hpp           NdbEventOperation.hpp
NdbIndexScanOperation.hpp  NdbOperation.hpp        NdbRecAttr.hpp
NdbScanOperation.hpp
NdbBlob.hpp      ndberror.h                  Ndb.hpp
NdbIndexStat.hpp           ndb_opt_defaults.h      NdbReceiver.hpp
NdbTransaction.hpp

r...@sms:/tmp/openldap-2.4.23#
ls /usr/local/mysql/include/mysql/storage/ndb/mgmapi/
mgmapi_config_parameters_debug.h  mgmapi_config_parameters.h
mgmapi_debug.h  mgmapi_error.h  mgmapi.h  ndbd_exit_codes.h
ndb_logevent.h

The config.log excerpt is as follows:

configure:29974: checking for NdbApi.hpp
configure:29989: cc -E -I/usr/local/mysql/include/mysql
-I/usr/local/mysql/include/mysql/storage/ndb
-I/usr/local/mysql/include/mysql/storage/ndb/ndbapi conftest.c
In file included
from 
/usr/local/mysql/include/mysql/storage/ndb/ndbapi/ndb_cluster_connection.hpp:22,

from /usr/local/mysql/include/mysql/storage/ndb/ndbapi/NdbApi.hpp:23,
                 from conftest.c:119:
/usr/local/mysql/include/mysql/storage/ndb/ndb_types.h:53:24: error:
operator '==' has no left operand
/usr/local/mysql/include/mysql/storage/ndb/ndb_types.h:55:24: error:
operator '==' has no left operand
/usr/local/mysql/include/mysql/storage/ndb/ndb_types.h:61:24: error:
operator '==' has no left operand
/usr/local/mysql/include/mysql/storage/ndb/ndb_types.h:65:25: error:
operator '==' has no left operand
/usr/local/mysql/include/mysql/storage/ndb/ndb_types.h:69:23: error:
operator '==' has no left operand
/usr/local/mysql/include/mysql/storage/ndb/ndb_types.h:73:29: error:
operator '==' has no left operand
configure:29995: $? = 1

Are the files in ../ndbapi not the ndbclient libraries configure is
looking for?

Thanks for the input.

Regards

Yusuf Rajah






-----Original Message-----
From: Quanah Gibson-Mount <[email protected]>
To: Yusuf Rajah <[email protected]>, [email protected]
Subject: Re: openldap-2.4.23 compile configure: error: could not locate
ndbclient library
Date: Tue, 10 Aug 2010 08:38:15 -0700



--On August 10, 2010 8:16:58 AM +0200 Yusuf Rajah <[email protected]> 
wrote:

> Hi All
>
> I have been trying to solve this for 4 days now without any luck. I have
> searched and tried fixes and nothing works, I am hoping some fresh minds
> and eyes can help me out with this.
>
> I want to run OpenLDAP using MySQL Cluster Server with the ndb backend
> database. I have installed mysql-cluster-gpl-7.1.5 from source, it is
> working and I have migrated some data into it to test. I am trying to
> compile openldap-2.4.23 with support for back-NDB. I run:
>
> ./configure --enable-ndb --disable-hdb --disable-bdb
> --prefix=/usr/local/openldap
>
> and eventually get:
>
> checking for ndb_init in -lndbclient... no
> configure: error: could not locate ndbclient library

Where did you install mysql cluster to?  Obviously configure cannot find 
the ndbclient library.  You need to make sure configure can find it by 
setting LDFLAGS appropriately.

--Quanah



Reply via email to