Opened 2 months ago

Closed 2 months ago

Last modified 2 months 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 2 months ago.

Download all attachments as: .zip

Change History (6)

Changed 2 months ago by devurandom

comment:1 Changed 2 months ago by devurandom

Description: modified (diff)

comment:2 Changed 2 months ago by Even Rouault

Resolution: fixed
Status: newclosed

In 40361:

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

comment:3 Changed 2 months ago by Even Rouault

In 40363:

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

comment:4 Changed 2 months ago by Even Rouault

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 Changed 2 months ago by devurandom

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.