Trouble compiling php 4.0.3pl1

From: Date: Tue, 17 Oct 2000 14:26:14 +0000
Subject: Trouble compiling php 4.0.3pl1
Groups: php.install 
Request: Send a blank email to php-install+get-365@lists.php.net to get a copy of this message
Dear PHP mailing list, I met a problem when I tried to install php 4.0.3pl1. Since I installed php (4.0, 4.0.1pl2) before, I followed the direction of previous installation, and expected a smooth installation. I used the configuration command: sh ./configure \ --prefix=/site/subsys/www/php_4.0.3pl1 \ --with-config-file-path=/site/subsys/www/php_4.0.3pl1 \ --with-apxs=/site/subsys/www/apache_1.3.12/bin/apxs \ --with-mysql=/site/subsys/www/mysql_3.22.32 \ --with-exec-dir=/site/subsys/www/apache_1.3.12/php-bin \ --enable-track-vars \ --disable-short-tags \ --enable-bcmath=yes \ --enable-sysvshm=yes \ --enable-sysvsem=yes \ --enable-safe-mode=yes \ --with-mhash=/depot/package/mhash_0.6.1 \ --with-gd=/depot/package/gd_1.7.3 \ --with-gdbm=/depot/package/gdbm_1.8 \ --with-ldap=/site/subsys/openLDAP_1.2.7 \ --with-pdflib=/depot/package/pdflib_2.01 \ --with-jpeg-dir=/depot/package/jpeg_6b \ --with-tiff-dir=/depot/package/tiff_3.5.5 \ --with-gettext=/depot/package/gettext_0.10.35 \ --with-mm=/site/subsys/www/mm_1.1.2 \ --enable-ftp \ --with-zlib=/depot/package/zlib_1.1.3 \ --with-xml=/site/subsys/www/expat_1.1 \ --with-mcrypt=/depot/package/mcrypt_2.2.5 \ --enable-libgcc I got the following error message: ... checking whether to enable System V shared memory support... yes checking whether to enable WDDX support... no checking whether byte ordering is bigendian... configure: error: can not run test program while cross compiling And when I checked config.log, I found the following lines which might suggest the cause of the problem: configure:40151: checking whether byte ordering is bigendian configure:40169: gcc -c -g -O2 -I/depot/include -I/site/subsys/www/mysql/include/mysql -D_POSIX_PTHREAD_SEMANTICS -DEAPI conftest.c 1>&5 configure: In function main': configure:40164: bogus' undeclared (first use in this function) configure:40164: (Each undeclared identifier is reported only once configure:40164: for each function it appears in.) configure:40164: parse error before `endian' configure: failed program was: #line 40158 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/param.h> int main() { #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN bogus endian macros #endif ; return 0; } Furthermore, we already installed wddx, why doesn't the configure find it? Your help is appreciated. Thanks, Ziying Sherwin

« previous php.install (#365) next »