Bug #61839 [Com]: [patch] Unable to cross-compile PHP with --enable-fpm

From: Date: Thu, 22 Aug 2019 09:24:28 +0000
Subject: Bug #61839 [Com]: [patch] Unable to cross-compile PHP with --enable-fpm
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222362@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61839&edit=1 ID: 61839 Comment by: Marcedo at HabMalNeFrage dot de Reported by: bos at je-eigen-domein dot nl Summary: [patch] Unable to cross-compile PHP with --enable-fpm Status: Closed Type: Bug Package: FPM related Operating System: Cross compiled Linux PHP Version: 5.4.0 Assigned To: fat Block user comment: N Private report: N New Comment: Had to dive a littl deeper because of cross-compileing php5.6.40 resulted, even ,with the patch, in a binary with unsupoorted extensions. Found that acincludes.m4-PHP_CHECK_FUNC_LIB cant compile its test in the cross-compile environment an so opts out with found=no reverting any other choice made before. Test: --- acinclude.m4 +++ acinclude.m4 @@ -1904,10 +1904,11 @@ AC_CHECK_LIB($2, __$1, [found=yes], [found=no]) ]) + // Add the opportunity to define how PHP_CHECK_FUNC_LIB handles a cross-build in configure.in if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -l$2" - AC_TRY_RUN([main() { return (0); }],[found=yes],[found=no],[found=no]) + AC_TRY_RUN([main() { return (0); }],[found=yes],[found=no],[found=$with_freetz_fix_cross]) LIBS=$ac_libs fi --- configure.in +++ configure.in @@ -453,10 +453,14 @@ PHP_CHECK_FUNC(gethostbyaddr, nsl) PHP_CHECK_FUNC(yp_get_default_domain, nsl) +# PHP_CHECK_FUNC->_AC_CHECK_FUNC->PHP_CHECK_FUNC_LIB +# Define how to call AC_TRY_RUN in PHP_CHECK_FUNC_LIB when cross-compiling") +$with_freetz_fix_cross=yes PHP_CHECK_FUNC(dlopen, dl) if test "$ac_cv_func_dlopen" = "yes"; then AC_DEFINE(HAVE_LIBDL, 1, [ ]) fi +$with_freetz_fix_cross=no AC_CHECK_LIB(m, sin) dnl Check for inet_aton have a nice day, Marcedo Previous Comments: ------------------------------------------------------------------------ [2014-10-07 23:36:26] stas@php.net Automatic comment on behalf of fat Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=0b44f16ea2f18a08eb1249db6621840527eab5e0 Log: - Fixed bug #61839 (Unable to cross-compile PHP with --enable-fpm) ------------------------------------------------------------------------ [2014-10-07 23:25:33] stas@php.net Automatic comment on behalf of fat Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=0b44f16ea2f18a08eb1249db6621840527eab5e0 Log: - Fixed bug #61839 (Unable to cross-compile PHP with --enable-fpm) ------------------------------------------------------------------------ [2012-05-23 09:42:15] 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 ------------------------------------------------------------------------ [2012-05-23 09:41:37] 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:09] 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) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=61839 -- Edit this bug report at https://bugs.php.net/bug.php?id=61839&edit=1

« previous php.bugs (#222362) next »