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: 2021-04-18 04:22 UTC
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: cmb (profile)
Status: No Feedback Package: MySQL related
PHP Version: 5.5.38 OS: Cross-compiling for Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-04-06 15:08 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-04-06 15:08 UTC] cmb@php.net
Is this still an issue for you with any of the actively supported
PHP versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-04-18 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC