php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3979 Compilation (make) of PHP4RC1 fails
Submitted: 2000-03-30 07:37 UTC Modified: 2000-04-16 11:44 UTC
From: aleino at cs dot joensuu dot fi Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Release Candidate 1 OS: RedHatLinux 6.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: aleino at cs dot joensuu dot fi
New email:
PHP Version: OS:

 

 [2000-03-30 07:37 UTC] aleino at cs dot joensuu dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-30 13:54 UTC] joey at cvs dot php dot 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-04-16 11:44 UTC] rasmus at cvs dot php dot 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.
 [2002-08-02 02:27 UTC] P dot Nejedly at sh dot cvut dot cz
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)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 01:00:01 2026 UTC