ports/144622: Compile OpenLDAP-server 2.4.21 with NDB-support failed
Terranus
terranus at land.ru
Wed Mar 10 13:50:07 UTC 2010
>Number: 144622
>Category: ports
>Synopsis: Compile OpenLDAP-server 2.4.21 with NDB-support failed
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 10 13:50:06 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Terranus
>Release: 8.0-RELEASE
>Organization:
>Environment:
FreeBSD mydom.home 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
NDB-cluster support failed while configure
>How-To-Repeat:
1. Run `./configure --enable-ndb` plus other default options fails with error:
'checking for NdbApi.hpp... configure: error: could not locate NdbApi headers'
2. After fixing (see below) getting next error:
'checking for NdbApi.hpp... yes
checking for ndb_init in -lndbclient... no
configure: error: could not locate ndbclient library'
and in config.log:
configure:30018: checking for ndb_init in -lndbclient
configure:30053: cc -o conftest -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -I/usr/local/include/db46 -I/usr/local/include -L/usr/local/lib/mysql -lmysqlclient_r -lz -pthread -lcrypt -lm -pthread conftest.c -lndbclient -lstdc++ >&5
/usr/local/lib/mysql/libndbclient.so: undefined reference to `decimal_bin_size'
/usr/local/lib/mysql/libndbclient.so: undefined reference to `base64_needed_decoded_length'
/usr/local/lib/mysql/libndbclient.so: undefined reference to `base64_decode'
>Fix:
1. Modifying configure script:
--- openldap-2.4.21/configure.bak2 2010-03-10 12:35:45.000000000 +0300
+++ openldap-2.4.21/configure 2010-03-10 14:56:17.000000000 +0300
@@ -29964,7 +29964,7 @@
fi
SQL_INC=`mysql_config --include`
- SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
+ SLAPD_NDB_INCS="$SQL_INC $SQL_INC/ndb $SQL_INC/ndb/ndbapi"
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$SLAPD_NDB_INCS"
2. Modifying configure script:
--- openldap-2.4.21/configure.bak2 2010-03-10 12:35:45.000000000 +0300
+++ openldap-2.4.21/configure 2010-03-10 14:56:17.000000000 +0300
@@ -30010,7 +30010,7 @@
CPPFLAGS="$save_CPPFLAGS"
SQL_LIB=`mysql_config --libs_r`
- SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
+ SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++ -lmysqlclient -lmysqld"
save_LDFLAGS="$LDFLAGS"
save_LIBS="$LIBS"
@@ -30021,7 +30021,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lndbclient -lstdc++ $LIBS"
+LIBS="-lndbclient -lstdc++ -lmysqlclient -lmysqld $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
Patch attached with submission follows:
--- openldap-2.4.21/configure.bak2 2010-03-10 12:35:45.000000000 +0300
+++ openldap-2.4.21/configure 2010-03-10 14:56:17.000000000 +0300
@@ -29964,7 +29964,7 @@
fi
SQL_INC=`mysql_config --include`
- SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
+ SLAPD_NDB_INCS="$SQL_INC $SQL_INC/ndb $SQL_INC/ndb/ndbapi"
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$SLAPD_NDB_INCS"
@@ -30010,7 +30010,7 @@
CPPFLAGS="$save_CPPFLAGS"
SQL_LIB=`mysql_config --libs_r`
- SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
+ SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++ -lmysqlclient -lmysqld"
save_LDFLAGS="$LDFLAGS"
save_LIBS="$LIBS"
@@ -30021,7 +30021,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lndbclient -lstdc++ $LIBS"
+LIBS="-lndbclient -lstdc++ -lmysqlclient -lmysqld $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list