I am having probelms compile php4 (4.0.2). It is not finding my resource.h, and hence gives errors when compiling:
microtime.c: In function php_if_getrusage':
microtime.c:97: storage size ofusg' isn't known
microtime.c💯 RUSAGE_SELF' undeclared (first use in this function)
microtime.c:100: (Each undeclared identifier is reported only oncemicrotime.c:100: for each function it appears in.)
microtime.c:106:RUSAGE_CHILDREN' undeclared (first use in this function)
configure is not detecting the resource.h file
"checking for sys/resource.h... no"
But it is there...
-rw-r--r-- 1 root root 3185 Dec 15 1999 /usr/include/sys/resource.h
and
-rw-r--r-- 1 root root 6920 Dec 15 1999 /usr/include/bits/resource.h
is also there...
I read in the php FAQ about doing how to test this
(
cat >test.c<<X
#include <sys/resource.h>
X
gcc -E test.c
)
I did not get any errors with this test.
I can get it to work by doing this when running config:
CFLAGS="-O2 -DHAVE_SYS_RESOURCE_H" ./configure [rest of config options]"
Is anyone else having this problem?
System:
Mandrake 7.0
kernel:
2.4.0-test6 (SMP)