Opened 7 years ago

Closed 7 years ago

Last modified 7 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:
Cc:

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.

[1]: https://bugs.gentoo.org/show_bug.cgi?id=629816

Attachments (1)

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

Download all attachments as: .zip

Change History (6)

by devurandom, 7 years ago

comment:1 by devurandom, 7 years ago

Description: modified (diff)

comment:2 by Even Rouault, 7 years ago

Resolution: fixed
Status: newclosed

In 40361:

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

comment:3 by Even Rouault, 7 years ago

In 40363:

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

comment:4 by Even Rouault, 7 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, 7 years ago

Thanks for the quick fix!

I am now using that for my Gentoo Linux package: https://github.com/devurandom/gentoo-overlay/commit/620e749a8c125cac9e9d2051362f7db498b9bb3d

Hopefully it will also be available to all Gentoo Linux users, soon: https://bugs.gentoo.org/615986

Note: See TracTickets for help on using tickets.