MySQL Forums
Forum List  »  Connector/C++

yet another MinGW32 connector build failure
Posted by: Dan Humphrey
Date: October 31, 2013 02:49PM

Though there are lots of posts regarding MinGW failing to build connector/c++, none of them seemed to help. I'm running 32-bit Vista with MinGW 4.8.1 trying to compile MySQL Connector/C++ version 1.1.3. (CMake 2.8.12). Seems like I have conflicts that lead to compile errors. I'm sure it's a simple matter of defining the right value, but I'm hoping someone recognizes the errors.. Here's the output from mingw32-make:

Thanks for any help...

>mingw32-make
Scanning dependencies of target mysqlcppconn
[ 0%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.cpp.obj
C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled
by default]
/*
^
In file included from C:/Program Files/MySQL/MySQL Server 5.6/include/my_global.h:68:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\nativeapi/mysql_private_iface.h:57,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:30,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:31:
C:/Program Files/MySQL/MySQL Server 5.6/include/my_config.h:509:0: warning: "isnan" redefined [enabled by default]
#define isnan _isnan
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:28:0:
c:\progra~1\codebl~1\mingw\include\math.h:376:0: note: this is the location of the previous definition
#define isnan(x) (sizeof (x) == sizeof (float) ? __isnanf (x) \
^
In file included from C:/Program Files/MySQL/MySQL Server 5.6/include/my_global.h:68:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\nativeapi/mysql_private_iface.h:57,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:30,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:31:
C:/Program Files/MySQL/MySQL Server 5.6/include/my_config.h:527:0: warning: "NOMINMAX" redefined [enabled by default]
#define NOMINMAX
^
In file included from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\mingw32\bits\c++config.h:420:0,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\iosfwd:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\sstream:38,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:27:
c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\mingw32\bits\os_defines.h:45:0: note: this is the location of the previous definition
#define NOMINMAX 1
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:30:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:31:
C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\nativeapi/mysql_private_iface.h:81:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(disable:4251)
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:36:0:
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/exception.h:48:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning (disable : 4290)
^
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/exception.h:52:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(push)
^
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/exception.h:53:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(disable: 4275)
^
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/exception.h:58:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(pop)
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:31:0:
C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:162:27: error: invalid suffix "ui64" on integer constant
return val.bval ? UL64(1) : UL64(0);
^
C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:38:17: note: in definition of macro 'UL64'
#define UL64(x) x##ui64
^
C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:162:37: error: invalid suffix "ui64" on integer constant
return val.bval ? UL64(1) : UL64(0);
^
C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:38:17: note: in definition of macro 'UL64'
#define UL64(x) x##ui64
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\nativeapi/mysql_private_iface.h:57:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:30,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:31:
C:/Program Files/MySQL/MySQL Server 5.6/include/my_global.h: In function 'double rint(double)':
C:/Program Files/MySQL/MySQL Server 5.6/include/my_global.h:1154:35: error: 'double rint(double)' was declared 'extern' and later 'static' [-fpermissive]
static inline double rint(double x)
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:28:0:
c:\progra~1\codebl~1\mingw\include\math.h:646:23: error: previous declaration of 'double rint(double)' [-fpermissive]
extern double __cdecl rint (double);
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:31:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:31:
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/config.h: At global scope:
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/config.h:94:19: error: conflicting declaration 'typedef long int int32_t'
typedef __int32 int32_t;
^
In file included from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\stdint.h:9:0,
from c:\progra~1\codebl~1\mingw\include\wchar.h:479,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\cwchar:44,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\postypes.h:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\iosfwd:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\sstream:38,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:27:
c:\progra~1\codebl~1\mingw\include\stdint.h:43:14: error: 'int32_t' has a previous declaration as 'typedef int int32_t'
typedef int int32_t;
^
In file included from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_util.h:31:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:31:
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/config.h:98:26: error: conflicting declaration 'typedef long unsigned int uint32_t'
typedef unsigned __int32 uint32_t;
^
In file included from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\stdint.h:9:0,
from c:\progra~1\codebl~1\mingw\include\wchar.h:479,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\cwchar:44,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\postypes.h:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\iosfwd:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\sstream:38,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:27:
c:\progra~1\codebl~1\mingw\include\stdint.h:44:20: error: 'uint32_t' has a previous declaration as 'typedef unsigned int uint32_t'
typedef unsigned uint32_t;
^
In file included from C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/resultset.h:30:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.h:39,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:32:
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/config.h:94:19: error: conflicting declaration 'typedef long int int32_t'
typedef __int32 int32_t;
^
In file included from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\stdint.h:9:0,
from c:\progra~1\codebl~1\mingw\include\wchar.h:479,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\cwchar:44,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\postypes.h:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\iosfwd:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\sstream:38,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:27:
c:\progra~1\codebl~1\mingw\include\stdint.h:43:14: error: 'int32_t' has a previous declaration as 'typedef int int32_t'
typedef int int32_t;
^
In file included from C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/resultset.h:30:0,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.h:39,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:32:
C:/Users/Dan/Desktop/mysql-connector-c++-1.1.3/cppconn/config.h:98:26: error: conflicting declaration 'typedef long unsigned int uint32_t'
typedef unsigned __int32 uint32_t;
^
In file included from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\stdint.h:9:0,
from c:\progra~1\codebl~1\mingw\include\wchar.h:479,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\cwchar:44,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\postypes.h:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\iosfwd:40,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\istream:38,
from c:\progra~1\codebl~1\mingw\lib\gcc\mingw32\4.8.1\include\c++\sstream:38,
from C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3\driver\mysql_art_resultset.cpp:27:
c:\progra~1\codebl~1\mingw\include\stdint.h:44:20: error: 'uint32_t' has a previous declaration as 'typedef unsigned int uint32_t'
typedef unsigned uint32_t;
^
driver\CMakeFiles\mysqlcppconn.dir\build.make:57: recipe for target 'driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.cpp.obj' failed
mingw32-make[2]: *** [driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.cpp.obj] Error 1
CMakeFiles\Makefile2:94: recipe for target 'driver/CMakeFiles/mysqlcppconn.dir/all' failed
mingw32-make[1]: *** [driver/CMakeFiles/mysqlcppconn.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

C:\Users\Dan\Desktop\mysql-connector-c++-1.1.3>

Options: ReplyQuote


Subject
Views
Written By
Posted
yet another MinGW32 connector build failure
3495
October 31, 2013 02:49PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.