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

Linking issue on Redhat 6

    XMLWordPrintable

Details

    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

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              mgoebel Matthew Goebel
              Votes:
              2 Vote for this issue
              Watchers:
              7 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.