Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-124

odbc does not build on centos 7 out of the box

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.0.2
    • 2.0.17, 3.0.5
    • General
    • None

    Description

      After install MariaDB 10.2 (after installing the custom repo), the following satisfy the cmake dependencies:
      yum install MariaDB-client MariaDB-server MariaDB-devel unixODBC

      However link failures happen if you run cmake then make. For this to build the following is needed:

      • cmake -DWITH_OPENSSL=on
      • modify tests/CMakeLists.txt to add z as a lib dep: SET(PLATFORM_DEPENDENCIES ${PLATFORM_DEPENDENCIES} "pthread" "dl" "z")

      I'd suggest make WITH_OPENSSL=on the default setting since this is what we build with and fix the test cmake file.

      Attachments

        Issue Links

          Activity

            dthompson David Thompson (Inactive) created issue -

            I guess that(z dependency) is because those packages install client library from server. I usually... well, always build using Connector/C, and it does not require -lz
            mariadb_config --libs
            -L/usr/local/lib/mariadb/ -lmariadb -lpthread -ldl -lm -liconv -liconv

            Lawrin Lawrin Novitsky added a comment - I guess that(z dependency) is because those packages install client library from server. I usually... well, always build using Connector/C, and it does not require -lz mariadb_config --libs -L/usr/local/lib/mariadb/ -lmariadb -lpthread -ldl -lm -liconv -liconv

            ah that makes sense. I didn't think about installing connector/c directly and assumed it was easier to use an os package.

            dthompson David Thompson (Inactive) added a comment - ah that makes sense. I didn't think about installing connector/c directly and assumed it was easier to use an os package.
            Lawrin Lawrin Novitsky made changes -
            Field Original Value New Value

            Both 2.0 and 3.0 connectors are now build with C/C as a git sub-module, and this should solve the issue

            Lawrin Lawrin Novitsky added a comment - Both 2.0 and 3.0 connectors are now build with C/C as a git sub-module, and this should solve the issue
            Lawrin Lawrin Novitsky made changes -
            Component/s General [ 14302 ]
            Fix Version/s 2.0.17 [ 23002 ]
            Fix Version/s 3.0.5 [ 23107 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 84140 ] MariaDB v4 [ 128584 ]

            People

              Lawrin Lawrin Novitsky
              dthompson David Thompson (Inactive)
              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.