Bug #75793 configure.cmake improperly checks for cxxabi.h
Submitted: 5 Feb 2015 11:52 Modified: 12 Feb 2015 12:56
Reporter: Alexander Pozdneev (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Cluster: Packaging Severity:S3 (Non-critical)
Version:7.3.8 OS:Linux
Assigned to: CPU Architecture:Any
Tags: cmake, cxxabi.h

[5 Feb 2015 11:52] Alexander Pozdneev
Description:
This MySQL Cluster bug is essentially the same as described at http://bugs.mysql.com/bug.php?id=71268 for MySQL.

How to repeat:
1. Run cmake on the source:

   $ cmake . -L
   <...>
   -- Looking for include file cxxabi.h
   -- Looking for include file cxxabi.h - not found
   <...>

2. Make sure cxxabi.h is present

   $ locate cxxabi.h
   /usr/include/c++/4.8/cxxabi.h

Suggested fix:
--- mysql-cluster-gpl-7.3.8-original/configure.cmake	2015-01-09 14:42:01.000000000 +0300
+++ mysql-cluster-gpl-7.3.8-patched/configure.cmake	2015-02-05 02:11:24.573561644 +0300
@@ -245,6 +245,7 @@
 # Tests for header files
 #
 INCLUDE (CheckIncludeFiles)
+INCLUDE (CheckIncludeFileCXX)
 
 CHECK_INCLUDE_FILES ("stdlib.h;stdarg.h;string.h;float.h" STDC_HEADERS)
 CHECK_INCLUDE_FILES (sys/types.h HAVE_SYS_TYPES_H)
@@ -252,7 +253,7 @@
 CHECK_INCLUDE_FILES (aio.h HAVE_AIO_H)
 CHECK_INCLUDE_FILES (arpa/inet.h HAVE_ARPA_INET_H)
 CHECK_INCLUDE_FILES (crypt.h HAVE_CRYPT_H)
-CHECK_INCLUDE_FILES (cxxabi.h HAVE_CXXABI_H)
+CHECK_INCLUDE_FILE_CXX (cxxabi.h HAVE_CXXABI_H)
 CHECK_INCLUDE_FILES (dirent.h HAVE_DIRENT_H)
 CHECK_INCLUDE_FILES (dlfcn.h HAVE_DLFCN_H)
 CHECK_INCLUDE_FILES (execinfo.h HAVE_EXECINFO_H)
[5 Feb 2015 13:32] MySQL Verification Team
Hello Alexander Pozdneev,

Thank you for the bug report and contribution.

[root@cluster-repo mysql-cluster-com-7.3.8]# md5sum mysql-cluster-com-7.3.8.tar.gz
5fe5cc146b1a9d0f3ea84000665e0224  mysql-cluster-com-7.3.8.tar.gz

[root@cluster-repo mysql-cluster-com-7.3.8]# cmake . -L
<...>
-- Looking for include file cxxabi.h
-- Looking for include file cxxabi.h - not found

[root@cluster-repo mysql-cluster-com-7.3.8]# locate cxxabi.h
/usr/include/c++/4.4.4/cxxabi.h

Thanks,
Umesh
[5 Feb 2015 13:32] MySQL Verification Team
Could you please sign the OCA, so that we can consider taking your patch? Please see the following for more details:

http://www.oracle.com/technetwork/community/oca-486395.html
[12 Feb 2015 12:56] Alexander Pozdneev
I confirm the code being submitted is offered under the terms of the OCA.