php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6013 Can't compile microtime.c
Submitted: 2000-08-07 22:46 UTC Modified: 2000-08-08 01:14 UTC
From: bravehearts at 263 dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.1 OS: linux 2.2.5-15
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: bravehearts at 263 dot net
New email:
PHP Version: OS:

 

 [2000-08-07 22:46 UTC] bravehearts at 263 dot net
Commands:
#./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.12 --enable-track-vars", 
#make
When "Making all in standard", it said:
microtime.c: In function `php_if_getrusage':
microtime.c:94: storage size of `usg' isn't known
microtime.c:97: `RUSAGE_SELF' undeclared (first use in this function)
microtime.c:97: (Each undeclared identifier is reported only once
microtime.c:97: for each function it appears in.)
microtime.c:103: `RUSAGE_CHILDREN' undeclared (first use in this function)
make[3]: *** [microtime.lo] Error 1
make[3]: Leaving directory `/home/master/php-4.0.1/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/master/php-4.0.1/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/master/php-4.0.1/ext'
make: *** [all-recursive] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-08 01:14 UTC] rasmus@php.net
*sigh*  

I guess we need to make this a FAQ.  

Your system is broken.  Please fix your /usr/include files either by making sure your /usr/include/linux symlink is pointing to the right place in your kernel sources or by installing a glibc-devel package that matches your glibc.  This has absolutely nothing to do with PHP.  To prove this to yourself, try this simple test:

    $ cat >test.c <<X
    #include <sys/resource.h>
    X

    $ gcc -E test.c >/dev/null

If that spews out errors, you know your include files are messed up.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 12:00:01 2026 UTC