Bug #47223 MySQL Cluster won't configure using system zlib
Submitted: 9 Sep 2009 17:11 Modified: 2 Oct 2009 11:43
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:11] Michael Richard
Description:
Configuring MySQL cluster --with-zlib-dir=/usr will raise an error:

checking for zlib compression library... configure: error: headers or binaries were not found in /usr/{include,lib}

How to repeat:
./configure --with-zlib-dir=/usr

Suggested fix:
diff -rupN mysql-cluster-gpl-7.0.6.orig/configure mysql-cluster-gpl-7.0.6/configure
--- mysql-cluster-gpl-7.0.6.orig/configure	2009-05-26 10:43:03.000000000 -0400
+++ mysql-cluster-gpl-7.0.6/configure	2009-09-09 07:32:00.000000000 -0400
@@ -21773,6 +21773,7 @@ $as_echo "system-wide zlib not found, us
 save_CPPFLAGS="$CPPFLAGS"
 save_LIBS="$LIBS"
 CPPFLAGS="$ZLIB_INCLUDES $CPPFLAGS"
+LIBS="$ZLIB_LIBS $LIBS"
 if test X"$with_server" = Xno
 then
   zlibsym=zlibVersion
[9 Sep 2009 20:11] Sveta Smirnova
Thank you for the report.

Verified as described. Problem is only repeatable with mysql-5.1-telco-7.0 tree and not with mysql-5.1
[24 Sep 2009 15:09] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/84524

3062 Bernhard Ocklin	2009-09-24
      bug#47223 fixing makefiles to allow proper --with-zlib-dir=<dir> usage
[24 Sep 2009 18:56] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/84561

3065 Bernhard Ocklin	2009-09-24
      bug#47223 fixing makefiles to allow proper --with-zlib-dir=<dir> usage
[30 Sep 2009 8:13] Bugs System
Pushed into 5.1.37-ndb-6.3.28 (revid:jonas@mysql.com-20090930070741-13u316s7s2l7e1ej) (version source revid:bernhard.ocklin@sun.com-20090924185622-o8ws99rojtk6n40z) (merge vers: 5.1.37-ndb-6.3.27) (pib:11)
[30 Sep 2009 8:14] Bugs System
Pushed into 5.1.37-ndb-7.0.9 (revid:jonas@mysql.com-20090930075942-1q6asjcp0gaeynmj) (version source revid:jonas@mysql.com-20090925133800-vqzd6wuxxys5et6q) (merge vers: 5.1.37-ndb-7.0.8) (pib:11)
[30 Sep 2009 8:15] Bugs System
Pushed into 5.1.35-ndb-7.1.0 (revid:jonas@mysql.com-20090930080049-1c8a8cio9qgvhq35) (version source revid:jonas@mysql.com-20090925143824-3i5kcvsf8v3yf79j) (merge vers: 5.1.35-ndb-7.1.0) (pib:11)
[2 Oct 2009 11:43] Jon Stephens
Documented bugfix in the NDB-6.3.28 and 7.0.9 changelogs as follows:

        configure failed to honor the --with-zlib-dir option when trying
        to build MySQL Cluster from source.

Closed.