Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Mon, 3 Sep 2001 08:17:28 +0200 (MEST)
To: cygwin@cygwin.com
Cc: gp@familiehaase.de, rebooting@hotmail.com
Cc: gp@familiehaase.de, rebooting@hotmail.com
Subject: Re: Help needed for compilation of PHP 4
From: "S. L." <s_i_lao@gmx.net>
MIME-Version: 1.0
References: <3B914C1C.16426.3146015A@localhost>
Message-ID: <14338.999497848@www51.gmx.net>
X-Authenticated-Sender: #0006551723@gmx.net
X-Mailer: WWW-Mail 1.5 (Global Message Exchange)
X-Authenticated-IP: [194.102.244.61]
X-Flags: 0001
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

[...]
> >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/

