Bug #66970 [Opn]: php_mysqlnd_config.h does not exist
| From: | johannes@php.net | Date: | Thu, 06 Apr 2017 09:56:05 +0000 |
| Subject: | Bug #66970 [Opn]: php_mysqlnd_config.h does not exist | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-208353@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66970&edit=1
ID: 66970
Updated by: johannes@php.net
Reported by: brian dot gaber at ssc dot gc dot ca
Summary: php_mysqlnd_config.h does not exist
Status: Open
Type: Bug
-Package: MySQLi related
+Package: Compile Failure
Operating System: AIX
PHP Version: 5.5.10
Block user comment: N
Private report: N
New Comment:
This doesn't seem to be related to MySQL but the AiX build tool chain, somehow.
Previous Comments:
------------------------------------------------------------------------
[2014-03-31 17:59:13] brian dot gaber at ssc dot gc dot ca
I was able to successfully compile PHP 5.5.10 on AIX 7.1 following these procedures:
Compile environment:
export CC="xlc"
export CFLAGS="-qmaxmem=2097152 -DSYSV -D_AIX -D_AIX61 -D_AIX71 -D_ALL_SOURCE -DFUNCPROTO=15 -O
-I/opt/freeware/include"
export CXX="xlC"
export CXXFLAGS=$CFLAGS
export LD=ld
export LDFLAGS="-L/opt/freeware/lib"
export OBJECT_MODE=64
configure statement:
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-mysqli \
--with-pdo-mysql \
--without-pdo-sqlite \
--without-sqlite3 \
--with-libxml-dir=/opt/freeware \
--with-zlib-dir=/opt/freeware \
--with-ldap \
--enable-mbstring \
--enable-opcache=no
After successful configure I modified the Makefile as follows:
append to PHP_CLI_OBJS this text $(PHP_BINARY_OBJS)
append to PHP_CGI_OBJS this text main/internal_functions.lo
Use gmake instead of AIX make:
/opt/freeware/bin/make
------------------------------------------------------------------------
[2014-03-27 18:01:34] brian dot gaber at ssc dot gc dot ca
Description:
------------
ext/mysqlnd/mysqlnd_portability.h contains this code:
#if defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(WIN32)
# include "ext/mysqlnd/config-win.h"
#else
# include <ext/mysqlnd/php_mysqlnd_config.h>
#endif /* _WIN32... */
Unfortunately ext/mysqlnd/php_mysqlnd_config.h does not exist.
When I compile on AIX the make fails with this statement:
"/home/downloads/php-5.5.10/ext/mysqlnd/mysqlnd_portability.h", line 40.12: 1506-296 (S)
#include file <ext/mysqlnd/php_mysqlnd_config.h> not found.
make: *** [ext/mysqli/mysqli.lo] Error 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66970&edit=1