Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-198

FreeBSD use of undeclared identifier 'CLOCK_MONOTONIC_RAW'

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 1.0.10
    • None
    • Installation
    • None
    • FreeBSD 13.0 amd64
    • 3.8.12

    Description

      Compilation fails with the following:
      mariadb/mariadb_connection.c:655:27: error: use of undeclared identifier 'CLOCK_MONOTONIC_RAW'
      clock_gettime(CLOCK_MONOTONIC_RAW, &self->last_used);

      A google search found the same error in a similar environment in a completely different project:
      https://github.com/basil00/reqrypt/issues/20

      The solution there was to add the following:
      #ifndef CLOCK_MONOTONIC_RAW
      #define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
      #endif

      Attachments

        Activity

          People

            georg Georg Richter
            nelsonov Lee Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.