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

(ITS#6535) OpenLDAP fails to build with back-ndb enabled



Full_Name: Gary T. Giesen
Version: 2.4.21
OS: RHEL 6 Beta 1
URL: 
Submission from: (NULL) (66.135.102.175)


OpenLDAP 2.4.21 (as well as 2.4.19) fails to configure or build on RHEL6 with
back-ndb support enabled. I've solved the problem with configure by applying a
modified version of the patch found here: 

http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2010-March/184248.html

However, when building, I get the following error:

  cd back-ndb; make -w all
make[3]: Entering directory
`/home/ggiesen/openldap-2.4.21/servers/slapd/back-ndb'
rm -f version.c
../../../build/mkversion -v "2.4.21" back_ndb > version.c
/bin/sh ../../../libtool --tag=disable-shared --mode=compile g++ -g -O2
-I../../../include        -I../../../include -I.. -I./.. -I/usr/include/mysql
-I/usr/include/mysql/storage/ndb -I/usr/include/mysql/storage/ndb/ndbapi     -c
init.cpp
 g++ -g -O2 -I../../../include -I../../../include -I.. -I./..
-I/usr/include/mysql -I/usr/include/mysql/storage/ndb
-I/usr/include/mysql/storage/ndb/ndbapi -c init.cpp -o init.o
init.cpp:65: error: expected constructor, destructor, or type conversion before
'*' token
init.cpp: In function 'int ndb_back_initialize(BackendInfo*)':
init.cpp:366: warning: deprecated conversion from string constant to 'char*'
init.cpp:366: warning: deprecated conversion from string constant to 'char*'
init.cpp:366: warning: deprecated conversion from string constant to 'char*'
init.cpp:366: warning: deprecated conversion from string constant to 'char*'
init.cpp:366: warning: deprecated conversion from string constant to 'char*'
init.cpp:366: warning: deprecated conversion from string constant to 'char*'
init.cpp:366: warning: deprecated conversion from string constant to 'char*'
init.cpp:366: warning: deprecated conversion from string constant to 'char*'
init.cpp:376: error: 'ndb_lastrow_code' was not declared in this scope
init.cpp:376: error: expected type-specifier before 'NdbInterpretedCode'
init.cpp:376: error: expected ';' before 'NdbInterpretedCode'
make[3]: *** [init.lo] Error 1
make[3]: Leaving directory
`/home/ggiesen/openldap-2.4.21/servers/slapd/back-ndb'
make[2]: *** [.backend] Error 1
make[2]: Leaving directory `/home/ggiesen/openldap-2.4.21/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/home/ggiesen/openldap-2.4.21/servers'
make: *** [all-common] Error 1


This occurs with rebuilding the 2.4.19 SRPM, using the openldap.org 2.4.19
tarball, and the openldap 2.4.21 tarball. I'm using the Redhat-supplied
mysql-cluster.