OpenWrt Forum Archive

Topic: Compiling PHP error

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I'm trying to compile PHP 5.5.15 with the openwrtSDK and can't get past the following error:


checking "whether flock struct is linux ordered"... configure: error: in `/home/nan/Downloads/OpenWrt-SDK-x86/build_dir/target-i386_uClibc-0.9.33.2/php-5.5.15':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
make[2]: *** [/home/nan/Downloads/OpenWrt-SDK-x86/build_dir/target-i386_uClibc-0.9.33.2/php-5.5.15/.configured_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyynyy] Error 1
make[2]: Leaving directory `/home/nan/Downloads/OpenWrt-SDK-x86/package/php5'
make[1]: *** [package/php5/compile] Error 2
make[1]: Leaving directory `/home/nan/Downloads/OpenWrt-SDK-x86'


Can someone help me? thanks.

No one knows? Really?

You need to patch configure to not execute run tests and predefine the test results.

jow wrote:

You need to patch configure to not execute run tests and predefine the test results.

Hi jow, thanks for your answer...

Can you point me out where to get some info about that or how to do it? I searched and all I found was what you say but don't know how to do it.

bump...

The discussion might have continued from here.