From:             lstefani at fortresstech dot com
Operating system: Linux 2.6.12
PHP version:      5.1.6
PHP Bug Type:     *Configuration Issues
Bug description:  Cannot configure PHP for cross-compilation with Apache 2.2.3

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 bug report at http://bugs.php.net/?id=38997&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38997&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38997&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38997&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38997&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38997&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38997&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38997&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38997&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38997&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38997&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38997&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38997&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38997&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38997&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38997&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38997&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38997&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38997&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38997&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38997&r=mysqlcfg

Reply via email to