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

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.2.8, 10.2.11, 10.2.12
    • Fix Version/s: 10.2
    • Component/s: Packaging
    • Labels:
    • Environment:
      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

            Assignee:
            serg Sergei Golubchik
            Reporter:
            dkasyanov Dmitriy Kasyanov
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: