Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7313

http_monitor compile in static failed

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.0.15
    • Fix Version/s: 10.0
    • Component/s: Compiling
    • Labels:
      None

      Description

      Hi ,

      When changing :

      LINK_LIBRARIES ${SSL_LIBRARIES} ${CURL_LIBRARIES} mysqlclient vmime  )
      

      to

      LINK_LIBRARIES ${SSL_LIBRARIES} ${CURL_LIBRARIES} mysqlclient vmime STATIC_ONLY )
      

      Im' getting following error message

      Can you help me identify what i'm doing wrong with CMakeList.txt

      Linking CXX static library libsql.a
      [ 61%] Built target sql
      Scanning dependencies of target explain_filename-t
      
      Linking CXX executable explain_filename-t
      ../../libmysql/libmysqlclient.a(libmysql.c.o): dans la fonction « my_net_local_init »:
      /home/svar/src/mariadb-10.0.15/libmysql/libmysql.c:1137: définitions multiples de « my_net_local_init »
      ../../sql/libsql.a(sql_client.cc.o):/home/svar/src/mariadb-10.0.15/sql/sql_client.cc:31: défini pour la première fois ici
      

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            stephane@skysql.com VAROQUI Stephane added a comment -

            Fixed by linking without mysqlclient and change mysql_query by mysql_real_query

            Show
            stephane@skysql.com VAROQUI Stephane added a comment - Fixed by linking without mysqlclient and change mysql_query by mysql_real_query

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                stephane@skysql.com VAROQUI Stephane
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: