php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4065 compile failure at parsedate.y even after including patch
Submitted: 2000-04-07 09:19 UTC Modified: 2000-04-27 13:35 UTC
From: kannan_narayanan at hotmail dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Release Candidate 1 OS: HP-UX10.20
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kannan_narayanan at hotmail dot com
New email:
PHP Version: OS:

 

 [2000-04-07 09:19 UTC] kannan_narayanan at hotmail dot com
This is in response to Bug id#3965 which was closed with a patch.

grep time_r_type config cache  outputs   hpux
but the compile still fails at parsedate.y. I downloaded the php4-latest.tar.gz  (php4-200004050345 is the extracted directory).

My CONFIGURE OPTIONS are as follows:

env GCC_EXEC_PREFIX=/usr/local/gcc/lib/gcc-lib \
    PERL=/usr/local/perl5/bin/perl \
    CC=/usr/local/gcc/bin/gcc \
    CXX=/usr/local/gcc/bin/g++ \
    GCC=/usr/local/gcc/bin/gcc \
    RANLIB=/usr/local/myutils/bin/ranlib \
    AR=/usr/local/myutils/bin/ar \
    NM=/usr/local/myutils/bin/nm \
    LEX=/usr/local/myutils/bin/flex \
    YACC=/usr/local/myutils/bin/bison \
./configure --prefix=/usr/local/php \
            --with-mysql=/usr/local/mysql \
            --with-apache=../downloads/apache_1.3.12 \
            --with-gd=/usr/local/myutils \
            --with-zlib=/usr/local/myutils \
            --with-ttf=/usr/local/myutils \
            --with-xml \
            --with-ftp 


The WARNINGS and ERROR MESSAGES generated are as follows:

zend-scanner.c:5763: warning: `yy_fatal_error' defined but not used
zend-scanner.c:5748: warning: `yy_top_state' defined but not used

zend_extensions.c: In function `zend_register_extension':
zend_extensions.c:117: warning: implicit declaration of function `DL_UNLOAD'

gd.c: In function `php_imagettftext_common':
gd.c:1827: warning: `im' might be used uninitialized in this function

posix.c: In function `php_if_posix_getgrnam':
posix.c:662: warning: implicit declaration of function `snprintf'

session.c: In function `_ps_srlzr_encode_php':
session.c:222: warning: implicit declaration of function `snprintf'
session.c: In function `strcat_gmt':
session.c:483: warning: implicit declaration of function `gmtime_r'

mod_files.c: In function `_ps_files_cleanup_dir':
mod_files.c:175: warning: implicit declaration of function `snprintf'

basic_functions.c: In function `php_info_basic':
basic_functions.c:712: warning: implicit declaration of function `php_info_dl'

datetime.c: In function `php_mktime':
datetime.c:106: warning: implicit declaration of function `localtime_r'
datetime.c:106: warning: assignment makes pointer from integer without a cast
datetime.c: In function `php_date':
datetime.c:224: warning: implicit declaration of function `gmtime_r'
datetime.c:224: warning: assignment makes pointer from integer without a cast
datetime.c:226: warning: assignment makes pointer from integer without a cast
datetime.c: In function `php_if_localtime':
datetime.c:492: warning: assignment makes pointer from integer without a cast
datetime.c: In function `php_if_getdate':
datetime.c:539: warning: assignment makes pointer from integer without a cast
datetime.c: In function `php_std_date':
datetime.c:569: warning: assignment makes pointer from integer without a cast
datetime.c:572: warning: implicit declaration of function `snprintf'
datetime.c: In function `_php_strftime':
datetime.c:661: warning: assignment makes pointer from integer without a cast
datetime.c:663: warning: assignment makes pointer from integer without a cast

In file included from dns.c:45:
/usr/local/gcc/lib/gcc-lib/hppa2.0-hp-hpux10.20/2.95.2/include/arpa/nameser.h:90: warning: `/*' within comment
dns.c: In function `php_if_checkdnsrr':
dns.c:203: warning: implicit declaration of function `res_search'
dns.c: In function `php_if_getmxrr':
dns.c:281: warning: implicit declaration of function `dn_skipname'
dns.c:299: warning: implicit declaration of function `dn_expand'

file.c: In function `php_if_get_meta_tags':
file.c:409: warning: implicit declaration of function `snprintf'


parsedate.y: In function `GetTimeInfo':
parsedate.y:559: warning: implicit declaration of function `localtime_r'
parsedate.y:559: warning: assignment makes pointer from integer without a cast
parsedate.y:565: warning: implicit declaration of function `gmtime_r'
parsedate.y:565: warning: assignment makes pointer from integer without a cast
parsedate.y: In function `Convert':
parsedate.y:664: invalid type argument of `->'
parsedate.y: In function `DSTcorrect':
parsedate.y:677: invalid type argument of `->'
parsedate.y:678: invalid type argument of `->'
parsedate.y:673: warning: `StartDay' might be used uninitialized in this function
parsedate.y:674: warning: `FutureDay' might be used uninitialized in this function
parsedate.y: In function `RelativeMonth':
parsedate.y:690: warning: assignment makes pointer from integer without a cast
parsedate.y: In function `parsedate':
parsedate.y:865: warning: assignment makes pointer from integer without a cast
make[3]: *** [parsedate.lo] Error 1
make[3]: Leaving directory `/home/rzzx59/downloads/php4-200004050345/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/rzzx59/downloads/php4-200004050345/ext/standard'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/rzzx59/downloads/php4-200004050345/ext'
make: *** [all-recursive] Error 1




Kannan





>From: Sascha Schumann <sascha@schumann.cx>
>To: "Kannan Narayanan" <kannan_narayanan@hotmail.com>
>Subject: Re: Bug id #3965
>Date: Sat, 1 Apr 2000 18:00:39 +0200
>
>And here is the patch..
>
>On Sat, Apr 01, 2000 at 06:00:12PM +0200, Sascha Schumann wrote:
> > On Sat, Apr 01, 2000 at 10:45:18AM -0500, Kannan Narayanan wrote:
> > >
> > > $ cc hpux.c
> > > $ ./a.out
> > > s=0,r=0
> > >
> >
> > Ok. The attached patch should fix the check. Please run
> >
> > $ cd php-4.0RC1
> > $ patch < ../diff
> > $ ./buildconf
> > $ rm config.cache
> > $ ./configure [OPTIONS]
> > $ grep time_r_type config.cache
> >
> > Note that you need autoconf and automake for buildconf.
> >
> > Please let me know what the last command outputs.
> >
> > Thanks.
> >
> > - Sascha

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-27 13:35 UTC] sas at cvs dot php dot net
Fixed in CVS. Please use a snapshot or wait for a new release.

http://snaps.php.net
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 16:00:02 2026 UTC