[MXS-3529] Maxscale is not compatible with the latest cmake 3.20 Created: 2021-04-30  Updated: 2021-05-25  Resolved: 2021-05-25

Status: Closed
Project: MariaDB MaxScale
Component/s: Packaging
Affects Version/s: 2.4.17, 2.5.11
Fix Version/s: 2.4.18, 2.5.12

Type: Bug Priority: Major
Reporter: Timofey Turenko Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None
Environment:

aarch64, cmake 3.20.2


Issue Links:
Blocks
Sprint: MXS-SPRINT-132

 Description   

failed to compile Connector-C:

workaround `-DMARIADB_CONNECTOR_C_TAG=3.1`
(ConnectorC versio is hardcoded in the Maxscale cmake https://github.com/mariadb-corporation/MaxScale/blob/2.5/cmake/BuildMariaDBConnector.cmake#L12)

Determining if files select.h exist failed with the following output:
Change Dir: /home/ubuntu/MaxScale/build/connector-c/CMakeFiles/CMakeTmp
 
Run Build Command(s):/usr/bin/make -f Makefile cmTC_e6cb7/fast && make[3]: Entering directory '/home/ubuntu/MaxScale/build/connector-c/CMakeFiles/CMakeTmp'
/usr/bin/make  -f CMakeFiles/cmTC_e6cb7.dir/build.make CMakeFiles/cmTC_e6cb7.dir/build
make[4]: Entering directory '/home/ubuntu/MaxScale/build/connector-c/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_e6cb7.dir/HAVE_SELECT_H.c.o
/usr/bin/cc   -Wunused -Wlogical-op -Wno-uninitialized -Wall -Wextra -Wformat-security -Wno-init-self -Wwrite-strings -Wshift-count-overflow -Wdeclaration-after-statement -Wno-undef -Wno-unknown-pragmas  -o CMakeFiles/cmTC_e6cb7.dir/HAVE_SELECT_H.c.o -c /home/ubuntu/MaxScale/build/connector-c/CMakeFiles/CheckIncludeFiles/HAVE_SELECT_H.c
/home/ubuntu/MaxScale/build/connector-c/CMakeFiles/CheckIncludeFiles/HAVE_SELECT_H.c:2:10: fatal error: select.h: No such file or directory
 #include <select.h>
          ^~~~~~~~~~
compilation terminated.
CMakeFiles/cmTC_e6cb7.dir/build.make:77: recipe for target 'CMakeFiles/cmTC_e6cb7.dir/HAVE_SELECT_H.c.o' failed
make[4]: *** [CMakeFiles/cmTC_e6cb7.dir/HAVE_SELECT_H.c.o] Error 1
make[4]: Leaving directory '/home/ubuntu/MaxScale/build/connector-c/CMakeFiles/CMakeTmp'
Makefile:127: recipe for target 'cmTC_e6cb7/fast' failed
make[3]: *** [cmTC_e6cb7/fast] Error 2
make[3]: Leaving directory '/home/ubuntu/MaxScale/build/connector-c/CMakeFiles/CMakeTmp'



 Comments   
Comment by markus makela [ 2021-05-11 ]

We need to wait for the next 3.1 release to fix this.

Generated at Thu Feb 08 04:22:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.