Uploaded image for project: 'Support'
  1. Support
  2. SUPPORT-254

with mariadb 10.3.22: db/db_backend_mysql.c:75:5: error: unknown type name 'my_bool'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.6
    • Fix Version/s: None
    • Component/s: Build, Enforcer
    • Labels:
      None
    • Environment:

      Description

      When building against mariadb 10.3.22, I see the following error:

      x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../common    -I../../common -I../../common -I./../../libhsm/src/lib -I./../../libhsm/src/lib -I/usr/include/libxml2 -I/usr/include -I/usr/include/mysql  -pipe -mtune=generic -O2 -pedantic -Wall -pthread -fno-strict-aliasing -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-unused-parameter -Wno-missing-field-init
      ializers -Wformat=2 -Wcast-align -Wformat-security -Wstrict-aliasing -Wpacked -Winit-self -Wmissing-include-dirs -Warray-bounds -Wreturn-type -Wno-format-nonliteral -Wno-format-y2k -Wno-unused-function -Wno-unused-variable -Wno-sign-compare -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Wno-error=format-nonliteral -Wno-error=format-y2k -Wno-e
      rror=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -c -o db/db_backend_mysql.o db/db_backend_mysql.c
      db/db_backend_mysql.c:75:5: error: unknown type name 'my_bool'
         75 |     my_bool error;
            |     ^~~~~~~
      db/db_backend_mysql.c: In function '__db_backend_mysql_prepare':
      db/db_backend_mysql.c:273:36: error: 'my_bool' undeclared (first use in this function); did you mean 'bool'?
        273 |             mysql_bind->is_null = (my_bool*)0;
            |                                    ^~~~~~~
            |                                    bool
      db/db_backend_mysql.c:273:36: note: each undeclared identifier is reported only once for each function it appears in
      db/db_backend_mysql.c:273:44: error: expected expression before ')' token
        273 |             mysql_bind->is_null = (my_bool*)0;
            |                                            ^
      db/db_backend_mysql.c:274:31: warning: assignment to '_Bool *' from incompatible pointer type 'int *' [-Wincompatible-pointer-types]
        274 |             mysql_bind->error = &bind->error;
            |                               ^
      db/db_backend_mysql.c: In function '__db_backend_mysql_bind_clause':
      db/db_backend_mysql.c:962:35: error: 'my_bool' undeclared (first use in this function); did you mean 'bool'?
        962 |         (*bind)->bind->is_null = (my_bool*)0;
            |                                   ^~~~~~~
            |                                   bool
      db/db_backend_mysql.c:962:43: error: expected expression before ')' token
        962 |         (*bind)->bind->is_null = (my_bool*)0;
            |                                           ^
      db/db_backend_mysql.c: In function '__db_backend_mysql_bind_value':
      db/db_backend_mysql.c:1082:28: error: 'my_bool' undeclared (first use in this function); did you mean 'bool'?
       1082 |     bind->bind->is_null = (my_bool*)0;
            |                            ^~~~~~~
            |                            bool
      db/db_backend_mysql.c:1082:36: error: expected expression before ')' token
       1082 |     bind->bind->is_null = (my_bool*)0;
            |                                    ^
      make[3]: *** [Makefile:1373: db/db_backend_mysql.o] Error 1
      make[3]: *** Waiting for unfinished jobs.... 

      See attached build.log for details. The patches mentioned in that log can be found in my Gentoo overlay: https://github.com/devurandom/gentoo-overlay/tree/master/net-dns/opendnssec/files

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            devurandom Dennis Schridde
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: