Well, it's the classic old microtime.c error, but I don't see why it's
happening here:

[root@landcow php-4.0.4pl1]# ./configure --with-mysql=/usr/local/mysql
--with-apache=../apache_1.3.17 --enable-track-vars
...

[root@landcow php-4.0.4pl1]# make
...
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)

Now, i've built php 4.0.x under linux 2.2.x, but i've never built under
2.4.x until now.  I'm wondering if that has something to do with it
because everything seems ok:

[landcow]:/usr/src/ls -al
total 16
drwxr-xr-x   4 root     root         4096 Jan  8 13:48 ./
drwxr-xr-x  22 root     root         4096 May 10  2000 ../
lrwxrwxrwx   1 root     root           12 Jan  8 13:48 linux ->
linux-2.4.0//
drwxr-xr-x  14 root     root         4096 Jan  9 15:26 linux-2.4.0/
drwxr-xr-x   7 root     root         4096 Feb 19  2000 redhat/
[landcow]:/usr/src/

[landcow]:/usr/include/ls -l | grep linux
lrwxrwxrwx   1 root     root           24 Feb 19  2000 asm ->
../src/linux/include/asm/
lrwxrwxrwx   1 root     root           26 Feb 19  2000 linux ->
../src/linux/include/linux/

So it seems to me that all my symlinks are ok.  Plus:

[landcow]:/usr/include/sys/less resource.h
...
#include <bits/resource.h>
...

[landcow]:/usr/include/bits/less resource.h
...
/* Whose usage statistics do you want?  */
enum __rusage_who
{
  /* The calling process.  */
  RUSAGE_SELF = 0,
#define RUSAGE_SELF RUSAGE_SELF

  /* All of its terminated child processes.  */
  RUSAGE_CHILDREN = -1,
#define RUSAGE_CHILDREN RUSAGE_CHILDREN

  /* Both.  */
  RUSAGE_BOTH = -2
#define RUSAGE_BOTH RUSAGE_BOTH
};
...

So it looks to be there and defined. My only thought is that maybe it's
including a resource.h from somewhere else in the compilation include
path?  Any help would be appreciated.

                                                        andy


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to