I'm trying (and failing) to compile PHP 4.0.2 with PostgreSQL support under Cygwin (Beta20) as a SAPI module for Microsoft Personal Web Server.
I've got PostgreSQL 7.0.2 compiled and working, and I'm trying to build PHP with:
configure --with-pgsql --without-mysql
Configure completes without creating a debug.log, but make fails when trying to compile datetime.c with:
gcc -I. -I/php-4.0.2/ext/standard -I/php-4.0.2 -I/php-4.0.2/main -I/php-4.0.2/Zend -I/php-4.0.2 -I/php-4.0.2/ext/xml/expat/xmltok -I/php-4.0.2/ext/xml/expat/xmlparse -DXML_BYTE_ORDER=12 -g -O2 -c datetime.c && touch datetime.lo
datetime.c: In function php_mktime':
datetime.c:186: wrong type argument to unary minus
datetime.c: In functionphp_date':
datetime.c:427: invalid operands to binary /
datetime.c:427: invalid operands to binary %
datetime.c:447: `tzname' undeclared (first use in this function)
datetime.c:447: (Each undeclared identifier is reported only once
datetime.c:447: for each function it appears in.)
make[3]: *** [datetime.lo] Error 1
I don't have Visual C so can't compile it that way.
Can anyone help? Am I missing some important configure parameters?
Many thanks in advance,
Ol