Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-24099

Mariadb 10.3.25 Issue with ip_len on AIX

    XMLWordPrintable

Details

    Description

      There is a compile failure while building:

      ```
      ~/mariadb-10.3.25/sql/sql_insert.cc:2694:30: error: expected initializer before '.' token
      size_t user_len, host_len, ip_len;

      ~/mariadb-10.3.25/sql/sql_insert.cc:2728:23: error: 'ip_ff' was not declared in this scope

      ```

      This is failure occurs because `ip_len` is defined in `<netinet/ip.h>`

      ```
      #define ip_len ip_ff.ip_flen
      ```

      There is `ip_len` variable defined in sql_insert.cc and the failure occurs. From what I can tell this file does not use the the `ip_len` field from the ip struct so it should be safe to just undef ip_len if its defined. Otherwise another solution would be to rename ip_len variable to something else.

      I've previously build mariadb 10.3.14 and the past and have not run into this failure. The ip_len variable was added in this commit: https://github.com/MariaDB/server/commit/0e403db2c884b72bd0b5de404f38b6cef75ed58e

      I've attached a patch that un-defines `ip_len` if its defined. Thanks!

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              abmusse A Musse
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.