delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/03/02:17:54

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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019