Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
10.3.25
-
Building mariadb 10.3.25 from source in [IBM i PASE](https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzalf/rzalfintro.htm) environment. This is an AIX runtime.
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
- blocks
-
MDEV-19510 Issue with: sql/wsrep_mysqld.cc : ip_len
- Closed
- duplicates
-
MDEV-20178 MariaDB server does not compile on AIX
- Closed