#40678 [NEW]: Cross compile fails

From: Date: Thu, 01 Mar 2007 09:53:28 +0000
Subject: #40678 [NEW]: Cross compile fails
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109739@lists.php.net to get a copy of this message
From: errol at issi dot co dot za Operating system: Linux 2.6.20 on ARM PHP version: 5.2.1 PHP Bug Type: Compile Failure Bug description: Cross compile fails Description: ------------ I am cross compiling V5.2.1 for the ARM using gcc 4.1.2 on a SuSE linux 10.2 host. The compile proceeds normally except that it attempts to run tests but these fail as it is a cross compile and so the compile stops. I can get around it by removing the 'exit 1;' from the configure script but it would be better if the script worked directly in this case. I did not have the same problem when I compiled 5.2.0 in the same way! Is there a way of switching off the tests when cross compiling? Reproduce code: --------------- Problem code in configure - there are others as well! echo $ac_n "checking for working ttyname_r() implementation""... $ac_c" 1>&6 echo "configure:78868: checking for working ttyname_r() implementation" >&5 if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else Expected result: ---------------- Successful compile and maybe a warning if tests are not able to be done Actual result: -------------- checking for working ttyname_r() implementation... configure: error: can not run test program while cross compiling -- Edit bug report at http://bugs.php.net/?id=40678&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40678&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40678&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40678&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40678&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40678&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40678&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40678&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40678&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40678&r=support Expected behavior: http://bugs.php.net/fix.php?id=40678&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40678&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40678&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40678&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40678&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40678&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40678&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40678&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40678&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40678&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40678&r=mysqlcfg

« previous php.bugs (#109739) next »