[CONC-62] MariaDB Client Library for C failed to compile with MinGW Created: 2013-12-19  Updated: 2014-06-09  Resolved: 2014-01-11

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: Eric Trinh Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

Windows 7 - MinGW GCC4.8


Attachments: Text File mariadb-native-client-r106.patch    

 Description   

Hi,

MariaDB compilation under Windows deeply assumed about compiling with MSVC.
Here are a patch proposal to check against MSVC and Mingw.
Done against r106, but works with r107.

Best Regards,
Eric



 Comments   
Comment by Georg Richter [ 2014-01-11 ]

Thanks for the patch!

MingW support added in rev. 109

Comment by Thomas Mertes [ 2014-05-09 ]

With mariadb_client-2.0.0 it is not possible to compile
with MinGW. I did:

cmake -G "MinGW Makefiles"
mingw32-make

There are warnings (in my_charset.c and violite.c) and
an error in my_pthread.c line 53:

'ETIMEDOUT' undeclared (first use in this function)
return result == WAIT_TIMEOUT ? ETIMEDOUT : 0;
^

Regards
Thomas Mertes


Seed7 Homepage: http://seed7.sourceforge.net
Seed7 - The extensible programming language: User defined statements
and operators, abstract data types, templates without special
syntax, OO with interfaces and multiple dispatch, statically typed,
interpreted or compiled, portable, runs under Linux/Unix/Windows.

Comment by Eric Trinh [ 2014-06-09 ]

Hi,

I successfuly compiled with MinGW64 4.8.0 (you can download it on: https://sourceforge.net/projects/mingw-w64 )
I just needed to apply a patch described in case CONC-98 to compile revision 142.

Maybe you use a old version of MinGW with incomplete Win32 API.

Best Regards,
Eric

Generated at Thu Feb 08 03:02:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.