php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3721 microtime.c compile error
Submitted: 2000-03-03 16:28 UTC Modified: 2000-07-31 15:03 UTC
From: Michael dot Muehrenberg at harz dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.12 OS: SuSE 6.2 with kernel 2.3.48
Private report: No CVE-ID: None
 [2000-03-03 16:28 UTC] Michael dot Muehrenberg at harz dot de
I get:
                                         functions/microtime.c: In function `php3_getrusage':
                                         functions/microtime.c:122: storage size of `usg' isn't known
                                         functions/microtime.c:125: `RUSAGE_SELF' undeclared (first use in this function)
                                         functions/microtime.c:125: (Each undeclared identifier is reported only once
                                         functions/microtime.c:125: for each function it appears in.)
                                         functions/microtime.c:131: `RUSAGE_CHILDREN' undeclared (first use in this function)
                                         make: *** [functions/microtime.o] Error 1

This thing is mentioned in bug id #3406 and a possible solution is given:
Does /usr/include/sys/resource.h exist? If no, install the libc header files

Well, I have 'em installed but the compile error is still there...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-07 10:14 UTC] ichael dot Muehrenberg at harz dot de
My e-mail is misspelled in the From: field. It's Michael.Muehrenberg@harz.de
Sorry about that!
 [2000-04-16 12:02 UTC] rasmus at cvs dot php dot net
Hrm..  For some reason the configure script is not picking up the fact that you have a /usr/include/sys/resource.h file. 
The quick fix is to edit your config.h file and add this line:
#define HAVE_SYS_RESOURCE_H 1
 [2000-04-27 14:01 UTC] sas at cvs dot php dot net
We are aware of this problem, but have not been able to solve it. Can you give me access to the system? If yes, please email sascha@php.net for further details. Thanks.
 [2000-07-31 15:03 UTC] sas@php.net
See the last entry on http://bugs.php.net/bugs-php3.php?id=4949 for possible reasons. This is not a PHP issue.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jul 13 05:00:02 2026 UTC