php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4806 storage size of rusage isn't known
Submitted: 2000-06-04 17:33 UTC Modified: 2000-08-06 03:16 UTC
From: wm at bart dot nl Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.0 Release OS: Linux (RedHat6.1 + kernel 2.4.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: wm at bart dot nl
New email:
PHP Version: OS:

 

 [2000-06-04 17:33 UTC] wm at bart dot nl
Same problem as bug-id #4182 but this is version 4.0.0:

gcc -DHAVE_CONFIG_H -I. -I/home/wilfredm/src/php-4.0.0/ext/standard -I/home/wilfredm/src/php-4.0.0 -I/home/wilfredm/src/apache_1.3.9/src/include -I/home/wilfredm/src/apache_1.3.9/src/os/unix -I/home/wilfredm/src/php-4.0.0/Zend -I/home/wilfredm/src/php-4.0.0 -I/usr/include/freetype -I/home/wilfredm/src/php-4.0.0/ext/mysql/libmysql -I/home/wilfredm/src/php-4.0.0/ext/xml/expat/xmltok -I/home/wilfredm/src/php-4.0.0/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -g -O2 -Wall  -c microtime.c && touch microtime.lo
microtime.c: In function `php_if_getrusage':
microtime.c:97: storage size of `usg' isn't known
microtime.c:100: `RUSAGE_SELF' undeclared (first use in this function)
microtime.c:100: (Each undeclared identifier is reported only once
microtime.c:100: for each function it appears in.)
microtime.c:106: `RUSAGE_CHILDREN' undeclared (first use in this function)
microtime.c:110: warning: implicit declaration of function `getrusage'
microtime.c:97: warning: unused variable `usg'
make[3]: *** [microtime.lo] Error 1
make[3]: Leaving directory `/home/wilfredm/src/php-4.0.0/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/wilfredm/src/php-4.0.0/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/wilfredm/src/php-4.0.0/ext'
make: *** [all-recursive] Error 1
$

2.4 include file problem?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-12 18:28 UTC] rasmus at cvs dot php dot net
Do you header files match the kernel you are running?
ie. do the symlinks in /usr/include point to the right
places in /usr/src/linux and is your /usr/src/linux tree
the one you built your current running kernel from?
The only way I could reproduce this was to create a mismatch
here.
 [2000-08-06 03:16 UTC] rasmus@php.net
Definitely not a PHP problem - closing

Fix your header files.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Oct 12 06:00:02 2026 UTC