Bug #45127 Connector/C 6.0.1 source package contains cmake files from previous cmake runs
Submitted: 27 May 2009 11:24 Modified: 27 May 2009 20:44
Reporter: Ulf Wendel Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: C API (client library) Severity:S3 (Non-critical)
Version:6.0.1 OS:Any
Assigned to: CPU Architecture:Any

[27 May 2009 11:24] Ulf Wendel
Description:
The Connector/C 6.0.1 source package contains cmake files from previous cmake runs that can cause warnings/errors such as: 

nixnutz@ulflinux:~/ftp/mysql-connector-c-6.0.1> cmake .
CMake Error: your C compiler: "/opt/studio12/SUNWspro/bin/cc" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "/opt/studio12/SUNWspro/bin/CC" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Looking for thr_create in thread
CMake Error: your C compiler: "/opt/studio12/SUNWspro/bin/cc" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for thr_create in thread - not found
-- Configuring incomplete, errors occurred!
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_C_COMPILER= /usr/local/bin/gcc
CMAKE_CXX_COMPILER= /usr/bin/c++

-- Generating done
-- Build files have been written to: /home/nixnutz/ftp/mysql-connector-c-6.0.1

How to repeat:
Download C/C 6.0.1 source, unpack, run cmake

Suggested fix:
Make sure not only to delete CMakeCache.txt but also all CMakeFiles/ directory before packaging, if packaging is done from a compile tree.CMakeFiles
[27 May 2009 12:03] MySQL Verification Team
Windows build isn't affected:

c:\temp\mysql-connector-c-6.0.1>win\build-nmake-x64.bat
The system cannot find the file specified.
-- The C compiler identification is MSVC
-- The CXX compiler identification is MSVC
-- Check for CL compiler version
-- Check for CL compiler version - 1400
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - no
-- Check CL platform
-- Check CL platform - 64 bit
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 8/VC/bin/amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 8/VC/bin/amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 8/VC/bin/amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 8/VC/bin/amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detected 64-bit platform.
-- Looking for include files HAVE_ALLOCA_H
<cut>
-- Performing Test C_HAS_inline - Failed
-- Performing Test C_HAS___inline__
-- Performing Test C_HAS___inline__ - Failed
-- Performing Test C_HAS___inline
-- Performing Test C_HAS___inline - Failed
-- Configuring done
-- Generating done
-- Build files have been written to: C:/temp/mysql-connector-c-6.0.1
        1 file(s) copied.

c:\temp\mysql-connector-c-6.0.1>
[27 May 2009 20:44] Sveta Smirnova
Thank you for the report.

I also can not repeat described behavior. I used URL following to download connector sources: http://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.0.1.tar.gz/from/http://...