Re: RUSAGE_SELF undeclared in microtime -- including fix
| From: | Rasmus Lerdorf | Date: | Tue, 05 Dec 2000 01:21:51 +0000 |
| Subject: | Re: RUSAGE_SELF undeclared in microtime -- including fix | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-1061@lists.php.net to get a copy of this message | ||
The fact that you are using the 2.4 kernel is a good clue that you have
some mixup and have not properly installed your kernel header files, or
that perhaps you haven't upgraded your glibc and its associated header
files as is required by the 2.4 kernel.
I have been using the 2.3/4 kernel for over a year without any problems.
-Rasmus
On Mon, 4 Dec 2000, Pat Ritchie wrote:
> Hi,
>
> 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
>
> The faq states that this error means your system is broken, that is not
> neccessarily the case. I ran the test given there and received no
> errors...
>
> In some cases php is not finding resource.h during the configure.
>
> Using the following workaround allows php to compile.
>
> export CFLAGS="-O2 -DHAVE_SYS_RESOURCE_H"
> ./configure --your-php-settings
> make
>
> I expect that the reason php is not finding the resource.h is due to my
> of the 2.4.0-test series of kernels... unfrortunately I don't have time
> to investigate further.
>
> Could someone pass this on to the documentation team?
>
> I'm not on the list, so if you want me to get your replies please CC:
> the message to me.
>
> Thanks,
> Patrick
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net
> For additional commands, e-mail: php-install-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>