ID: 38997 Updated by: [EMAIL PROTECTED] Reported By: lstefani at fortresstech dot com -Status: Open +Status: Bogus Bug Type: *Configuration Issues Operating System: Linux 2.6.12 PHP Version: 5.1.6 New Comment:
PHP _does_ need to execute apxs to get correct compilation flags, paths etc. required to compile Apache module. There is nothing we can do about it. Previous Comments: ------------------------------------------------------------------------ [2006-09-29 19:18:28] lstefani at fortresstech dot com Description: ------------ After successfully cross-compiling Apache 2.2.3 on Linux x86 machine for MIPS target, PHP fails to configure properly with --with-apxs2= flag. The reason for the failure is that PHP configure executes apxs utility, which executes httpd, but that binary was cross-compiled, so it fails to execute. Reproduce code: --------------- env ac_cv_func_fopencookie=no ac_cv_func_getaddrinfo=yes ac_cv_func_utime_null=yes ac_cv_func_waitpid=yes ac_cv_pread=yes ac_cv_pwrite=yes ac_cv_sizeof_long=4 ac_cv_php_xml2_config_path=/usr/apache/bin/xml2-config PKG_CONFIG_PATH=/usr/apache/lib/pkgconfig ac_cv_prog_CC=/buildtools/gcc-3.3.2-glibc-2.3.2/mips-linux/bin/mips-linux-gcc ./configure --host=mips-linux --target=mips-linux --without-iconv --without-mysql --without-pear --enable-sigchild --enable-bcmath --with-apxs2=/usr/apache/bin/apxs --with-libxml-dir=/usr/apache --prefix=/usr/apache Expected result: ---------------- Successful configuration of PHP for subsequent make operation. When configuring for cross-compilation, PHP configure should not be dependent on natively executing binaries that were built for other targets. What information does PHP configure require of apxs and httpd? Is there an alternative way to retrieve it? Actual result: -------------- 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 for mod_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... Sorry, I cannot run apxs. Possible reasons follow: 1. Perl is not installed 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs 3. Apache was not built using --enable-so (the apxs usage page is displayed) The output of /usr/apache/bin/apxs follows: sh: /usr/apache/bin/httpd: cannot execute binary file apxs:Error: Sorry, no shared object support for Apache. apxs:Error: available under your platform. Make sure. apxs:Error: the Apache module mod_so is compiled into. apxs:Error: your server binary `/usr/apache/bin/httpd'.. configure: error: Aborting ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38997&edit=1