This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Help needed for compilation of PHP 4
- To: "Alvin Ng" <rebooting at hotmail dot com>, cygwin at cygwin dot com
- Subject: Re: Help needed for compilation of PHP 4
- From: "Gerrit P. Haase" <gp at familiehaase dot de>
- Date: Sat, 1 Sep 2001 20:59:08 +0200
- Organization: Esse keine toten Tiere
- Reply-to: gp at familiehaase dot de
Alvin Ng schrieb am 2001-09-01, 17:40:
>Hi,
>
>I am currently stuck with compiling PHP4 with the latest Cygwin
>distribution.
>
>Compiling PHP 4.0.6 would produce:
>
>....
>datetime.c: In function `php_mktime':
>datetime.c:187: wrong type argument to unary minus
>datetime.c: In function `php_date':
>datetime.c:437: invalid operands to binary /
>datetime.c:437: invalid operands to binary %
>datetime.c:445: wrong type argument to unary minus
>datetime.c:445: wrong type argument to unary minus
>datetime.c:498: invalid operands to binary /
>datetime.c:499: invalid operands to binary %
>make[3]: *** [datetime.lo] Error 1
>....
Hi,
Use:
-_timezone ...
instead of:
-timezone ...
<time.h> needs to be included and initialize with:
tzset();
Example:
========
/* print timezone */
#include <stdio.h>
#include <time.h>
int
main (void)
{
tzset();
printf( "timezone: %d\n", _timezone );
}
/* end of print timezone */
Gerrit
--
=^..^=
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/