php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12240 microtime.x
Submitted: 2001-07-18 18:41 UTC Modified: 2010-12-20 15:16 UTC
From: jiv at jiv dot asenovgrad dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.0.6 OS: Slackware 7.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jiv at jiv dot asenovgrad dot net
New email:
PHP Version: OS:

 

 [2001-07-18 18:41 UTC] jiv at jiv dot asenovgrad dot net
The problem:
_________________
microtime.c: In function `php_if_getrusage':
microtime.c:99: storage size of `usg' isn't known
microtime.c:102: `RUSAGE_SELF' undeclared (first use in this function)
microtime.c:102: (Each undeclared identifier is reported only once
microtime.c:102: for each function it appears in.)
microtime.c:108: `RUSAGE_CHILDREN' undeclared (first use in this function)
make[3]: *** [microtime.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.0.6/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.0.6/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.6/ext'
make: *** [all-recursive] Error 1
___________________________________

A part from the ./configure output:
___________________________________
[root@jiv][01:39am] /usr/local/src/php-4.0.6 # ./configure  --with-mysql=/usr/local/ --with-apxs=/var/lib/apache/sbin/apxs | grep time
checking for sys/time.h... yes
checking for utime.h... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for asctime_r... yes
checking for ctime_r... yes
checking for gettimeofday... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking for setitimer... yes
checking for strftime... yes
checking for utime... yes
checking whether utime accepts a null argument... yes
checking for declared timezone... yes
checking for type of reentrant time-related functions... POSIX
configure: warning: You will need bison 1.28 if you want to regenerate the Zend parser (found 1.27).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-20 16:25 UTC] rasmus@php.net
This is a FAQ - http://www.php.net/FAQ.php#6.12

Basically you probably upgraded a Linux 2.2 box to the 2.4 kernel, right?
And you screwed up your header files.
 [2010-12-20 15:16 UTC] jani@php.net
-Package: Any +Package: Compile Failure
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 01:01:28 2024 UTC