#3979 [Com]: Compilation (make) of PHP4RC1 fails

From: Date: Fri, 02 Aug 2002 06:27:54 +0000
Subject: #3979 [Com]: Compilation (make) of PHP4RC1 fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15785@lists.php.net to get a copy of this message
ID: 3979 Comment by: P.Nejedly@sh.cvut.cz Reported By: aleino@cs.joensuu.fi Status: Closed Bug Type: Compile Failure Operating System: RedHatLinux 6.1 PHP Version: 4.0 Release Candidate 1 New Comment: It apeared again for me in php-4.2.2 on Slackware8.0 The problem is here (configure): configure:6921: checking for sys/resource. configure:6931: gcc -E conftest.c >/dev/null 2>conftest.out In file included from /usr/include/sys/resource.h:25, from configure:6927: /usr/include/bits/resource.h:109: warning: `RLIM_INFINITY' redefined /usr/include/asm/resource.h:26: warning: this is the location of the previous de configure: failed program was: #line 6926 "configure" #include "confdefs.h" #include <sys/resource.h> i.e. the configure script confused the warning with failure. Will anybody reopen it? (I don't have account here) Previous Comments: ------------------------------------------------------------------------ [2000-04-16 11:44:51] rasmus@cvs.php.net This should be fixed in CVS now. The quick workaround is to edit your php_config.h file and add: #define HAVE_SYS_RESOURCE_H 1 Assuming you have the /usr/include/sys/resource.h file, of course. ------------------------------------------------------------------------ [2000-03-30 13:54:34] joey@cvs.php.net Something appears to be wrong with your machine... <sys/resource.h> should define RUSAGE_SELF and RUSAGE_CHILDREN at least...struct rusage (the storage type for usg) is in <linux/resources.h> on my machine. ------------------------------------------------------------------------ [2000-03-30 07:37:40] aleino@cs.joensuu.fi Was configured with: ./configure --with-mysql --with-apache=../apache --enable-track-vars --disable-debug Make wasn't a success; info on screen: make[3]: Entering directory `/usr/local/src/php-4.0RC1/ext/standard' gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/php-4.0RC1/ext/standard -I../.. -I../../Zend -I/usr/local/src/php-4.0RC1 -I/ usr/local/src/apache/src/include -I/usr/local/src/apache/src/os/unix -I/usr/local/src/php-4.0RC1/ext/mysql/libmysql - I/usr/local/src/php-4.0RC1/ext/xml/expat/xmltok -I/usr/local/src/php-4.0RC1/ext/xml/expat/xmlparse -DXML_BYTE_ORDER= 12 -D_REENTRANT -g -O2 -c microtime.c && touch microtime.lo 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) make[3]: *** [microtime.lo] Error 1 make[3]: Leaving directory `/usr/local/src/php-4.0RC1/ext/standard' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/php-4.0RC1/ext/standard' make[1]: *** [all] Error 1 make[1]: Leaving directory `/usr/local/src/php-4.0RC1/ext' make: *** [all-recursive] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=3979&edit=1

« previous php.bugs (#15785) next »