Bug #58955 Must -DBUILD_CONFIG=mysql_release require libaio on Linux
Submitted: 15 Dec 2010 21:32 Modified: 4 Mar 2013 18:26
Reporter: Mark Callaghan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S4 (Feature request)
Version:5.5.8 OS:Linux
Assigned to: Assigned Account CPU Architecture:Any

[15 Dec 2010 21:32] Mark Callaghan
Description:
-DBUILD_CONFIG=mysql_release requires libaio on Linux. I have an old platform (CentOS 5.2) and the build fails there. I modified mysql_release.cmake to avoid a fatal in this case. 

If it is required, can you add mysql_release_noaio.cmake? Or add a shortcut for me to get all of the build options without requiring libaio. Lots of people will be reluctant to link with that library or to install it on a large number of servers.

How to repeat:
Build 5.5.8 from source on a CentOS 5.2 box that doesn't have libaio
[15 Dec 2010 22:40] Davi Arnaut
Perhaps a option to force AIO off. FWIW, CentOS 5.2 should have libaio, even Oracle uses it :-)
[16 Dec 2010 8:41] Valeriy Kravchuk
Surely RPM exists according to rpm.pbone.net, for example. But it would be nice to be able to build without it.
[16 Dec 2010 9:33] 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/127036

3201 Jonathan Perkin	2010-12-16
      bug#58955: Must -DBUILD_CONFIG=mysql_release require libaio on Linux
      
      Allow users to build without aio if they really want to, by passing
      -DIGNORE_AIO_CHECK to cmake.
[17 Dec 2010 12:50] Bugs System
Pushed into mysql-5.5 5.5.9 (revid:georgi.kodinov@oracle.com-20101217124733-p1ivu6higouawv8l) (version source revid:jonathan.perkin@oracle.com-20101216092755-2684lmfxl093zbgc) (merge vers: 5.5.8) (pib:24)
[17 Dec 2010 12:55] Bugs System
Pushed into mysql-trunk 5.6.1 (revid:georgi.kodinov@oracle.com-20101217125013-y8pb3az32rtbplc9) (version source revid:jonathan.perkin@oracle.com-20101216093336-wir24bf9hw6vqa7d) (merge vers: 5.6.1) (pib:24)
[4 Mar 2013 18:26] Paul DuBois
Noted in 5.5.9, 5.6.1 changelogs.

cmake -DBUILD_CONFIG=mysql_release on Linux previously required
libaio to be linked in. Now it is possible to specify
-DIGNORE_AIO_CHECK to build without libaio.