Bug #75063 Connector/C++ won't build against boost-devel-1.41.0-25.el6.i686
Submitted: 1 Dec 2014 14:51 Modified: 16 Jan 2015 16:08
Reporter: Marcin Szalowicz Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / C++ Severity:S3 (Non-critical)
Version: OS:Linux (Oracle Linux 6)
Assigned to: Hemant Dangi CPU Architecture:Any
Tags: boost, cmake, Connector/C++

[1 Dec 2014 14:51] Marcin Szalowicz
Description:
As in the synopsis, Connector/C++ won't build against boost-devel-1.41.0-25.el6.i686 but will build with boost 1.41.0-18.el6

A workaround can be used to get it working, which can be found here:
http://public.kitware.com/Bug/view.php?id=15270

How to repeat:
Build Connector/C++ on OL6 with boost-devel-1.41.0-25.el6.i686
[2 Dec 2014 6:18] MySQL Verification Team
Hello Marcin,

Thank you for the report.

Thanks,
Umesh
[2 Dec 2014 6:18] MySQL Verification Team
//

[root@cluster-repo setups]# ls -l mysql-connector-c++-1.1.5.tar.gz
-rw-r--r-- 1 root root 519440 Nov 20 23:53 mysql-connector-c++-1.1.5.tar.gz
[root@cluster-repo setups]# md5sum mysql-connector-c++-1.1.5.tar.gz
7cdffd0aa6e48035485081cf94521b02  mysql-connector-c++-1.1.5.tar.gz
[root@cluster-repo setups]#
[root@cluster-repo setups]# tar -zxvf mysql-connector-c++-1.1.5.tar.gz
.
.
[root@cluster-repo setups]# cd mysql-connector-c++-1.1.5
[root@cluster-repo mysql-connector-c++-1.1.5]# rpm -qa|grep boost-devel
boost-devel-1.41.0-25.el6.x86_64
[root@cluster-repo mysql-connector-c++-1.1.5]# cmake .
CMake Warning (dev) in CMakeLists.txt:
  Syntax Warning in cmake code at

    /data/ushastry/setups/mysql-connector-c++-1.1.5/CMakeLists.txt:62:24

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
  Syntax Warning in cmake code at

    /data/ushastry/setups/mysql-connector-c++-1.1.5/CMakeLists.txt:62:43

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Environment compile flags:
-- Environment link flags:
CMake Error at /usr/lib64/boost/Boost.cmake:536 (message):
  The imported target "boost_date_time-static" references the file

     "/usr/lib64/lib64/libboost_date_time.a"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib64/boost/Boost.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib64/boost/BoostConfig.cmake:28 (include)
  /usr/local/share/cmake-2.8/Modules/FindBoost.cmake:177 (find_package)
  CMakeLists.txt:136 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/data/ushastry/setups/mysql-connector-c++-1.1.5/CMakeFiles/CMakeOutput.log".
[root@cluster-repo mysql-connector-c++-1.1.5]#
[root@cluster-repo mysql-connector-c++-1.1.5]# cat /etc/*release
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Oracle Linux Server release 6.6
Red Hat Enterprise Linux Server release 6.6 (Santiago)
Oracle Linux Server release 6.6
[root@cluster-repo mysql-connector-c++-1.1.5]#

[root@cluster-repo mysql-connector-c++-1.1.5] cmake --version
cmake version 2.8.12.2
[root@cluster-repo mysql-connector-c++-1.1.5] gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[5 Dec 2014 13:09] Hemant Dangi
Posted by developer:
 
Issue gets resolved on OLE6 by setting Boost_NO_BOOST_CMAKE.

=== modified file 'CMakeLists.txt'
--- CMakeLists.txt	revid:hemant.dangi@oracle.com-20141201101949-52eih37czyv7ywit
+++ CMakeLists.txt	2014-12-05 13:07:15 +0000
@@ -130,6 +130,7 @@
 
 # Prefer static linking in all cases
 SET(Boost_ADDITIONAL_VERSIONS "1.37.0" "1.37" "1.38.0" "1.38" "1.39.0" "1.39")
+SET(Boost_NO_BOOST_CMAKE ON CACHE BOOL "Enable fix for FindBoost.cmake")
 SET(MYSQLCPPCONN_BOOST_COMPONENTS thread date_time)
 SET(Boost_USE_STATIC_LIBS TRUE)
 #FIND_PACKAGE(Boost COMPONENTS ${MYSQLCPPCONN_BOOST_COMPONENTS})
[16 Dec 2014 10:41] Hemant Dangi
Posted by developer:
 
C/C++ won't build against Boost-devel-1.41.0-25 on OLE6.

Committed as revision 1014.
[16 Jan 2015 16:08] Paul DuBois
Noted in 1.1.6 changelog.

Connector/C++ failed to build against Boost-devel-1.41.0-25 on OLE6.