|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69132 PHP 5.6.6 will not cross-compile
Submitted: 2015-02-27 03:10 UTC Modified: 2015-02-27 06:37 UTC
Avg. Score:4.4 ± 0.8
Reproduced:8 of 9 (88.9%)
Same Version:2 (25.0%)
Same OS:4 (50.0%)
From: mike at flyn dot org Assigned:
Status: Open Package: *General Issues
PHP Version: 5.6.6 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-02-27 03:10 UTC] mike at flyn dot org
I am interested in updating the PHP package for OpenWrt, a Linux distribution for routers and other similar devices. Due to the wide variety of devices supported, packagers generally cross compile OpenWrt packages.

It seems that PHP 5.6.4 is a little more difficult to cross compile than OpenWrt's last supported version, 5.4.36. For example, 5.6.4's "./configure ..." prints an error which states that the test program responsible for checking for the existence of strcasestr cannot run. (The reason it cannot run is that it was not compiled for the host architecture.)

Actual result:
checking whether to enable EXIF (metadata from images) support... yes, shared
checking for fileinfo support... yes, shared
checking for strcasestr... configure: error: in `/home/mike/Source/openwrt/openwrt/build_dir/target-mips_34kc_uClibc-':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
Makefile:518: recipe for target '/home/mike/Source/openwrt/openwrt/build_dir/target-mips_34kc_uClibc-' failed
make[2]: *** [/home/mike/Source/openwrt/openwrt/build_dir/target-mips_34kc_uClibc-] Error 1
make[2]: Leaving directory '/home/mike/Source/openwrt/openwrt/feeds/packages/lang/php5'
package/Makefile:173: recipe for target 'package/feeds/packages/php5/compile' failed
make[1]: *** [package/feeds/packages/php5/compile] Error 2
make[1]: Leaving directory '/home/mike/Source/openwrt/openwrt'
/home/mike/Source/openwrt/openwrt/include/ recipe for target 'package/php5/compile' failed
make: *** [package/php5/compile] Error 2


950-Fix-dl-cross-compiling-issue.patch (last revision 2015-02-27 03:55 UTC by mike at flyn dot org)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-08 18:43 UTC] back_ag at mail dot ru
I have the same situation when cross compile php-5.6.23 for mips64 Cavium/Octeon
 [2016-12-25 10:52 UTC] claudi0 dot beatric3 at gmail dot com
Having the same issue trying to cross-compile php 7.1.0 for an Atmel board (ARM processor)
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 26 07:03:37 2021 UTC