Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#7079 closed defect (fixed)

Support MariaDB 10.2 - ogr_mysql.h:35:23: fatal error: my_global.h: No such file or directory

Reported by: devurandom Owned by: warmerdam
Priority: normal Milestone: 2.2.3
Component: default Version: 2.2.2
Severity: normal Keywords:

Description (last modified by devurandom)

With MariaDB 10.2, my_global.h (and my_sys.h) no longer exists, see e.g. [1]. I created a patch to not include these files when using MariaDB. It works with mariadb-10.2.8, but I would like to get a confirmation from someone that it also works with MySQL and MariaDB 10.1, which I could not easily test myself.


Attachments (1)

gdal-2.2.2-mariadb-10.2.patch (874 bytes ) - added by devurandom 5 years ago.

Download all attachments as: .zip

Change History (6)

by devurandom, 5 years ago

comment:1 by devurandom, 5 years ago

Description: modified (diff)

comment:2 by Even Rouault, 5 years ago

Resolution: fixed
Status: newclosed

In 40361:

MySQL: fix build with MariaDB 10.2 (fixes #7079)

comment:3 by Even Rouault, 5 years ago

In 40363:

MySQL: fix build with MariaDB 10.2 (fixes #7079)

comment:4 by Even Rouault, 5 years ago

Milestone: 2.2.3

I've verified that the above changes work at least down to mysql 5.1. This might perhaps break the mysql 4.x series, but I don't think we really want to support that, if that still works...

comment:5 by devurandom, 5 years ago

Thanks for the quick fix!

I am now using that for my Gentoo Linux package:

Hopefully it will also be available to all Gentoo Linux users, soon:

Note: See TracTickets for help on using tickets.