php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4182 rusage struture size unknown in microtime.c
Submitted: 2000-04-18 20:59 UTC Modified: 2000-07-26 21:00 UTC
From: mailing-steve at uuuu dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Release Candidate 2 OS: Linux (Mandrake 7.02)
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: mailing-steve at uuuu dot org
New email:
PHP Version: OS:

 

 [2000-04-18 20:59 UTC] mailing-steve at uuuu dot org
I just made
./configure --with-apxs
make install

and it always fail on this file.
My Linux installation is quite standard.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-21 12:11 UTC] joey at cvs dot php dot net
Fixed in CVS.
 [2000-04-27 13:50 UTC] sas at cvs dot php dot net
Can you give me access to the box? If yes, please email sas@php.net
 [2000-05-13 06:28 UTC] sas at cvs dot php dot net
We have implemented a workaround for this. Please upgrade to PHP 4.0 RC2.
 [2000-05-14 09:34 UTC] mailing-steve at uuuu dot org
I still get the same problem with RC2.
Here's what I get :

/bin/sh /home/install/php-4.0RC2/libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I/home/install/php-4.0RC2/ext/standard -I/home/install/php-4.0RC2 -I/usr/include/apache -I/home/install/php-4.0RC2/Zend -I/home/install/php-4.0RC2 -I/home/install/php-4.0RC2/ext/mysql/libmysql -I/home/install/php-4.0RC2/ext/xml/expat/xmltok -I/home/install/php-4.0RC2/ext/xml/expat/xmlparse  -DEAPI=1 -DXML_BYTE_ORDER=12 -g -O2 -Wall  -c microtime.c
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/install/php-4.0RC2/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/install/php-4.0RC2/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/install/php-4.0RC2/ext'
make: *** [all-recursive] Error 1
 [2000-06-12 18:25 UTC] rasmus at cvs dot php dot net
It looks to me like this happens when your header files do not match your installed kernel.
ie. the /usr/include/linux and /usr/include/asm symlinks point to a /usr/src/linux
tree that isn't the same as the kernel you are running.
 [2000-07-25 22:30 UTC] zak@php.net
Any progress on this bug?
 [2000-07-26 21:00 UTC] zak@php.net
Fix suggested by Rasmus corrected problem - confirmed by user.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Oct 09 01:00:01 2026 UTC