Bug #24153 mysqld 5.1.12 build breaks with system zlib
Submitted: 9 Nov 2006 19:29 Modified: 8 Dec 2006 13:52
Reporter: Charles Bailey Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.1.12-beta OS:MacOS (Mac OS X)
Assigned to: CPU Architecture:Any
Tags: build

[9 Nov 2006 19:29] Charles Bailey
Description:
If the system zlib is used by specifying --with-zlib=/usr (for instance), the linker flag '-lz' is appended to the LDADD macro in sql/Makefile.  Unfortunately, that macro also appears in mysqld_DEPENDENCIES, causing make to fail with:

make[4]: *** No rule to make target `-lz', needed by `mysqld'.  Stop.

How to repeat:
./configure <blah blah> --with-zlib=/usr
make

Suggested fix:
One might consider different macros for ZLIB_LIBS (what the linker needs) and, say, ZLIB_TARGET (what needs to be built for the linker to succeed), but exactly how this would best work depends on how your local autoconf scripts are designed.
[8 Dec 2006 13:52] Sveta Smirnova
Thank you for the report.

I can not repeat it using current BK sources.