[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. Created: 2016-03-28  Updated: 2016-04-17

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.48-galera
Fix Version/s: 5.5

Type: Bug Priority: Minor
Reporter: Michael Felt Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: None
Environment:

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



 Comments   
Comment by Sergei Golubchik [ 2016-04-17 ]

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.

Generated at Thu Feb 08 07:37:32 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.