Details
-
Bug
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
5.5.48-galera
-
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
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} |
Fix Version/s | 5.5 [ 15800 ] |
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. |
Assignee | Sergei Golubchik [ serg ] |
Priority | Major [ 3 ] | Minor [ 4 ] |
Workflow | MariaDB v3 [ 74682 ] | MariaDB v4 [ 139968 ] |
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.