php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61839 [patch] Unable to cross-compile PHP with --enable-fpm
Submitted: 2012-04-24 15:12 UTC Modified: 2012-05-23 09:42 UTC
From: bos at je-eigen-domein dot nl Assigned: fat
Status: Closed Package: FPM related
PHP Version: 5.4.0 OS: Cross compiled Linux
Private report: No CVE-ID:
 [2012-04-24 15:12 UTC] bos at je-eigen-domein dot nl
Description:
------------
When cross-compiling PHP for a different architecture, configure fails if you 
specify the --enable-fpm option:

==
checking for ptrace... yes
checking whether ptrace works... configure: error: in 
`/hdd/max/dev/raspberry/buildroot-berryserver/output/build/php-5.4.0':
configure: error: cannot run test program while cross compiling
See `config.log' for more details.
==

Obviously it is impossible to execute a test program when the system you are 
compiling on is not the target system.

Attached a patch that skips running the test programs when cross-compiling.


Patches

php-fpm-cross.patch (last revision 2012-04-24 15:13 UTC) by bos at je-eigen-domein dot nl)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-25 08:13 UTC] laruence@php.net
-Assigned To: +Assigned To: fat
 [2012-05-23 09:41 UTC] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0b44f16ea2f18a08eb1249db6621840527eab5e0
Log: - Fixed bug #61839 (Unable to cross-compile PHP with --enable-fpm)
 [2012-05-23 09:41 UTC] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0b44f16ea2f18a08eb1249db6621840527eab5e0
Log: - Fixed bug #61839 (Unable to cross-compile PHP with --enable-fpm)
 [2012-05-23 09:42 UTC] fat@php.net
-Status: Assigned +Status: Closed
 [2012-05-23 09:42 UTC] fat@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

thx for the patch
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 23 18:01:55 2014 UTC