PHP 4.0 Bug #4921: compile fails at microtime.c
| From: | dali at win dot co dot nz | Date: | Fri, 09 Jun 2000 04:49:15 +0000 |
| Subject: | PHP 4.0 Bug #4921: compile fails at microtime.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-20673@lists.php.net to get a copy of this message | ||
From: dali@win.co.nz
Operating system: linux 2.4.0test1-ac10
PHP version: 4.0.0 Release
PHP Bug Type: Compile Failure
Bug description: compile fails at microtime.c
trying to compile PHP4 release will fail on 2.3 and 2.4 series kernels on file microtime.c. I tried
this with 2.3.99pre5,6,9 and 2.4test1 ac10 with various options
As far as i can tell microtime.c references sys/resource.h, but configure script doesn't detect
it correctly on 2.3/4 series kernels
workaround is to do following to php_config.h
uncomment line #undef HAVE_SYS_RESOURCE_H
add under it #define HAVE_SYS_RESOURCE_H 1
compiles and executes ok afterwards