Bug #26372 configure test for zlib not universal
Submitted: 14 Feb 2007 16:05 Modified: 15 Feb 2007 12:00
Reporter: Andy Fiddaman Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.0.33 OS:Solaris (Solaris 10 SPARC 64-bit)
Assigned to: CPU Architecture:Any

[14 Feb 2007 16:05] Andy Fiddaman
Description:
The way that configure tests for zlib availability is non-portable. It tests for the existence of zlibCompileFlags() which at least doesn't exist in my Solaris zlib.

I'm linking with openssl and I need to link MySQL with the same libz otherwise the server crashes when doing SSL operations, so I configure with --with-zlib-dir=/usr - configure fails as zlib is 'not available'

How to repeat:
Configure on Solaris 10 with --with-zlib-dir=/usr

Suggested fix:
--- config/ac-macros/zlib.m4~   2007-02-14 16:03:45.375306193 +0000
+++ config/ac-macros/zlib.m4    2007-02-14 16:04:24.516591073 +0000
@@ -19,7 +19,7 @@
 LIBS="$LIBS $ZLIB_LIBS"
 AC_CACHE_VAL([mysql_cv_compress],
   [AC_TRY_LINK([#include <zlib.h>],
-    [return zlibCompileFlags();],
+    [return zlibVersion();],
     [mysql_cv_compress="yes"
     AC_MSG_RESULT([ok])],
     [mysql_cv_compress="no"])
[15 Feb 2007 12:00] Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on
how to report a bug at http://bugs.mysql.com/how-to-report.php

Thank you for the report. But zlibCompileFlags is heeded for MySQL server. (For example, ARCHIVE storage engine). Try to upgrade your Solaris zlib instead.