-- OS, other details ushastry@ubuntu1504:~/Downloads$ md5sum mysql-connector-c++-1.1.7.tar.gz 4b0425811bca23c0323b97e787b7709e mysql-connector-c++-1.1.7.tar.gz ushastry@ubuntu1504:~/Downloads$ cmake --version cmake version 3.0.2 CMake suite maintained and supported by Kitware (kitware.com/cmake). ushastry@ubuntu1504:~/Downloads$ gcc --version gcc (Ubuntu 4.9.2-10ubuntu13) 4.9.2 Copyright (C) 2014 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. ushastry@ubuntu1504:~/Downloads$ which mysql_config /usr/bin/mysql_config ushastry@ubuntu1504:~/Downloads$ cat /usr/bin/mysql_config|grep -i cxxflags cxxflags="-I$pkgincludedir -O3 -DBIG_JOINS=1 -felide-constructors -fpermissive -fno-rtti -fno-strict-aliasing -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF " #note: end space! ushastry@ubuntu1504:~/Downloads/mysql-connector-c++-1.1.7$ dpkg -l|grep mysql ii libdbd-mysql-perl 4.028-2 amd64 Perl5 database interface to the MySQL database ii libmysqlclient-dev 5.6.28-0ubuntu0.15.04.1 amd64 MySQL database development files ii libmysqlclient18:amd64 5.6.28-0ubuntu0.15.04.1 amd64 MySQL database client library ii mysql-apt-config 0.6.0-1 all Auto configuration for MySQL APT Repo. ii mysql-client-5.6 5.6.28-0ubuntu0.15.04.1 amd64 MySQL database client binaries ii mysql-client-core-5.6 5.6.28-0ubuntu0.15.04.1 amd64 MySQL database core client binaries ii mysql-common 5.6.28-0ubuntu0.15.04.1 all MySQL database common files, e.g. /etc/mysql/my.cnf ii mysql-server 5.6.28-0ubuntu0.15.04.1 all MySQL database server (metapackage depending on the latest version) ii mysql-server-5.6 5.6.28-0ubuntu0.15.04.1 amd64 MySQL database server binaries and system database setup ii mysql-server-core-5.6 5.6.28-0ubuntu0.15.04.1 amd64 MySQL database server binaries ushastry@ubuntu1504:~/Downloads/mysql-connector-c++-1.1.7$ cat /etc/*release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=15.04 DISTRIB_CODENAME=vivid DISTRIB_DESCRIPTION="Ubuntu 15.04" NAME="Ubuntu" VERSION="15.04 (Vivid Vervet)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 15.04" VERSION_ID="15.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" ushastry@ubuntu1504:~/Downloads/mysql-connector-c++-1.1.7$ cmake . -- Boost version: 1.55.0 -- BOOST_INCLUDE_DIRS=/usr/include -- You will link dynamically to the MySQL client library (set with -DMYSQLCLIENT_STATIC_LINKING=) -- Searching for dynamic libraries with the base name(s) "mysqlclient_r mysqlclient" -- mysql_config was found /usr/bin/mysql_config -- MySQL client environment/cmake variables set that the user can override -- MYSQL_DIR : -- MYSQL_INCLUDE_DIR : /usr/include/mysql -- MYSQL_LIB_DIR : /usr/lib/x86_64-linux-gnu -- MYSQL_CONFIG_EXECUTABLE : /usr/bin/mysql_config -- MYSQL_CXX_LINKAGE : 1 -- MYSQL_CFLAGS : -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -- MYSQL_CXXFLAGS : -I/usr/include/mysql -DBIG_JOINS=1 -felide-constructors -fpermissive -fno-rtti -fno-strict-aliasing -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -- MYSQLCLIENT_STATIC_LINKING : -- MYSQLCLIENT_NO_THREADS : -- MySQL client optional environment/cmake variables set by the user -- MYSQL_EXTRA_LIBRARIES : -- MYSQL_LINK_FLAGS : -- MySQL client settings that the user can't override -- MYSQL_VERSION : 5.6.28 -- MYSQL_VERSION_ID : 50628 -- MYSQL_LIB : /usr/lib/x86_64-linux-gnu/libmysqlclient.so -- MYSQL_LIBRARIES : mysqlclient;pthread;z;m;dl -- USE_SERVER_FLAGS : OFF -- Environment compile flags: -- Environment link flags: -- Installation path is: /usr/local (overwrite with -DCMAKE_INSTALL_PREFIX=/your/path) -- Looking for include file stdint.h -- Looking for include file stdint.h - found -- Looking for include file inttypes.h -- Looking for include file inttypes.h - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of int8_t -- Check size of int8_t - done -- Check size of uint8_t -- Check size of uint8_t - done -- Check size of int16_t -- Check size of int16_t - done -- Check size of uint16_t -- Check size of uint16_t - done -- Check size of int32_t -- Check size of int32_t - done -- Check size of uint32_t -- Check size of uint32_t - done -- Check size of int64_t -- Check size of int64_t - done -- Check size of uint64_t -- Check size of uint64_t - done -- Check size of __int8 -- Check size of __int8 - failed -- Check size of unsigned __int8 -- Check size of unsigned __int8 - failed -- Check size of __int16 -- Check size of __int16 - failed -- Check size of unsigned __int16 -- Check size of unsigned __int16 - failed -- Check size of __int32 -- Check size of __int32 - failed -- Check size of unsigned __int32 -- Check size of unsigned __int32 - failed -- Check size of __int64 -- Check size of __int64 - failed -- Check size of unsigned __int64 -- Check size of unsigned __int64 - failed -- Looking for strtold -- Looking for strtold - found -- Looking for strtol -- Looking for strtol - found -- Looking for strtoll -- Looking for strtoll - found -- Looking for strtoul -- Looking for strtoul - found -- Looking for strtoull -- Looking for strtoull - found -- Looking for strtoimax -- Looking for strtoimax - found -- Looking for strtoumax -- Looking for strtoumax - found -- Using static libmysql binding -- DT_RPATH will not be set -- Configuring driver -- MySQL dynamic load test library: /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so -- Configuring examples -- Configuring test cases -- Configuring tests framework lib -- Configuring C/J junit tests port -- MySQL dynamic load test library: /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so -- Configuring unit tests -- Configuring unit tests - examples -- Configuring unit tests - connection -- Configuring unit tests - databasemetadata -- Configuring unit tests - resultsetmetadata -- Configuring unit tests - resultset -- Configuring unit tests - savepoint -- Configuring unit tests - preparedstatement -- Configuring unit tests - parametermetadata -- Configuring unit tests - art_resultset -- Configuring unit tests - statement -- Configuring unit tests - uri -- Configuring unit tests - variant -- Configuring performance test - statement -- Configuring bugs test cases - unsorted -- Configuring unit tests - group template_bug -- Configuring done CMake Warning (dev) in driver/CMakeLists.txt: Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link interface. Run "cmake --help-policy CMP0022" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "mysqlcppconn" has an INTERFACE_LINK_LIBRARIES property which differs from its LINK_INTERFACE_LIBRARIES properties. INTERFACE_LINK_LIBRARIES: mysqlclient;pthread;z;m;dl LINK_INTERFACE_LIBRARIES: This warning is for project developers. Use -Wno-dev to suppress it. -- Generating done -- Build files have been written to: /home/ushastry/Downloads/mysql-connector-c++-1.1.7 ushastry@ubuntu1504:~/Downloads/mysql-connector-c++-1.1.7$ make Scanning dependencies of target mysqlcppconn [ 1%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.cpp.o [ 2%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_art_rset_metadata.cpp.o [ 2%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_connection.cpp.o [ 3%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_debug.cpp.o [ 4%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_driver.cpp.o [ 5%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_metadata.cpp.o [ 5%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_parameter_metadata.cpp.o [ 6%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_prepared_statement.cpp.o [ 7%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_ps_resultset.cpp.o [ 7%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_ps_resultset_metadata.cpp.o [ 8%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_resultbind.cpp.o /home/ushastry/Downloads/mysql-connector-c++-1.1.7/driver/mysql_resultbind.cpp: In function ‘sql::mysql::st_buffer_size_type sql::mysql::allocate_buffer_for_field(const MYSQL_FIELD*)’: /home/ushastry/Downloads/mysql-connector-c++-1.1.7/driver/mysql_resultbind.cpp:89:10: error: ‘MYSQL_TYPE_JSON’ was not declared in this scope case MYSQL_TYPE_JSON: ^ driver/CMakeFiles/mysqlcppconn.dir/build.make:284: recipe for target 'driver/CMakeFiles/mysqlcppconn.dir/mysql_resultbind.cpp.o' failed make[2]: *** [driver/CMakeFiles/mysqlcppconn.dir/mysql_resultbind.cpp.o] Error 1 CMakeFiles/Makefile2:92: recipe for target 'driver/CMakeFiles/mysqlcppconn.dir/all' failed make[1]: *** [driver/CMakeFiles/mysqlcppconn.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2