XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.0.5
    • Fix Version/s: 3.0.6
    • Component/s: General
    • Labels:
      None
    • Environment:
      Fedora - all

      Description

      Hello,
      version 3.0.3 is fine, but in 3.0.5 a compile time error has appeared and I'd need to fix it.

      [ 51%] Linking C shared library libmaodbc.so
      /usr/bin/cmake -E cmake_link_script CMakeFiles/maodbc.dir/link.txt --verbose=1
      /usr/bin/cc -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -DNDEBUG -Wl,--version-script=/builddir/build/BUILD/mariadb-connector-odbc-3.0.5-ga-src/maodbc.def -Wl,-z,relro  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -shared -Wl,-soname,libmaodbc.so -o libmaodbc.so CMakeFiles/maodbc.dir/odbc_3_api.c.o CMakeFiles/maodbc.dir/ma_error.c.o CMakeFiles/maodbc.dir/ma_connection.c.o CMakeFiles/maodbc.dir/ma_helper.c.o CMakeFiles/maodbc.dir/ma_debug.c.o CMakeFiles/maodbc.dir/ma_dsn.c.o CMakeFiles/maodbc.dir/ma_driver.c.o CMakeFiles/maodbc.dir/ma_info.c.o CMakeFiles/maodbc.dir/ma_environment.c.o CMakeFiles/maodbc.dir/ma_parse.c.o CMakeFiles/maodbc.dir/ma_statement.c.o CMakeFiles/maodbc.dir/ma_desc.c.o CMakeFiles/maodbc.dir/ma_string.c.o CMakeFiles/maodbc.dir/ma_result.c.o CMakeFiles/maodbc.dir/ma_common.c.o CMakeFiles/maodbc.dir/ma_server.c.o CMakeFiles/maodbc.dir/ma_legacy_helpers.c.o CMakeFiles/maodbc.dir/ma_typeconv.c.o CMakeFiles/maodbc.dir/ma_bulk.c.o CMakeFiles/maodbc.dir/ma_platform_posix.c.o -Wl,-rpath,/builddir/build/BUILD/mariadb-connector-odbc-3.0.5-ga-src/libmariadb/libmariadb: libmariadb/libmariadb/libmariadb.so.3 -lodbcinst -lm -ldl -lpthread -ldl -lpthread -lssl -lcrypto -Wl,--no-undefined libmariadb/libmariadb/mariadbclient.def -lm 
      /usr/bin/ld: anonymous version tag cannot be combined with other version tags
      /usr/bin/ld: anonymous version tag cannot be combined with other version tags
      /usr/bin/ld: anonymous version tag cannot be combined with other version tags
      /usr/bin/ld: libmaodbc.so: version node not found for symbol mysql_num_rows@libmariadbclient_18
      /usr/bin/ld: failed to set dynamic section sizes: Bad value
      collect2: error: ld returned 1 exit status
      make[2]: *** [CMakeFiles/maodbc.dir/build.make:376: libmaodbc.so] Error 1
      make[2]: Leaving directory '/builddir/build/BUILD/mariadb-connector-odbc-3.0.5-ga-src'
      make[1]: *** [CMakeFiles/Makefile2:71: CMakeFiles/maodbc.dir/all] Error 2
      make[1]: Leaving directory '/builddir/build/BUILD/mariadb-connector-odbc-3.0.5-ga-src'
      make: *** [Makefile:155: all] Error 2
      error: Bad exit status from /var/tmp/rpm-tmp.aqNWzQ (%install)
      
      


      I already tried to take latest CONC/C project and build the CONC/CODBC on the top of it, but that didn't solved the issue.

      Fedora sources: (for 3.0.3)
      https://src.fedoraproject.org/rpms/mariadb-connector-odbc/tree/master

      Build:
      https://copr.fedorainfracloud.org/coprs/mschorm/connector/builds/

      Full build log:
      https://copr-be.cloud.fedoraproject.org/results/mschorm/connector/fedora-rawhide-x86_64/00772340-mariadb-connector-odbc/build.log.gz


      btw in the 3.0.5 release, there is also forgotten CMake cache file from you, which has to me manually removed before the build:

      CMake Error: The current CMakeCache.txt directory /home/faramos/work/MDB/PATCHES/MDB_CONC-ODBC/mariadb-connector-odbc/mariadb-connector-odbc-3.0.5-ga-src/CMakeCache.txt is different than the directory /home/lawrin/mariadb-connector-odbc-3.0.5-ga-src/mariadb-connector-odbc-3.0.5-ga-src where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
      
      


      Feel free to ask for more resources you'd find usefull.

        Attachments

          Activity

            People

            Assignee:
            Lawrin Lawrin Novitsky
            Reporter:
            mschorm Michal Schorm
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: