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
I am doing this on an Ubuntu 10.04 Linux system 2.6.32-24-server SMP x86_64 GNU/Linux.
Your help would be tremendously appreciated.
Regards
Yusuf Rajah
--On August 10, 2010 8:16:58 AM +0200 Yusuf Rajah yusuf@josephking.it 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
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:
root@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
root@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
root@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 quanah@zimbra.com To: Yusuf Rajah yusuf@josephking.it, openldap-technical@openldap.org 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 yusuf@josephking.it 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
--On August 10, 2010 10:48:27 PM +0200 Yusuf Rajah yusuf@josephking.it wrote:
Hi Quanah
Thank you for taking the time to help.
[snip]
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?
This clearly shows two things:
(a) It found your locally installed headers (b) There is something wrong with the header files being used, so trying to compile anything against them throws an error. You need to find what is wrong with the ndb_types.h file from MySQL. This is not an OpenLDAP issue.
--Quanah
-----Original Message----- From: Quanah Gibson-Mount quanah@zimbra.com To: Yusuf Rajah yusuf@josephking.it, openldap-technical@openldap.org 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 yusuf@josephking.it 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
Hi Quanah
Thanks for the help. I could not figure out what was wrong with the headers. What I did do was to download, mysql-cluster-gpl-7.1.5-linux-x86_64-glibc23.tar.gz, the generic binary for MySQL Cluster and install as per the instructions. I then built OpenLDAP from the openldap-2.4.23 source and it compiled perfectly, no errors.
Thank you for helping point me in the right direction, hope this helps others out there too.
Kind regards
Yusuf Rajah
-----Original Message----- From: Quanah Gibson-Mount quanah@zimbra.com To: Yusuf Rajah yusuf@josephking.it Cc: openldap-technical@openldap.org Subject: Re: openldap-2.4.23 compile configure: error: could not locate ndbclient library Date: Tue, 10 Aug 2010 14:11:14 -0700
--On August 10, 2010 10:48:27 PM +0200 Yusuf Rajah yusuf@josephking.it wrote:
Hi Quanah
Thank you for taking the time to help.
[snip]
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?
This clearly shows two things:
(a) It found your locally installed headers (b) There is something wrong with the header files being used, so trying to compile anything against them throws an error. You need to find what is wrong with the ndb_types.h file from MySQL. This is not an OpenLDAP issue.
--Quanah
-----Original Message----- From: Quanah Gibson-Mount quanah@zimbra.com To: Yusuf Rajah yusuf@josephking.it, openldap-technical@openldap.org 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 yusuf@josephking.it 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
openldap-technical@openldap.org