Comment 22 for bug 1528583

Revision history for this message
Mario Limonciello (superm1) wrote :

We discovered a problem with mythtv compiling against mysql 5.7.

It boils down to mysql expects that if you #include <mysql/mysql.h> that you have the mysql installation's include path included at compile time to get the rest of the headers. This is presumptuous as it worked fine for 5.5 and 5.6 previously without it.

I've filed an issue upstream MythTV here: https://code.mythtv.org/trac/ticket/12696

For now to at least let mythtv compile against 5.7 in Ubuntu xenial I've written a small patch:
https://github.com/MythTV/packaging/commit/8112bd623cffc90a6ef9e15be6192fecb3c01d40

That will be in the next upload.

I'm sure mythtv isn't the only project that is going to fail compiling against mysql in this way (checking a #include header is common in configure scripts), so it would really be best to work with upstream to sort this out.

Thanks!