FTBFS with MySQL 8.0

Bug #1795336 reported by Lars Tangvald
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pdns (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

MySQL 8.0 removes the my_bool symbol, and it should simply be replaced with int or bool (this is also backwards-compatible with older versions of MySQL)

Revision history for this message
Chris Hofstaedtler (zeha) wrote :

As discovered upstream this is not entirely backwards compatible with older MySQL or current MariaDB. https://github.com/PowerDNS/pdns/pull/6842 fixed this upstream.

Changed in pdns (Ubuntu):
status: New → Confirmed
Revision history for this message
Lars Tangvald (lars-tangvald) wrote :

Actually, it should be backwards compatible.
In 5.x, my_bool is typedef'ed to char, but functions using it will still happily accept int or bool (and most of the code I see in Ubuntu assigns it as one of those).

Also, if it were not backwards-compatible, I don't think the upstream patch would work with MariaDB, since I believe «#if MYSQL_VERSION_ID >= 80000» would be true.

Revision history for this message
Lars Tangvald (lars-tangvald) wrote :

Hm, but I see it's referenced as causing a build failure with MariaDB without also checking the MariaDB flag, so maybe there are issues with the older versions (I tested briefly with 5.7)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.