Re: PHP 4.0 Bug #4164 Updated: configure script not picking up sys/resource.h

From: Date: Sat, 29 Apr 2000 01:34:11 +0000
Subject: Re: PHP 4.0 Bug #4164 Updated: configure script not picking up sys/resource.h
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-18268@lists.php.net to get a copy of this message
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@telus.net Status: Open Bug Type: Compile Failure Assigned To: Comments: Can you give me (sascha@php.net) 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


« previous php.dev (#18268) next »