php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78250 make failed for pdo_mysql due to undeclared constants
Submitted: 2019-07-04 12:35 UTC Modified: 2019-07-04 12:43 UTC
From: sim at onitec dot de Assigned:
Status: Open Package: *Compile Issues
PHP Version: 7.2.20 OS: ?Ubuntu 14.04.6 LTS?
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-07-04 12:35 UTC] sim at onitec dot de
Description:
------------
While try to compile php 7.2.20, i got some errors while compiling the pdo mysql-driver.
It say some constants are not defined. They are defined in an enum, it seams some files are not matching. I tried 7.2.19 before with same error. 
It makes no difference if a path of libery name is assined to the mysql parameters. 

/usr/local/src/php-7.2.20/ext/pdo_mysql/mysql_driver.c: In function ‘mysql_handle_quoter’:
/usr/local/src/php-7.2.20/ext/pdo_mysql/mysql_driver.c:308:19: error: ‘PDO_PARAM_STR_NATL’ undeclared (first use in this function)
  if ((paramtype & PDO_PARAM_STR_NATL) == PDO_PARAM_STR_NATL) {
                   ^
/usr/local/src/php-7.2.20/ext/pdo_mysql/mysql_driver.c:308:19: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/src/php-7.2.20/ext/pdo_mysql/mysql_driver.c:311:19: error: ‘PDO_PARAM_STR_CHAR’ undeclared (first use in this function)
  if ((paramtype & PDO_PARAM_STR_CHAR) == PDO_PARAM_STR_CHAR) {
                   ^
(... same constants on some other locations ...)


Test script:
---------------
./configure '--enable-mysqlnd' '--with-libdir=lib64' '--cache-file=../config.cache' '--prefix=/usr/local/php-7.2.20' '--with-config-file-path=/usr/local/php-7.2.20/etc' '--disable-debug' '--with-pic' '--disable-rpath' '--with-bz2' '--with-curl' '--with-freetype-dir=/usr/local/php-7.2.20' '--with-png-dir=/usr/local/php-7.2.20' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr/local/php-7.2.20' '--with-openssl' '--with-pspell' '--with-pcre-regex' '--with-zlib' '--enable-exif' '--enable-ftp' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-wddx' '--with-kerberos' '--with-unixODBC=/usr' '--enable-shmop' '--enable-calendar' '--without-sqlite3' '--with-libxml-dir=/usr/local/php-7.2.20' '--enable-pcntl' '--enable-mbstring' '--enable-mbregex' '--with-gd' '--enable-bcmath' '--with-xmlrpc' '--with-mysqli=mysqlnd' '--enable-soap' '--with-xsl' '--enable-xmlreader' '--enable-xmlwriter' '--enable-pdo' '--with-pdo-mysql=mysqlnd' '--with-pdo-pgsql' '--with-pear=/usr/local/php-7.2.20/pear' '--enable-intl' '--without-pdo-sqlite' '--with-config-file-scan-dir=/usr/local/php-7.2.20/php.d' '--enable-zip' 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-07-04 12:43 UTC] daverandom@php.net
-Summary: make faild fpr pdo_mysql due to undeclared constants +Summary: make failed for pdo_mysql due to undeclared constants
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Nov 12 23:01:34 2019 UTC