Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-3529

Maxscale is not compatible with the latest cmake 3.20

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.17, 2.5.11
    • Fix Version/s: 2.5.12, 2.4.18
    • Component/s: Packaging
    • Labels:
      None
    • Environment:
      aarch64, cmake 3.20.2
    • 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'
      
      

        Attachments

          Activity

            People

            Assignee:
            markus makela markus makela
            Reporter:
            tturenko Timofey Turenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration