Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-328

Build fails due to missing include-dir for cURL

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 3.0.4
    • None
    • None
    • FreeBSD 11.1-p9 amd64

    Description

      Regression from 3.0.3

      When building mariadb-connector-c 3.0.4 it fails

      /usr/bin/cc -DHAVE_LIBRESSL -DHAVE_OPENSSL -DHAVE_REMOTEIO=1 -DHAVE_TLS -Ddialog_EXPORTS -Iinclude -Iplugins/auth -Iplugins/pvio -L/usr/local/libs -fstack-protector -fno-strict-aliasing -L/usr/local/libs -fstac
      k-protector -fno-strict-aliasing -DDBUG_OFF -fPIC   -DPLUGIN_DYNAMIC=1 -MD -MT CMakeFiles/dialog.dir/plugins/auth/dialog.c.o -MF CMakeFiles/dialog.dir/plugins/auth/dialog.c.o.d -o CMakeFiles/dialog.dir/plugins/auth/dialog.c.o   -c plugins/auth/dialog.c
      In file included from plugins/auth/dialog.c:25:                                                                                                                                                                                                                In file included from include/mysql/client_plugin.h:157:
      include/mariadb/ma_io.h:23:10: fatal error: 'curl/curl.h' file not found                                                                                                                                                                                       #include <curl/curl.h>                                                                                                                                                                                                                                                  ^~~~~~~~~~~~~
      1 error generated.                                                                                                                           

      due to missing `-I/usr/local/include`. On FreeBSD cURL is not in the base OS but is a port that installs in /usr/local/

      Adding `-I/usr/local/include` to CFLAGS prior to running cmake fixes this for me.

      Cheers, Bernard Spil
      (maintainer of all MariaDB packages on FreeBSD)

      Attachments

        Activity

          People

            georg Georg Richter
            spil Bernard Spil
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.