Help needed for compilation of PHP 4
S. L.
s_i_lao@gmx.net
Sun Sep 2 23:17:00 GMT 2001
[...]
> >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/
More information about the Cygwin
mailing list