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

error: no matching constructor for initialization of 'maxsql::ComPacket'

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 22.08.1
    • 22.08.3
    • Core
    • None

    Description

      Hi,
      i tried compile source code on Linux and i have issue error: no matching constructor for initialization of 'maxsql::ComPacket'

      In file included from /home/maxfx/Documents/MaxScale/include/maxscale/config_common.hh:33:
      /home/maxfx/Documents/MaxScale/include/maxscale/protocol/mariadb/query_classifier.hh:20:1: warning: struct 'GWBUF' was previously declared as a class; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags]
      struct GWBUF;
      ^
      /home/maxfx/Documents/MaxScale/include/maxscale/buffer.hh:74:7: note: previous use is here
      class GWBUF
            ^
      /home/maxfx/Documents/MaxScale/include/maxscale/protocol/mariadb/query_classifier.hh:20:1: note: did you mean class here?
      struct GWBUF;
      ^~~~~~
      class                                                                                                          
      In file included from /home/maxfx/Documents/MaxScale/server/core/packet_tracker.cc:17:
      /home/maxfx/Documents/MaxScale/include/maxscale/mysql_plus.hh:1328:11: error: no matching constructor for initialization of 'maxsql::ComPacket'
              : ComPacket(pPacket)
                ^         ~~~~~~~
      /home/maxfx/Documents/MaxScale/include/maxscale/mysql_plus.hh:505:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'GWBUF *' to 'const maxsql::ComPacket' for 1st argument
      class ComPacket
            ^
      /home/maxfx/Documents/MaxScale/include/maxscale/mysql_plus.hh:505:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'GWBUF *' to 'maxsql::ComPacket' for 1st argument
      class ComPacket
            ^
      /home/maxfx/Documents/MaxScale/include/maxscale/mysql_plus.hh:511:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
          ComPacket(GWBUF* pPacket, bool* client_split_flag)
          ^
      /home/maxfx/Documents/MaxScale/include/maxscale/mysql_plus.hh:1347:36: error: 'm_pPacket' is a private member of 'maxsql::ComPacket'
              uint8_t* pEnd = GWBUF_DATA(m_pPacket) + gwbuf_link_length(m_pPacket);
                                         ^
      /home/maxfx/Documents/MaxScale/include/maxscale/mysql_plus.hh:570:14: note: declared private here
          GWBUF*   m_pPacket;
                   ^
      /home/maxfx/Documents/MaxScale/include/maxscale/mysql_plus.hh:1347:67: error: 'm_pPacket' is a private member of 'maxsql::ComPacket'
              uint8_t* pEnd = GWBUF_DATA(m_pPacket) + gwbuf_link_length(m_pPacket);
                                                                        ^
      /home/maxfx/Documents/MaxScale/include/maxscale/mysql_plus.hh:570:14: note: declared private here
          GWBUF*   m_pPacket;
                   ^
       
      
      

      Attachments

        Activity

          People

            nantti Niclas Antti
            maxfx Martin Filla
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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