php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72763 mysqlnd: unable to cross-compile due to use of PHP_CHECK_TYPES
Submitted: 2016-08-05 12:16 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: bos at je-eigen-domein dot nl Assigned:
Status: Open Package: MySQL related
PHP Version: 5.5.38 OS: Cross-compiling for Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bos at je-eigen-domein dot nl
New email:
PHP Version: OS:

 

 [2016-08-05 12:16 UTC] bos at je-eigen-domein dot nl
Description:
------------
Cross-compiling PHP fails when mysqlnd is enabled with the error message:

==
mysqlnd_portability.h:40:46: error: ext/mysqlnd/php_mysqlnd_config.h: No such file or directory
make[1]: *** [ext/pdo_mysql/pdo_mysql.lo] Error 1
==


php_mysqlnd_config.h is supposed to be created by the PHP_CHECK_TYPES macro in ext/mysqlnd/config9.m4:

==
  PHP_CHECK_TYPES([int8 uint8 int16 uint16 int32 uint32 uchar ulong int8_t uint8_t int16_t uint16_t int32_t uint32_t int64_t uint64_t], [
    ext/mysqlnd/php_mysqlnd_config.h
==

However that apparently performs a test that always fails when cross-compiling.

config.log:

==
configure:101002: checking whether to enable mysqlnd
configure:101037: result: yes
configure:101046: checking whether to disable compressed protocol support in mysqlnd
configure:101060: result: yes
configure:101114: checking for DSA_get_default_method in -lssl
configure:101148: result: no
configure:101156: checking for X509_free in -lcrypto
configure:101190: result: yes
configure:101428: checking for OpenSSL version
configure:101442: result: >= 0.9.6
configure:101583: checking for CRYPTO_free in -lcrypto
configure:101617: result: yes
configure:101760: checking for SSL_CTX_set_ssl_version in -lssl
configure:101794: result: yes
configure:102243: checking whether int8 exists
configure:102319: result: no
configure:102243: checking whether uint8 exists
configure:102319: result: no
configure:102243: checking whether int16 exists
configure:102319: result: no
configure:102243: checking whether uint16 exists
configure:102319: result: no
configure:102243: checking whether int32 exists
configure:102319: result: no
configure:102243: checking whether uint32 exists
configure:102319: result: no
configure:102243: checking whether uchar exists
configure:102319: result: no
configure:102243: checking whether ulong exists
configure:102319: result: no
configure:102243: checking whether int8_t exists
configure:102319: result: no
configure:102243: checking whether uint8_t exists
configure:102319: result: no
configure:102243: checking whether int16_t exists
configure:102319: result: no
configure:102243: checking whether uint16_t exists
configure:102319: result: no
configure:102243: checking whether int32_t exists
configure:102319: result: no
configure:102243: checking whether uint32_t exists
configure:102319: result: no
configure:102243: checking whether int64_t exists
configure:102319: result: no
configure:102243: checking whether uint64_t exists
configure:102319: result: no
==



Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 20:01:26 2019 UTC