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

Cannot compile CONNECT engine in CentOS 6

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a Bug
    • Affects Version/s: 10.0.16
    • Fix Version/s: N/A
    • Component/s: Compiling
    • Labels:
      None
    • Environment:
      CentOS 6 x86_64

      Description

      I tried to compile MariaDB 10.0.16 in CentOS and everything is OK except CONNECT plugin refuses to build. Is this related to the missing linux-vdso.so.1 library present in 3.x kernel or a specific ODBC version?

      # ldd /usr/lib64/mysql/plugin/ha_connect.so
      	linux-vdso.so.1 =>  (0x00007fffeaf62000)
      	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7e158e4000)
      	libz.so.1 => /lib64/libz.so.1 (0x00007f7e156ce000)
      	libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007f7e1537b000)
      	libodbc.so.2 => /usr/lib64/libodbc.so.2 (0x00007f7e15114000)
      	libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f7e14e0e000)
      	libm.so.6 => /lib64/libm.so.6 (0x00007f7e14b89000)
      	libc.so.6 => /lib64/libc.so.6 (0x00007f7e147f5000)
      	/lib64/ld-linux-x86-64.so.2 (0x00000039dd000000)
      	libdl.so.2 => /lib64/libdl.so.2 (0x00007f7e145f1000)
      	libltdl.so.7 => /usr/lib64/libltdl.so.7 (0x00007f7e143e7000)
      	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f7e141d1000)
      

      All other libraries are present in my build system.

      # uname -a
      Linux apollo 2.6.32-504.8.1.el6.x86_64 #1 SMP Wed Jan 28 21:11:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
      # rpm -q unixODBC-devel
      unixODBC-devel-2.2.14-14.el6.x86_64
      

      As a side note, I noticed the /etc//my.cnf.d/oqgraph.cnf file does not exist by default. I had to create it manually during build time.

      [mariadb]
      plugin-load-add = ha_oqgraph.so
      

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            elenst Elena Stepanova added a comment -

            Please paste the actual error you are getting.
            Here is our build log of 10.0.16 on CentOS 6 x86_64, as you can see it built fine, connect engine included.
            http://buildbot.askmonty.org/buildbot/builders/kvm-rpm-centos6-amd64/builds/2254/steps/compile/logs/stdio

            Show
            elenst Elena Stepanova added a comment - Please paste the actual error you are getting. Here is our build log of 10.0.16 on CentOS 6 x86_64, as you can see it built fine, connect engine included. http://buildbot.askmonty.org/buildbot/builders/kvm-rpm-centos6-amd64/builds/2254/steps/compile/logs/stdio
            Hide
            elenst Elena Stepanova added a comment -

            Hi,

            With -DWITH_MAX=ON which you have among your cmake options, you have CONNECT engine linked statically. If you start the server and check SHOW ENGINES, it should already be there.

            Show
            elenst Elena Stepanova added a comment - Hi, With -DWITH_MAX=ON which you have among your cmake options, you have CONNECT engine linked statically. If you start the server and check SHOW ENGINES , it should already be there.
            Hide
            Floren Floren Munteanu added a comment - - edited

            Hi Elena,

            Compiling without DWITH_MAX does address the issue, thank you for the fix. However, I miss the related configuration files (i.e. connect.cnf), they are not created by default. In your build, are they created by default? Thank you for helping me solve this issue.

            Show
            Floren Floren Munteanu added a comment - - edited Hi Elena, Compiling without DWITH_MAX does address the issue, thank you for the fix. However, I miss the related configuration files (i.e. connect.cnf), they are not created by default. In your build, are they created by default? Thank you for helping me solve this issue.
            Hide
            elenst Elena Stepanova added a comment -

            To have it created, you should run cmake with -DRPM=centos6.

            Show
            elenst Elena Stepanova added a comment - To have it created, you should run cmake with -DRPM=centos6 .
            Hide
            Floren Floren Munteanu added a comment -

            Thank you for the great support, everything is resolved.

            Show
            Floren Floren Munteanu added a comment - Thank you for the great support, everything is resolved.

              People

              • Assignee:
                Unassigned
                Reporter:
                Floren Floren Munteanu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: