Bug #14697 Updated: no HAVE_SYS_RESOURCE_H

From: Date: Wed, 26 Dec 2001 11:58:08 +0000
Subject: Bug #14697 Updated: no HAVE_SYS_RESOURCE_H
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-75040@lists.php.net to get a copy of this message
ID: 14697 User updated by: support@augsoft.com Reported By: support@augsoft.com Status: Bogus Bug Type: Compile Failure Operating System: RHL6.1/X86 PHP Version: 4.1.0 New Comment: An update to the user's glibc and headers appears to be in order so as to eliminate the annoying warnings concerning redefinition of values by the latest kernel headers. However, a harmless warning for sys/resource.h should not be able to trick the otherwise superb PHP4 configure script into generating a non-functional build. A compromise solution would be to emit a configure error "checking sys/resource.h ....(error discovered, check log)" rather than "checking sys/resource.h....(no)". Previous Comments: ------------------------------------------------------------------------ [2001-12-26 06:27:35] derick@php.net As that FAQ entry describes, your kernel headers are messed up. Derick ------------------------------------------------------------------------ [2001-12-26 06:25:22] support@augsoft.com Here is the bit from config.log that is causing all of this: configure:6304: checking for sys/resource.h configure:6314: gcc -E -DLINUX=22 -DMOD_SSL=208105 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT conftest.c >/dev/null 2>conftest.out In file included from /usr/include/sys/resource.h:25, from configure:6310: /usr/include/bits/resource.h:109: warning: `RLIM_INFINITY' redefined /usr/include/asm/resource.h:26: warning: this is the location of the previous definition configure: failed program was: #line 6309 "configure" #include "confdefs.h" #include <sys/resource.h> ------------------------------------------------------------------------ [2001-12-26 06:13:36] derick@php.net http://www.php.net/manual/en/faq.build.php#AEN74774 ------------------------------------------------------------------------ [2001-12-26 00:52:25] mfischer@php.net Does config.log shows any special hints why sys/resource.h wasn't found? Feedback. ------------------------------------------------------------------------ [2001-12-26 00:29:31] support@augsoft.com It appears to be a bug in the configure script for 4.1.0 This is an extract from the ./configure output: checking for sys/mman.h... yes checking for sys/mount.h... yes checking for sys/resource.h... no <-- creates the failure checking for sys/select.h... yes checking for sys/socket.h... yes checking for sys/statfs.h... yes Here is a listing of those files #vdir /usr/include/sys/mman.h /usr/include/sys/mount.h /usr/include/sys/resource.h /usr/include/sys\ /select.h /usr/include/sys/socket.h /usr/include/sys/statfs.h -rw-r--r-- 1 root root 4175 Sep 20 1999 /usr/include/sys/mman.h -rw-r--r-- 1 root root 3825 Sep 20 1999 /usr/include/sys/mount.h -rw-r--r-- 1 root root 3185 Sep 20 1999 /usr/include/sys/resource.h -rw-r--r-- 1 root root 3359 Sep 20 1999 /usr/include/sys/select.h -rw-r--r-- 1 root root 8340 Sep 20 1999 /usr/include/sys/socket.h -rw-r--r-- 1 root root 2066 Sep 20 1999 /usr/include/sys/statfs.h # ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=14697 Edit this bug report at http://bugs.php.net/?id=14697&edit=1

« previous php.dev (#75040) next »