Bug 198811

Summary: databases/mysql56-server, databases/mysql56-client should use system zlib not bundled
Product: Ports & Packages Reporter: Matthias Andree <mandree>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed DUPLICATE    
Severity: Affects Some People    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch to make MySQL use the system's zlib mandree: maintainer-approval? (ale)

Description Matthias Andree freebsd_committer freebsd_triage 2015-03-22 22:54:19 UTC
Created attachment 154682 [details]
patch to make MySQL use the system's zlib

mysql56-client statically links in the bundled zlib, which is older than FreeBSD's system zlib.

This causes problems in Postfix if it is compiled to use MySQL because other libraries in Postfix need the system libz for dlopen(), but since the symbols are already defined from the bundled libz, the system libz symbols won't be bound.  Since the implementations (/lib/libz.so vs. the mysql-bundled zlib) aren't compatible, this causes crashes.

Evidence:

http://thread.gmane.org/gmane.mail.postfix.user/249888/focus=249910

(and the thread surrounding it, which reflects the entire debugging procedure)


I am proposing the attached patch to remedy the problem.
Alternatively, someone could debug the build and find out why MySQL56-client cannot find the zlib and resorts to the bundled one.  I am not sufficiently familiar with debugging cmake rigs to assist here.
Comment 1 Matthias Andree freebsd_committer freebsd_triage 2015-03-22 22:55:12 UTC

*** This bug has been marked as a duplicate of bug 198812 ***