Bug #79275 [NEW]: mysqlnd_auth compile fails: error C2057: expected constant expression
| From: | cmanplus at gmail dot com | Date: | Fri, 14 Feb 2020 11:55:45 +0000 |
| Subject: | Bug #79275 [NEW]: mysqlnd_auth compile fails: error C2057: expected constant expression | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-225577@lists.php.net to get a copy of this message | ||
From: cmanplus at gmail dot com
Operating system: Windows 10 ver 1903
PHP version: 7.4.2
Package: Compile Failure
Bug Type: Bug
Bug description:mysqlnd_auth compile fails: error C2057: expected constant expression
Description:
------------
Official PHP 7.4.2 Windows binaries do not support
auth_plugin_caching_sha2_password, tried to compile locally and failed
because of this:
"The compiler must know the size of a type at compile time in order to
allocate space for an instance of that type."
IDE: Visual Studio Community 2017 version 15.9.7
Compiler: Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27027.1
for x86
> configure "--enable-snapshot-build" "--enable-com-dotnet=shared"
"--without-analyzer" "--with-pgo"
> nmake
Actual result:
--------------
ext\mysqlnd\mysqlnd_auth.c(809): error C2057: expected constant
expression
ext\mysqlnd\mysqlnd_auth.c(809): error C2466: cannot allocate an array
of constant size 0
ext\mysqlnd\mysqlnd_auth.c(809): error C2133: 'xor_str': unknown size
ext\mysqlnd\mysqlnd_auth.c(1022): error C2057: expected constant
expression
ext\mysqlnd\mysqlnd_auth.c(1022): error C2466: cannot allocate an array
of constant size 0
ext\mysqlnd\mysqlnd_auth.c(1022): error C2133: 'xor_str': unknown size
--
Edit bug report at https://bugs.php.net/bug.php?id=79275&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79275&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79275&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79275&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79275&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79275&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79275&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79275&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79275&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79275&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79275&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79275&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79275&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79275&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79275&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79275&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79275&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79275&r=mysqlcfg