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

[PATCH] AIX and mariadb-5.5.48.0/sql-common/mysql_async.c", line 128.40: 1506-045 (S) Undeclared identifier MSG_DONTWAIT.

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 5.5.48-galera
    • 5.5(EOL)
    • None
    • None
    • AIX, 5.3, 6.1

    Description

      make fails to due to undeclared identifier.

      [ 59%] Building C object sql/CMakeFiles/sql.dir/__/sql-common/mysql_async.c.o
      "/data/prj/aixtools/mariadb/src/mariadb-5.5.48.0/sql-common/mysql_async.c", line 128.40: 1506-045 (S) Undeclared identifier MSG_DONTWAIT.
      "/data/prj/aixtools/mariadb/src/mariadb-5.5.48.0/sql-common/mysql_async.c", line 156.40: 1506-045 (S) Undeclared identifier MSG_DONTWAIT.
      make: 1254-004 The error code from the last command is 1.
      

      The following at least permits the make to progress to the next issue (undefined symbols at link)

      --- mariadb-5.5.48.0/sql-common/mysql_async.c   2016-02-10 06:07:26 +0000
      +++ mariadb-5.5.48/sql-common/mysql_async.c     2016-03-26 20:55:22 +0000
      @@ -29,7 +29,7 @@
       #include "mysql_async.h"
       
       
      -#ifdef __WIN__
      +#if defined(__WIN__) || defined(_AIX)
       /*
         Windows does not support MSG_DONTWAIT for send()/recv(). So we need to ensure
         that the socket is non-blocking at the start of every operation.
      @@ -38,6 +38,9 @@
           my_bool old_mode; \
           if ((mysql)->net.vio) vio_blocking((mysql)->net.vio, FALSE, &old_mode); \
         }
      +#if defined(_AIX) && !defined(MSG_DONTWAIT)
      +#define MSG_DONTWAIT MSG_NONBLOCK
      +#endif
       #else
       #define WIN_SET_NONBLOCKING(mysql)
       #endif
      

      Attachments

        Activity

          MichaelFelt Michael Felt created issue -
          serg Sergei Golubchik made changes -
          Field Original Value New Value
          Description make fails to due to undeclared identifier. {{monospaced text}}[ 59%] Building C object sql/CMakeFiles/sql.dir/__/sql-common/mysql_async.c.o
          "/data/prj/aixtools/mariadb/src/mariadb-5.5.48.0/sql-common/mysql_async.c", line 128.40: 1506-045 (S) Undeclared identifier MSG_DONTWAIT.
          "/data/prj/aixtools/mariadb/src/mariadb-5.5.48.0/sql-common/mysql_async.c", line 156.40: 1506-045 (S) Undeclared identifier MSG_DONTWAIT.
          make: 1254-004 The error code from the last command is 1.
          The following at least permits the make to progress to the next issue (undefined symbols at link){{monospaced text}}
          --- mariadb-5.5.48.0/sql-common/mysql_async.c 2016-02-10 06:07:26 +0000
          +++ mariadb-5.5.48/sql-common/mysql_async.c 2016-03-26 20:55:22 +0000
          @@ -29,7 +29,7 @@
           #include "mysql_async.h"
           
           
          -#ifdef __WIN__
          +#if defined(__WIN__) || defined(_AIX)
           /*
             Windows does not support MSG_DONTWAIT for send()/recv(). So we need to ensure
             that the socket is non-blocking at the start of every operation.
          @@ -38,6 +38,9 @@
               my_bool old_mode; \
               if ((mysql)->net.vio) vio_blocking((mysql)->net.vio, FALSE, &old_mode); \
             }
          +#if defined(_AIX) && !defined(MSG_DONTWAIT)
          +#define MSG_DONTWAIT MSG_NONBLOCK
          +#endif
           #else
           #define WIN_SET_NONBLOCKING(mysql)
           #endif
          make fails to due to undeclared identifier.
          {noformat}[ 59%] Building C object sql/CMakeFiles/sql.dir/__/sql-common/mysql_async.c.o
          "/data/prj/aixtools/mariadb/src/mariadb-5.5.48.0/sql-common/mysql_async.c", line 128.40: 1506-045 (S) Undeclared identifier MSG_DONTWAIT.
          "/data/prj/aixtools/mariadb/src/mariadb-5.5.48.0/sql-common/mysql_async.c", line 156.40: 1506-045 (S) Undeclared identifier MSG_DONTWAIT.
          make: 1254-004 The error code from the last command is 1.
          {noformat}
          The following at least permits the make to progress to the next issue (undefined symbols at link)
          {noformat}
          --- mariadb-5.5.48.0/sql-common/mysql_async.c 2016-02-10 06:07:26 +0000
          +++ mariadb-5.5.48/sql-common/mysql_async.c 2016-03-26 20:55:22 +0000
          @@ -29,7 +29,7 @@
           #include "mysql_async.h"
           
           
          -#ifdef __WIN__
          +#if defined(__WIN__) || defined(_AIX)
           /*
             Windows does not support MSG_DONTWAIT for send()/recv(). So we need to ensure
             that the socket is non-blocking at the start of every operation.
          @@ -38,6 +38,9 @@
               my_bool old_mode; \
               if ((mysql)->net.vio) vio_blocking((mysql)->net.vio, FALSE, &old_mode); \
             }
          +#if defined(_AIX) && !defined(MSG_DONTWAIT)
          +#define MSG_DONTWAIT MSG_NONBLOCK
          +#endif
           #else
           #define WIN_SET_NONBLOCKING(mysql)
           #endif
          {noformat}
          serg Sergei Golubchik made changes -
          Fix Version/s 5.5 [ 15800 ]
          elenst Elena Stepanova made changes -
          Summary AIX and mariadb-5.5.48.0/sql-common/mysql_async.c", line 128.40: 1506-045 (S) Undeclared identifier MSG_DONTWAIT. [PATCH] AIX and mariadb-5.5.48.0/sql-common/mysql_async.c", line 128.40: 1506-045 (S) Undeclared identifier MSG_DONTWAIT.
          elenst Elena Stepanova made changes -
          Assignee Sergei Golubchik [ serg ]

          We don't have an AIX builder at the moment. If you have a patch for this issue, we'll be happy to apply it. But, please, a complete fix, not something that just move the failure to the next error.
          Otherwise it'll have to wait until we get an AIX builder.

          serg Sergei Golubchik added a comment - We don't have an AIX builder at the moment. If you have a patch for this issue, we'll be happy to apply it. But, please, a complete fix, not something that just move the failure to the next error. Otherwise it'll have to wait until we get an AIX builder.
          serg Sergei Golubchik made changes -
          Priority Major [ 3 ] Minor [ 4 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 74682 ] MariaDB v4 [ 139968 ]

          People

            serg Sergei Golubchik
            MichaelFelt Michael Felt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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