Bug #81311 Linking error on OS X: xplugin needs unbuilt libevent.a
Submitted: 4 May 2016 14:58 Modified: 14 Jul 2016 15:16
Reporter: Dag Wanvik Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[4 May 2016 14:58] Dag Wanvik
Description:
libevent.a is supposed to be built only when needed, e.g. by xplugin. It seems the cmake dependency mechanism doesn't work, at least not on OS X with Cmake 3.4.1 and clang. 

How to repeat:
Run cmake on OS X with cmake 3.4.1 and then build with xcodebuild, making sure you don't specify -DWITH_RAPID=0.
[23 Jun 2016 11:16] Dag Wanvik
Posted by developer:
 
Upgrading to the latest CMake (3.6.0-rc3 for MacOS) made no difference.
[24 Jun 2016 11:28] Dag Wanvik
Posted by developer:
 
It seems PB2 build for macOS work because they use the Make backend.
This cmake issue may explain what we see:

https://cmake.org/Bug/print_bug_page.php?bug_id=8365
[24 Jun 2016 11:35] Dag Wanvik
Posted by developer:
 
And it's still an issue for people it seems. Here is a newer report of the same issue:

https://gitlab.kitware.com/cmake/cmake/issues/16101
[14 Jul 2016 15:16] Paul DuBois
Posted by developer:
 
Noted in 8.0.0 changelog.

libevent was built on OS X even when not needed.