Bug 228392

Summary: databases/qt4-mysql-plugin: compile errors related to "my_bool"
Product: Ports & Packages Reporter: Yunchih Chen <yunchih>
Component: Individual Port(s)Assignee: freebsd-kde (Team) <kde>
Status: Closed DUPLICATE    
Severity: Affects Only Me CC: adridg
Priority: --- Flags: bugzilla: maintainer-feedback? (kde)
Version: Latest   
Hardware: amd64   
OS: Any   

Description Yunchih Chen 2018-05-21 10:21:27 UTC

../qt-everywhere-opensource-src-4.8.7/src/sql/drivers/mysql/qsql_mysql.cpp:963:33: error: assigning to 'my_bool *' (aka 'char *') from incompatible type 'bool *'
            currBind->is_null = &nullVector[i];

Complete log:

Maybe related to this:
Comment 1 Adriaan de Groot freebsd_committer 2018-05-21 13:04:19 UTC
r469165 is supposed to fix this. Your build log shows you have that version. My best guess is that the version check done in that patch (#if MYSQL_VERSION_ID >= 80001) is true (so that we use bool for mysql_bool) while your MySQL (Maria?) headers don't use that yet.
Comment 2 Yunchih Chen 2018-05-22 08:07:17 UTC
Hi, Adriaan:

Thanks for the reply.

Indeed, as it's listed:

DEFAULT_VERSIONS+= mysql=101m bdb=5

we are using MariaDB 10.1.

But the patch only applies to MySQL, so in my case I must temporarily remove the patch in order to build successfully.  Maybe OP should take MariaDB into account.
Comment 3 Yunchih Chen 2018-05-22 08:08:04 UTC

*** This bug has been marked as a duplicate of bug 227813 ***