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: cygwin at cygwin dot com
- Subject: Re: Help needed for compilation of PHP 4
- From: S. L. <s_i_lao at gmx dot net>
- Date: Mon, 3 Sep 2001 08:17:28 +0200 (MEST)
- Cc: gp at familiehaase dot de,rebooting at hotmail dot com
- Cc: gp at familiehaase dot de,rebooting at hotmail dot com
- References: <3B914C1C.16426.3146015A@localhost>
[...]
> >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();
[...]
And there's of course the quick'n'dirty way (just to see it running -- also
usefull if you don't care very much about the date'n'time/calendar stuff):
- delete the minus "-" sign at 187
- do an (int) cast to the coresponding abs functions for / or % operands at
the lines with "invalid operands"
SLao
P.S.
Don't forget the "dirty" word. Gerrit solved the problem without the lack of
functionality.
--
Sent through GMX FreeMail - http://www.gmx.net
--
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/