Bug #18369 --with-zlib-dir broken
Submitted: 20 Mar 2006 23:35 Modified: 1 Apr 2006 1:53
Reporter: Michel Jouvin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.19 OS:Other (Tru64 5.1B)
Assigned to: Kent Boortz CPU Architecture:Any

[20 Mar 2006 23:35] Michel Jouvin
Description:
--with-zlib-dir uncorrectly reports that headers/libs for Zlib are not found in the specified location. This is cause by configure defining a variable INCLUDES before using $ac_link to test existence of the includes and libs. But $ac_link doesn't use INCLUDES. 

I don't think this issue is platform specific... but I am surprised I didn't find any previous report on it.

How to repeat:
Add --with-zlib-dir with a non standard location.

Suggested fix:
My workaround was to add $INCLUDES to CPPFLAGS (which is used by $ac_link).
[24 Mar 2006 9:22] Hartmut Holzgraefe
verified on linux, i renamed the zlib.h in /usr/include and tried to configure
--with-zlib=/path/to/alternative/install and it failed, with /usr/include/zlib.h
in place it succeded
[1 Apr 2006 1:38] 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/4381
[1 Apr 2006 1:50] 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/4383