[PHP-DEV] Re: PHP 4.0 Bug #4164 Updated: configure script not picking up sys/resource.h From: Ryan Matthews (rmatthews <email protected>)
Date: 04/28/00

I suppose I can, but yesterday, I think a friend and I found the
problem(s). It is NOT PHP specific. If you browse throught the results
of the configure (config.log) you can see the error :

configure:18559: checking for sys/resource.h
configure:18569: gcc -E conftest.c >/dev/null 2>conftest.out
In file included from /usr/include/sys/resource.h:25,
from configure:18565:
/usr/include/bits/resource.h:109: warning: `RLIM_INFINITY' redefined
/usr/include/asm/resource.h:25: warning: this is the location of the
previous definition
configure: failed program was:
#line 18564 "configure"
#include "confdefs.h"
#include <sys/resource.h>

Actually it's not an error, but a combination of things that happened to
cause havok. The havok is a result of both the Kernel developers
redefining RLIM_INFINITY for specific architechtures (or at least that's
what it 'appears' that they're doing) in the newer 2.3.x kernels, and
autoconf being oversensitive, and producing errors when there are only
warnings. Once MANUALLY editing php_config.h to define (and therefore
include in the source) sys/resource.h, it compiles and runs perfectly.

If you still need/want access to my box, just update the bugreport and
you can have it.

Ryan Matthews

Bug Database wrote:
>
> ID: 4164
>
> Updated by: sas
>
> Reported By: rmatthews <email protected>
>
> Status: Open
>
> Bug Type: Compile Failure
>
> Assigned To:
>
> Comments:
>
>
>
> Can you give me (sascha <email protected>) access to the box? We have not figured out yet what causes the header file to be not found.
>
>
>
> Full Bug description available at: http://bugs.php.net/?id=4164
>
>
>
>
>
>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>