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

Linking issue on Redhat 6

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.3.17
    • Fix Version/s: 10.3
    • Component/s: Compiling, Platform RedHat
    • Labels:
      None
    • Environment:
      Redhat 6 64bit

      Description

      cmake . \
      	-DMYSQL_DATADIR=/home/mysqldat \
      	-DCMAKE_INSTALL_PREFIX=/usr/local \
      	-DWITH_INNOBASE_STORAGE_ENGINE=on \
      	-DWITH_ARCHIVE_STORAGE_ENGINE=on \
      	-DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock \
      	-DWITH_LIBWRAP=on
      

      on redhat 6 results in the following : 10.3.16 compiled just fine...

      [ 16%] Building C object unittest/mysys/CMakeFiles/lf-t.dir/lf-t.c.o
      Linking CXX executable lf-t
      ../../mysys/libmysys.a(my_cpu.c.o): In function `my_cpu_init':
      /usr/local/src/mariadb-10.3.17/mysys/my_cpu.c:86: undefined reference to `__rdtsc'
      /usr/local/src/mariadb-10.3.17/mysys/my_cpu.c:88: undefined reference to `__rdtsc'
      /usr/local/src/mariadb-10.3.17/mysys/my_cpu.c:90: undefined reference to `__rdtsc'
      collect2: ld returned 1 exit status
      make[2]: *** [unittest/mysys/lf-t] Error 1
      make[1]: *** [unittest/mysys/CMakeFiles/lf-t.dir/all] Error 2
      make: *** [all] Error 2
      

        Attachments

        1. maria
          42 kB
        2. rdtsc.patch
          0.4 kB

          Activity

            People

            Assignee:
            marko Marko Mäkelä
            Reporter:
            mgoebel Matthew Goebel
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated: