Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-397

Unfortunate error message for incompatible cmake config

    XMLWordPrintable

Details

    • Bug
    • Status: Stalled (View Workflow)
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      libmariadb configure fails when have PLUGIN_CLIENT_ED25519 in CMakeCache.txt from older version. Error message doesn't have a clue of how to fix the problem.

      Reproduce

      cmake -DPLUGIN_CLIENT_ED25519:STRING=NO ../src
      

      Result

      CMake Error at libmariadb/cmake/plugins.cmake:46 (message):
        Invald plugin type NO.  Allowed plugin types are DYNAMIC;STATIC;OFF
      Call Stack (most recent call first):
        libmariadb/plugins/auth/CMakeLists.txt:45 (REGISTER_PLUGIN)
        libmariadb/plugins/CMakeLists.txt:7 (INCLUDE)
        libmariadb/CMakeLists.txt:383 (INCLUDE)
      

      Debug code

      --- a/cmake/plugins.cmake
      +++ b/cmake/plugins.cmake
      @@ -23,9 +23,11 @@ FUNCTION(REGISTER_PLUGIN)
       
         # overwrite default if it was specified with cmake option
         string(TOUPPER ${CC_PLUGIN_TARGET} cc_plugin)
      +  message("1 ${CC_PLUGIN_DEFAULT}")
         if(NOT "${CLIENT_PLUGIN_${cc_plugin}}" STREQUAL "")
           SET(CC_PLUGIN_DEFAULT ${CLIENT_PLUGIN_${cc_plugin}})
         endif()
      +  message("2 ${CC_PLUGIN_DEFAULT}")
       
         # use uppercase
         string(TOUPPER ${CC_PLUGIN_TARGET} target_name)
      @@ -35,6 +37,7 @@ FUNCTION(REGISTER_PLUGIN)
           string(TOUPPER ${PLUGIN_${target_name}} PLUGIN_${target_name})
           set(CC_PLUGIN_DEFAULT ${PLUGIN_${target_name}})
         endif()
      +  message("3 ${CC_PLUGIN_DEFAULT} ${target_name}")
       
       # check if default value is valid
         string(TOUPPER ${CC_PLUGIN_DEFAULT} CC_PLUGIN_DEFAULT)
      

      Note

      Help string for PLUGIN_AUTH_ED25519:

      How to build plugin AUTH_ED25519. Options are: NO STATIC DYNAMIC YES AUTO
      

      Attachments

        Activity

          People

            georg Georg Richter
            midenok Aleksey Midenkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.