I'm trying to compile PHP4.2.0(with apache 1.3 and mysql). Running the configure it's ok, but when I run make I got the follow errors. Any idea??? Thank you !!!
make
Making all in Zend
make[1]: Entering directory /opt/ssadmin/php-4.2.0/Zend'
make[1]: Nothing to be done forall'.
make[1]: Leaving directory /opt/ssadmin/php-4.2.0/Zend'
Making all in main
make[1]: Entering directory/opt/ssadmin/php-4.2.0/main'
make[2]: Entering directory /opt/ssadmin/php-4.2.0/main'
/bin/sh /opt/ssadmin/php-4.2.0/libtool --silent --mode=compile gcc -I. -I/opt/s
sadmin/php-4.2.0/main -I/opt/ssadmin/php-4.2.0/main -I/opt/ssadmin/php-4.2.0 -I/
usr/local/apache/include -I/opt/ssadmin/php-4.2.0/Zend -I/usr/local/mysql/includ
e -I/opt/ssadmin/php-4.2.0/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=
251 -DUSE_EXPAT -DNO_DL_NEEDED -I/opt/ssadmin/php-4.2.0/TSRM -g -O2 -prefer-pic
-c internal_functions.c
In file included from /usr/include/sys/time.h:405,
from /usr/include/sys/select.h:17,
from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/3.0.2/includ
e/sys/types.h:291,
from /opt/ssadmin/php-4.2.0/main/php_config.h:1883,
from /opt/ssadmin/php-4.2.0/Zend/zend_config.h:1,
from /opt/ssadmin/php-4.2.0/Zend/zend.h:48,
from php.h:34,
from internal_functions.c:23:
/usr/include/time.h:131: parse error before "pthread_attr_t"
/usr/include/time.h:133: parse error before '}' token
In file included from /opt/ssadmin/php-4.2.0/TSRM/tsrm_virtual_cwd.h:29,
from php.h:304,
from internal_functions.c:23:
/usr/include/sys/stat.h:253: parse error before "blksize_t"
/usr/include/sys/stat.h:257: parse error before '}' token
/usr/include/sys/stat.h:295: parse error before "ino64_t"
/usr/include/sys/stat.h:313: parse error before "st_blksize"
/usr/include/sys/stat.h:314: parse error before "st_blocks"
/usr/include/sys/stat.h:317: parse error before '}' token
In file included from php.h:304,
from internal_functions.c:23:
/opt/ssadmin/php-4.2.0/TSRM/tsrm_virtual_cwd.h:127: parse error before '*' token
/opt/ssadmin/php-4.2.0/TSRM/tsrm_virtual_cwd.h:127: warning: data definition has
no type or storage class
In file included from php.h:313,
from internal_functions.c:23:
php_reentrancy.h:54: parse error before '*' token
In file included from php_main.h:29,
from internal_functions.c:24:
SAPI.h:113: fieldglobal_stat' has incomplete type
SAPI.h:119: confused by earlier errors, bailing out
make[2]: [internal_functions.lo] Error 1
make[2]: Leaving directory /opt/ssadmin/php-4.2.0/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory/opt/ssadmin/php-4.2.0/main'
make: [all-recursive] Error 1