|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76282 Not compiling against mysql8 (no more my_global.h)
Submitted: 2018-04-27 21:17 UTC Modified: 2020-09-18 13:39 UTC
Avg. Score:4.5 ± 0.5
Reproduced:10 of 10 (100.0%)
Same Version:3 (30.0%)
Same OS:4 (40.0%)
From: UvgdwXcN9V2oxDoaIVT5lYI at protonmail dot ch Assigned: nikic (profile)
Status: Closed Package: MySQLi related
PHP Version: 7.2.5 OS: Centos 7
Private report: No CVE-ID: None
 [2018-04-27 21:17 UTC] UvgdwXcN9V2oxDoaIVT5lYI at protonmail dot ch
/php-7.2.5/ext/mysqli/php_mysqli_structs.h:63:23: fatal error: my_global.h: No such file or directory
 #include <my_global.h>
compilation terminated.
make: *** [ext/mysqli/mysqli.lo] Error 1

As per the hint here (

"my_global.h went away"

Test script:
mysql-community-client.x86_64    8.0.11-1.el7                 @mysql80-community
mysql-community-common.x86_64    8.0.11-1.el7                 @mysql80-community
mysql-community-devel.x86_64     8.0.11-1.el7                 @mysql80-community
mysql-community-libs.x86_64      8.0.11-1.el7                 @mysql80-community
                                 8.0.11-1.el7                 @mysql80-community
mysql-community-server.x86_64    8.0.11-1.el7                 @mysql80-community
mysql80-community-release.noarch el7-1                        installed    

./configure --enable-fpm --with-fpm-user=phpfpm --with-fpm-group=phpfpm --with-fpm-systemd --with-libxml-dir --with-openssl --with-pcre-regex --with-zlib --enable-bcmath  --with-bz2  --with-curl --enable-exif --with-gd --enable-soap --enable-zip --enable-mysqlnd --with-mysqli=/usr/bin/mysql_config-64 --with-pdo-mysql=mysqlnd --enable-mbstring --with-gmp --with-sodium


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-04-28 00:03 UTC]
See also bug #75612
 [2018-04-28 01:30 UTC] spam2 at rhsoft dot net
I don't get why people after 10 years still link against libmysql instead use mysqlnd or even more why mysqlnd isn't just the only implementation at all
 [2020-09-18 13:39 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2020-09-18 13:39 UTC]
This has been implemented in, part of the next 7.3 release.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 29 06:01:28 2024 UTC