php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61057 PHP 5.3.10 fails to cross compile when FPM is enabled (ptrace)
Submitted: 2012-02-11 17:15 UTC Modified: 2013-10-15 11:54 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: d dot albano at gmail dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.3.10 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-02-11 17:15 UTC] d dot albano at gmail dot com
Description:
------------
I'm trying to cross compile php 5.3.10 (build x86, host x86, target x86) but 
when i enable FPM i get the following error

checking whether ptrace works... configure: error: can not run test program 
while cross compiling

I know that FPM is experimental, btw the bug is related to configure script and 
not to FPM itself.

Wihtout fpm, enabling only cgi and cli works fine

Here more output, starting from SAPI modules

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking whether to enable Apache charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... no
checking for Apache 1.x (hooks) module support via DSO through APXS... no
checking for Apache 1.x (hooks) module support... no
checking whether to enable Apache charset compatibility option... no
checking for Caudium support... no
checking for CLI build... yes
checking for Continuity support... no
checking for embedded SAPI library support... no
checking for FPM build... yes
checking for setenv... yes
checking for clearenv... yes
checking for setproctitle... no
checking for library containing socket... none required
checking for library containing inet_addr... none required
checking for errno.h... yes
checking for fcntl.h... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for unistd.h... yes
checking for sys/uio.h... yes
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for sys/time.h... yes
checking for arpa/inet.h... yes
checking for netinet/in.h... yes
checking for prctl... yes
checking for clock_gettime... yes
checking for ptrace... yes
checking whether ptrace works... configure: error: can not run test program 
while cross compiling
make[1]: *** [/home/daniele/sviluppo/clew.js/br-rootfs/build/php-
5.3.10/.stamp_configured] Errore 1
make: *** [all] Errore 2

Expected result:
----------------
it should go ahead

Actual result:
--------------
checking whether ptrace works... configure: error: can not run test program while 
cross compiling

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-12 21:06 UTC] hotseason007 at gmail dot com
I also reach it ,but php.net don't regard it as a bug !

here is my report:
https://bugs.php.net/bug.php?id=61063

I have fix and Here is the guid:
https://github.com/Qzi/webstore/wiki
the page attaches the patch

enjoy it !!
 [2012-02-12 21:27 UTC] rasmus@php.net
Why are you cross-compiling to the same architecture?

You may be able to solve this simply by using a newer version of autoconf to 
generate the configure script. As a quick test, try building the latest PHP 5.4 
with a recent version of autoconf installed. (use ./buildconf --force to force 
re-generation of the configure script)

For PHP 5.3 the latest you can use is autoconf-2.59 
For PHP 5.4 the oldest you can use is autoconf-2.59
 [2012-02-12 21:27 UTC] rasmus@php.net
-Status: Open +Status: Feedback
 [2012-02-12 21:34 UTC] d dot albano at gmail dot com
I'm cross compiling because i'm building a set of images for boards like alix, 
routerboards and, when it will be out, raspberry pi too.

I know that it may sound strange, but i don't want to put an entire distribution 
on the alix my 30mb systems works perfectly and has everything i need.

Thank you, i'll do a test.
 [2012-02-12 21:34 UTC] d dot albano at gmail dot com
-Status: Feedback +Status: Open
 [2013-10-01 12:33 UTC] mike@php.net
-Status: Open +Status: Feedback
 [2013-10-01 12:33 UTC] mike@php.net
What is the outcome of the test?
 [2013-10-15 11:54 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: Wed Apr 24 18:01:28 2024 UTC