Bug #59327 Fix autoconf usage for innodb_plugin
Submitted: 6 Jan 2011 10:18 Modified: 19 Jan 2011 1:24
Reporter: Jonathan Perkin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.1.46 OS:Other (NetBSD/sparc64)
Assigned to: Vasil Dimov CPU Architecture:Any

[6 Jan 2011 10:18] Jonathan Perkin
Description:
The fix for bug#53916 doesn't work in all cases, the problem is that AC_CHECK_FUNCS() exits true if any of the functions are available, not if all are.

The solution is to call AC_CHECK_FUNC for each required function.

How to repeat:
Build MySQL 5.1 on NetBSD/sparc64.

Suggested fix:
The patch at http://www.netbsd.org/~mrg/mysql-sp64.diff fixes this.
[7 Jan 2011 9:28] 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/128139

3679 Vasil Dimov	2011-01-07
      Fix Bug#59327 Fix autoconf usage for innodb_plugin
      
      AC_CHECK_FUNCS(f1 f2 f3, ACTION_IF_PRESENT)
      ACTION_IF_PRESENT is executed if any of f1, f2 or f3 is present.
      Fix this misusage, we want the action to be executed if all of the
      functions are present.
[8 Jan 2011 15:08] Bugs System
Pushed into mysql-trunk 5.6.2 (revid:vasil.dimov@oracle.com-20110108150732-8qygun7nuaqf9d3u) (version source revid:vasil.dimov@oracle.com-20110108150646-44c9j7ck64ocey31) (merge vers: 5.6.2) (pib:24)
[8 Jan 2011 15:09] Bugs System
Pushed into mysql-5.5 5.5.9 (revid:vasil.dimov@oracle.com-20110108150508-gpanhz48z8069qot) (version source revid:vasil.dimov@oracle.com-20110108150048-b1y9m8xe72hay0ch) (merge vers: 5.5.9) (pib:24)
[8 Jan 2011 15:11] Bugs System
Pushed into mysql-5.1 5.1.55 (revid:vasil.dimov@oracle.com-20110108145923-0tjqdpa5w3d6tuwn) (version source revid:vasil.dimov@oracle.com-20110108145923-0tjqdpa5w3d6tuwn) (merge vers: 5.1.55) (pib:24)
[19 Jan 2011 1:24] Paul DuBois
Noted in 5.1.55 changelog.

A compilation problem affected the InnoDB source code on
NetBSD/sparc64.