Solaris 10 64-bit php compile, pear fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,
I'm currently working on a project to compile gcc, openssl, apache,
zlib/libiconv/libxml2 and php () in 64-bit mode. So far I've got
everything compiling clean as 64-bit executable and libraries except for
php. I have gcc 32-bit 3.4.3 and gcc 64-bit 4.1.2 available and have
tried both compilers but with no success. My build options for php are:

(/usr/sfw/bin/gcc is 32-bit gcc version 3.4.3)
CC="/usr/sfw/bin/gcc -m64 -mcpu=v9"  /m64/download/php-5.2.1/configure
--prefix=/m64 --exec-prefix=/m64 --with-apxs2=/m64/apache/bin/apxs
--with-mysql=/m64/mysql --with-zlib
 --with-zlib-dir=/m64 --with-libxml-dir=/m64 --with-iconv-dir=/m64
-with-openssl=/m64 --includedir=/m64


The errors change as I try different options and compilers, but this is
the latest with the above options at the 'gmake install' phase:


Installing PHP SAPI module:       apache2handler
/m64/apache/build/instdso.sh SH_LIBTOOL='/m64/apache/build/libtool'
libphp5.la /m64/apache/modules
/m64/apache/build/libtool --mode=install cp libphp5.la /m64/apache/modules/
cp .libs/libphp5.so /m64/apache/modules/libphp5.so
chmod +x /m64/apache/modules/libphp5.so
cp .libs/libphp5.lai /m64/apache/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish
/m64/phpbuild/libs'
chmod 755 /m64/apache/modules/libphp5.so
[activating module `php5' in /m64/apache/conf/httpd.conf]
Installing PHP CLI binary:        /m64/bin/
Installing PHP CLI man page:      /m64/man/man1/
Installing build environment:     /m64/lib/php/build/
Installing header files:          /m64/php/
Installing helper programs:       /m64/bin/
  program: phpize
  program: php-config
Installing man pages:             /m64/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /m64/lib/php/

Fatal error: Error: "index.php" is not a file in phar "" in
/m64/phpbuild/pear/install-pear-nozlib.phar on line 411
gmake[1]: *** [install-pear-installer] Error 255
gmake: *** [install-pear] Error 2


When trying to use a 64-bit gcc (in /m64/gcc/bin/gcc) I get this error:

Installing PEAR environment:      /m64/php/
gmake[1]: *** [install-pear-installer] Segmentation Fault (core dumped)
gmake: *** [install-pear] Error 2


Thank you in advance for your help,
-JJ

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux