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

PHP mysqli extension cannot be build with MariaDB >= 10.2.10

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 10.2.8, 10.2.11, 10.2.12
    • N/A
    • N/A
    • Centos 7 + MariaDB-devel 10.2.11 + PHP 7.1.12

    Description

      How to reproduce:
      install MariaDB-devel package >= 10.2.10
      Unpack PHP tarball and run
      ./configure --with-mysqli=/usr/bin/mysql_config CPPFLAGS="-I/usr/include/mysql"
      make

      Expected result:
      Complied PHP binary with mysqli extension:

      Actual result:

      In file included from /root/php-7.1.12/ext/mysqli/php_mysqli_structs.h:63:0,
                       from /root/php-7.1.12/ext/mysqli/mysqli.c:34:
      /usr/include/mysql/my_global.h:3:2: warning: #warning This file should not be included by clients, include only <mysql.h> [-Wcpp]
       #warning This file should not be included by clients, include only <mysql.h>
        ^
      In file included from /root/php-7.1.12/ext/mysqli/php_mysqli_structs.h:79:0,
                       from /root/php-7.1.12/ext/mysqli/mysqli.c:34:
      /usr/include/mysql/my_sys.h:3:2: warning: #warning This file should not be included by clients, include only <mysql.h> [-Wcpp]
       #warning This file should not be included by clients, include only <mysql.h>
        ^
      In file included from /root/php-7.1.12/ext/mysqli/mysqli.c:34:0:
      /root/php-7.1.12/ext/mysqli/php_mysqli_structs.h:82:21: fatal error: my_list.h: No such file or directory
       #include <my_list.h>
                           ^
      compilation terminated.
      make: *** [ext/mysqli/mysqli.lo] Error 1
      

      Attachments

        Activity

          People

            danblack Daniel Black
            dkasyanov Dmitriy Kasyanov (Inactive)
            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.