PHP 4.0 Bug #7048: Less complete getrusage causes compile failure
| From: | jbg at nb dot com | Date: | Fri, 06 Oct 2000 04:05:24 +0000 |
| Subject: | PHP 4.0 Bug #7048: Less complete getrusage causes compile failure | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34321@lists.php.net to get a copy of this message | ||
From: jbg@nb.com
Operating system: dynix/ptx/4.4.6
PHP version: 4.0.2
PHP Bug Type: *Install and Config
Bug description: Less complete getrusage causes compile failure
THE PROBLEM:
"make" compile fails for some routines in the "main" subdir.
THE REASON:
"configure" finds "getrusage". But our "struct rusage" is incomplete
WHAT WE HAVE:
In /usr/include/sys/resource.h we find:
struct rusage { struct timeval ru_utime;
struct timeval ru_stime; };
int getrusage(int, struct rusage *);
THE MANUAL WORK-AROUND:
Change the config.cache entry for "getrusage" to "no" and rerun
"configure".