Bug #47221 libndbclient won't link against libwrap
Submitted: 9 Sep 2009 17:05 Modified: 26 Mar 2010 11:21
Reporter: Michael Richard Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:mysql-5.1-telco-7.0 OS:Linux
Assigned to: CPU Architecture:Any
Tags: 7.0.6

[9 Sep 2009 17:05] Michael Richard
Description:
When compiling MySQL Cluster --with-ndbcluster and --with-libwrap, undefined references to libwrap are raised:

../../../../storage/ndb/src/.libs/libndbclient.so: undefined reference to `eval_client'
../../../../storage/ndb/src/.libs/libndbclient.so: undefined reference to `hosts_access'
../../../../storage/ndb/src/.libs/libndbclient.so: undefined reference to `sock_host'

How to repeat:
./configure --with-ndbcluster --with-libwrap
make

Suggested fix:
diff -rupN mysql-cluster-gpl-7.0.6.orig/storage/ndb/src/mgmsrv/Makefile.in mysql-cluster-gpl-7.0.6/storage/ndb/src/mgmsrv/Makefile.in
--- mysql-cluster-gpl-7.0.6.orig/storage/ndb/src/mgmsrv/Makefile.in	2009-05-26 10:42:51.000000000 -0400
+++ mysql-cluster-gpl-7.0.6/storage/ndb/src/mgmsrv/Makefile.in	2009-09-09 00:40:28.000000000 -0400
@@ -214,7 +214,7 @@ LD_VERSION_SCRIPT = @LD_VERSION_SCRIPT@
 LIBDL = @LIBDL@
 LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
 LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
+LIBS = @LIBS@ @WRAPLIBS@
 LIBTOOL = @LIBTOOL@
 LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
 LIPO = @LIPO@
[9 Sep 2009 17:12] Michael Richard
Changed status to Non-critical
[9 Sep 2009 21:29] Sveta Smirnova
Thank you for the report.

Verified as described.
[26 Mar 2010 11:21] Hartmut Holzgraefe
Can't reproduce with versions >= 7.08 anymore