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

pcre2 headers aren't found on Solaris

    XMLWordPrintable

Details

    Description

      `client/mysqltest.cc` and a few others fail to compile on Solaris:
      ```
      /vol/src/mariadb/mariadb-10.11.6/client/mysqltest.cc:49:10: fatal error: pcre2posix.h: No such file or directory
      49 | #include "pcre2posix.h" /* pcreposix regex library */

      ^~~~~~~~~~~~~~
      ```
      While `pcre2` *is* bundled with Solaris, the headers live in `/usr/include/pcre` instead of cluttering `/usr/include` as happens on (some?) other targets.

      Short of some cmake surgery in `cmake/pcre.cmake`, the easiest way to work around this was to add `-I/usr/include/pcre` to `CFLAGS` and `CXXFLAGS` before invoking `cmake`.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              rorth Rainer Orth
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.