Machine one - openSUSE Factory: =============================== mhrusecky@zihadlo:~/work/osc/home/mysql-connector-cpp/mysql-connector-c++-1.0.5> cmake . -DCMAKE_INSTALL_PREFIX=/usr -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- mysql_config was found /usr/bin/mysql_config -- MySQL Include dir: /usr/include/mysql -- MySQL Library : -- MySQL Library dir: /usr/lib64/mysql;/usr/lib;/usr/lib64 -- MySQL CXXFLAGS: -I/usr/include/mysql -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DPIC -fPIC -DUNDEF_HAVE_INITGROUPS -fno-strict-aliasing -DUNIV_LINUX -- MySQL Link flags: -- MySQL Version: 5.1.34 -- MySQL Include dir: /usr/include/mysql -- MySQL Library dir: /usr/lib64/mysql;/usr/lib;/usr/lib64 -- MySQL CXXFLAGS: -I/usr/include/mysql -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DPIC -fPIC -DUNDEF_HAVE_INITGROUPS -fno-strict-aliasing -DUNIV_LINUX -- MySQL Link flags: -- Installation path is: /usr (overwrite with -DCMAKE_INSTALL_PREFIX=/your/path) -- Looking for include files HAVE_STDINT_H -- Looking for include files HAVE_STDINT_H - found -- Looking for include files HAVE_INTTYPES_H -- Looking for include files HAVE_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 -- Configuring driver -- Configuring examples -- Configuring test cases -- Configuring tests framework lib -- Configuring C/J junit tests port -- 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 - group template_bug -- Configuring done -- Generating done -- Build files have been written to: /home/mhrusecky/work/osc/home/mysql-connector-cpp/mysql-connector-c++-1.0.5 mhrusecky@zihadlo:~/work/osc/home/mysql-connector-cpp/mysql-connector-c++-1.0.5> make [ 0%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.o /home/mhrusecky/work/osc/home/mysql-connector-cpp/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp: In member function 'std::string sql::mysql::MyVal::getString()': /home/mhrusecky/work/osc/home/mysql-connector-cpp/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:57: error: 'snprintf' was not declared in this scope /home/mhrusecky/work/osc/home/mysql-connector-cpp/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:63: error: 'snprintf' was not declared in this scope /home/mhrusecky/work/osc/home/mysql-connector-cpp/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:69: error: 'snprintf' was not declared in this scope /home/mhrusecky/work/osc/home/mysql-connector-cpp/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:75: error: 'snprintf' was not declared in this scope make[2]: *** [driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.o] Error 1 make[1]: *** [driver/CMakeFiles/mysqlcppconn.dir/all] Error 2 make: *** [all] Error 2 mhrusecky@zihadlo:~/work/osc/home/mysql-connector-cpp> gcc --version gcc (SUSE Linux) 4.4.0 [gcc-4_4-branch revision 147285] Copyright (C) 2009 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. Machine two - Gentoo: ===================== michal@misibook /tmp/mysql-connector-c++-1.0.5 $ cmake . -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- mysql_config was found /usr/bin/mysql_config -- MySQL Include dir: /usr/include/mysql -- MySQL Library : -- MySQL Library dir: /usr/lib64/mysql;/usr/lib64 -- MySQL CXXFLAGS: -I/usr/include/mysql -DHAVE_ERRNO_AS_DEFINE=1 -- MySQL Link flags: -- MySQL Version: 5.0.76 -- MySQL Include dir: /usr/include/mysql -- MySQL Library dir: /usr/lib64/mysql;/usr/lib64 -- MySQL CXXFLAGS: -I/usr/include/mysql -DHAVE_ERRNO_AS_DEFINE=1 -- MySQL Link flags: -- Installation path is: /usr/local (overwrite with -DCMAKE_INSTALL_PREFIX=/your/path) -- Looking for include files HAVE_STDINT_H -- Looking for include files HAVE_STDINT_H - found -- Looking for include files HAVE_INTTYPES_H -- Looking for include files HAVE_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 -- Configuring driver -- Configuring examples -- Configuring test cases -- Configuring tests framework lib -- Configuring C/J junit tests port -- 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 - group template_bug -- Configuring done -- Generating done -- Build files have been written to: /tmp/mysql-connector-c++-1.0.5 michal@misibook /tmp/mysql-connector-c++-1.0.5 $ make [ 0%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.o /tmp/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp: In member function 'std::string sql::mysql::MyVal::getString()': /tmp/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:57: error: 'snprintf' was not declared in this scope /tmp/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:63: error: 'snprintf' was not declared in this scope /tmp/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:69: error: 'snprintf' was not declared in this scope /tmp/mysql-connector-c++-1.0.5/driver/mysql_art_resultset.cpp:75: error: 'snprintf' was not declared in this scope make[2]: *** [driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.o] Error 1 make[1]: *** [driver/CMakeFiles/mysqlcppconn.dir/all] Error 2 make: *** [all] Error 2 michal@misibook /tmp/mysql-connector-c++-1.0.5 $ gcc --version gcc (Gentoo 4.4.0 p1.0) 4.4.0 Copyright (C) 2009 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.