Hi everyone,
I am having problems compiling PHP4.0.2 on my RedHat6.1 Server with the following options.
./configure \
--with-apxs=/usr/sbin/apxs \
--with-config-file-path=/etc/php \
--with-imap=/usr \
--with-mysql=/usr \
--enable-ftp \
--enable-bcmath \
--with-gettext=/usr \
--enable-ucd-snmp-hack \
--enable-sockets \
--with-swf=/usr/local/swf-lib \
--enable-trans-sid \
--enable-track-vars \
--disable-debug
The configure utility runs perfect, but at the time of compilation with make it gives the following error.
Making all in Zend
make[1]: Entering directory /usr/local/php-4.0.2/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DXML_BYTE_ORDER=12 -g -O2 -c zend-scanner.c
gcc: Internal compiler error: program as got fatal signal 11
make[1]: *** [zend-scanner.lo] Error 1
make[1]: Leaving directory/usr/local/php-4.0.2/Zend'
make: *** [all-recursive] Error 1
The above configure option for PHP4.0.0 without --enable-sockets options runs perfect and the compilation is also successful.
What can be the possible problem ?
Thanks in advance.