Bug #80353 [NEW]: Impossible to compile PHP 8 with libmysqlclient.

From: Date: Thu, 12 Nov 2020 13:54:46 +0000
Subject: Bug #80353 [NEW]: Impossible to compile PHP 8 with libmysqlclient.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230294@lists.php.net to get a copy of this message
From: oliver at erply dot com Operating system: Centos 7 PHP version: 8.0.0RC4 Package: *Compile Issues Bug Type: Bug Bug description:Impossible to compile PHP 8 with libmysqlclient. Description: ------------ Starting from MariaDB version 10.2.* libmysqlclient is replaced with libmariadb. However, using the option --with mysqli=/path/to/mysql/config* will fail when compiling the package, because PHP still searches for the old library name. Here is the error message: Checking for mysql_set_server_option in -lmysqlclient... no configure: error: wrong mysql library version or lib not found. Check config.log for more information. This is happening because the mysql_config file has only following options: libs="-L$pkglibdir -lmariadb -lpthread -ldl -lm -lgnutls -lzlib" embedded_libs="-L$pkglibdir -lmysqld -lpthread -lm -lrt -ldl -lcrypt -laio" I think PHP should have an option for configuring it with the new mysql client name. Test script: --------------- ./configure --with-mysqli=/path/to/mysql_config -- Edit bug report at https://bugs.php.net/bug.php?id=80353&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80353&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80353&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80353&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80353&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80353&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80353&r=support Expected behavior: https://bugs.php.net/fix.php?id=80353&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80353&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80353&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80353&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80353&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80353&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80353&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80353&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80353&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80353&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80353&r=mysqlcfg

« previous php.bugs (#230294) next »