| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
  [2019-01-16 15:44 UTC] stephane at qnap dot com
 Description: ------------ trying to cross compile PHP 7.2.14 autoconf is stuck on checking for FlatFile support... builtin checking whether to enable DBA interface... yes, shared checking whether to enable DOM support... yes checking for xml2-config path... (cached) /opt/PHPFPM/bin/xml2-config checking whether libxml build works... checking for ENCHANT support... no checking whether to enable EXIF (metadata from images) support... yes checking for fileinfo support... yes checking for strcasestr... configure: error: in `/SRC/.MYSCRIPT/tmp/php-7.2.14': configure: error: cannot run test program while cross compiling See `config.log' for more details this error should passed and be inactiv when cross compiling tried with PHP 7.3.1 .. it runs without issue with same config config.log stuck at : configure:28473: result: no configure:28862: checking for CDB support configure:28870: result: builtin configure:28894: checking for INI File support configure:28902: result: builtin configure:28926: checking for FlatFile support configure:28934: result: builtin configure:28943: checking whether to enable DBA interface configure:28947: result: yes, shared configure:29235: checking whether to enable DOM support configure:29270: result: yes configure:29311: checking for xml2-config path configure:29325: result: /opt/PHPFPM/bin/xml2-config configure:29532: checking whether libxml build works configure:29583: result: configure:29934: checking for ENCHANT support configure:29970: result: no configure:30544: checking whether to enable EXIF (metadata from images) support configure:30579: result: yes configure:30847: checking for fileinfo support configure:30882: result: yes configure:30897: checking for strcasestr configure:30900: error: in `/SRC/.MYSCRIPT/tmp/php-7.2.14': configure:30902: error: cannot run test program while cross compiling See `config.log' for more details Expected result: ---------------- PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 07:00:01 2025 UTC | 
Cross-compiling is improved in the upcoming PHP-8.4 with using cache variables (php_cv_*) ./configure --build=<build-triplet> --host=<target-triplet> \ php_cv_<some_variable>=yes \ php_cv_<another_variable>=yes Not ideal yet, but it's getting there. The specific mentioned check for strcasestr has been also simplified to AC_CHECK_FUNCS only so it works also when cross-compiling. In case of more issues please report back at https://github.com/php/php-src/issues Thank you.