#12240 [Com]: microtime.x
| From: | qq at ww dot com | Date: | Thu, 10 Jun 2004 09:01:34 +0000 |
| Subject: | #12240 [Com]: microtime.x | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-60702@lists.php.net to get a copy of this message | ||
ID: 12240
Comment by: qq at ww dot com
Reported By: jiv at jiv dot asenovgrad dot net
Status: Bogus
Bug Type: Any
Operating System: Slackware 7.0
PHP Version: 4.0.6
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2001-07-20 16:25:57] 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.
------------------------------------------------------------------------
[2001-07-18 18:41:01] 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).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=12240&edit=1