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

Undefined reference to concurrency on Solaris

    XMLWordPrintable

Details

    Description

      The MariaDB 10.11.6 `mysqld` doesn't link on Solaris:
      ```
      Undefined first referenced
      symbol in file
      concurrency ../../sql/libsql.a(mysqld.cc.o)
      ```
      This is from a call in `sql/mysqld.cc` (`mysql_main`):
      ```
      (void) thr_setconcurrency(concurrency); // 10 by default
      ```
      The `concurrency` variable had been ripped out in MDEV-18650 with the deprecation of `thread_concurrency`, but that has been incomplete. It seems that this issue wasn't noticed on other targets since `my_pthread.h` has:
      ```
      #ifndef HAVE_THR_SETCONCURRENCY
      #define thr_setconcurrency(A) pthread_dummy(0)
      #endif
      ```
      while Solaris *does* have `thr_setconcurrency`.

      Given the previous (incomplete) removal, I've just removed this call as well.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            rorth Rainer Orth
            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.