php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44982 File ext/mysqlnd/php_mysqlnd_config.h is missing from mysqlnd
Submitted: 2008-05-13 18:22 UTC Modified: 2008-07-14 17:36 UTC
From: pcdinh at gmail dot com Assigned: andrey (profile)
Status: Not a bug Package: MySQL related
PHP Version: 5.3CVS-2008-05-13 (CVS) OS: CentOS 5.1
Private report: No CVE-ID: None
 [2008-05-13 18:22 UTC] pcdinh at gmail dot com
Description:
------------
When I tried to build Mysqlnd library with PHP 5.2.6 using ext/mysql, ext/mysqli, ext/mysqlnd from PHP 5.3 CVS as drop-in replacement to bundled ext/mysql, ext/mysqli in PHP 5.2.6, there were a lot of errors that occurred. One of messages showed that one file is missing

/usr/local/src/php-5.2.6/ext/mysqlnd/mysqlnd_portability.h:35:46: error: ext/mysqlnd/php_mysqlnd_config.h: No such file or directory

Reproduce code:
---------------
Configure:

./configure --prefix=/usr/local/php \
--with-config-file-path=/usr/local/php \
--disable-cgi \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-curl \
--with-curlwrappers \
--with-pdo-oci=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server \
--with-pdo-sqlite \
--with-oci8=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server \
--with-zend-vm=GOTO \
--with-pdo-mysqlnd=mysqlnd \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-iconv \
--with-gd \
--with-png-dir=/usr/lib \
--with-jpeg-dir=/usr/lib \
--with-ttf \
--with-freetype-dir=/usr/include/freetype2 \
--with-zlib \
--with-bz2 \
--with-xmlrpc \
--with-mime-magic \
--without-pear \
--enable-dom \
--enable-calendar \
--enable-sysvsem \
--enable-sysvshm \
--enable-bcmath \
--enable-ctype \
--enable-exif \
--enable-ftp \
--enable-sockets \
--enable-shmop \
--enable-wddx \
--enable-gd-native-ttf \
--enable-mbstring \
--enable-inline-optimization \
--enable-debug=no \
--enable-mbregex \
--disable-magic-quotes \
--enable-zip \
--enable-spl \
--enable-libxml \
--enable-simplexml \
--enable-soap \
--enable-sigchild \
--disable-static

Expected result:
----------------
Build process should go smoothly or at least php_mysqlnd_config.h should exist.

Actual result:
--------------
After a while, there were a lot of errors that occurred

In file included from /usr/local/src/php-5.2.6/ext/mysqlnd/mysqlnd.h:59,
                 from /usr/local/src/php-5.2.6/ext/mysql/php_mysql_structs.h:39,
                 from /usr/local/src/php-5.2.6/ext/mysql/php_mysql.c:69:
/usr/local/src/php-5.2.6/ext/mysqlnd/mysqlnd_portability.h:35:46: error: ext/mysqlnd/php_mysqlnd_config.h: No such file or directory
/usr/local/src/php-5.2.6/ext/mysql/php_mysql.c:237: warning: initialization discards qualifiers from pointer target type
/usr/local/src/php-5.2.6/ext/mysql/php_mysql.c:242: warning: initialization discards qualifiers from pointer target type
/usr/local/src/php-5.2.6/ext/mysql/php_mysql.c: In function 'zif_mysql_db_query':
/usr/local/src/php-5.2.6/ext/mysql/php_mysql.c:1465: error: 'E_DEPRECATED' undeclared (first use in this function)
/usr/local/src/php-5.2.6/ext/mysql/php_mysql.c:1465: error: (Each undeclared identifier is reported only once
/usr/local/src/php-5.2.6/ext/mysql/php_mysql.c:1465: error: for each function it appears in.)
/usr/local/src/php-5.2.6/ext/mysql/php_mysql.c: In function 'zif_mysql_escape_string':
/usr/local/src/php-5.2.6/ext/mysql/php_mysql.c:1765: error: 'E_DEPRECATED' undeclared (first use in this function)
make: *** [ext/mysql/php_mysql.lo] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-14 17:36 UTC] uw@php.net
Please don't mix 5.2 and 5.3 code. Times are gone that this was a valid *hack*...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 09:01:28 2024 UTC