Bug #14697: no HAVE_SYS_RESOURCE_H
| From: | support at augsoft dot com | Date: | Wed, 26 Dec 2001 05:12:24 +0000 |
| Subject: | Bug #14697: no HAVE_SYS_RESOURCE_H | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-75004@lists.php.net to get a copy of this message | ||
From: support@augsoft.com
Operating system: RHL6.1/X86
PHP version: 4.1.0
PHP Bug Type: Compile Failure
Bug description: no HAVE_SYS_RESOURCE_H
With gcc version egcs-2.91.66 on RHL6.1/X86, apparently HAVE_SYS_RESOURCE_H
is not being defined when it comes time to compile
/ext/standard/microtime.c
as in:
#./configure --with-apxs
#make
resulting in make aborting as follows ->
/bin/sh /home/src/site/webserver/php-4.1.0/libtool --silent --mode=compile
gcc -I. -I/home/src/site/webserver/php-4.1.0/ext/\
standard -I/home/src/site/webserver/php-4.1.0/main
-I/home/src/site/webserver/php-4.1.0 -I/usr/include/apache
-I/home/src/sit\
e/webserver/php-4.1.0/Zend
-I/home/src/site/webserver/php-4.1.0/ext/mysql/libmysql
-I/home/src/site/webserver/php-4.1.0/ext/x\
ml/expat -DLINUX=22 -DMOD_SSL=208105 -DUSE_HSREGEX -DEAPI -DEAPI_MM
-DUSE_EXPAT -I/home/src/site/webserver/php-4.1.0/TSRM -g\
-O2 -prefer-pic -c microtime.c
microtime.c: In function `zif_getrusage':
microtime.c:98: storage size of `usg' isn't known
microtime.c:101: `RUSAGE_SELF' undeclared (first use in this function)
microtime.c:101: (Each undeclared identifier is reported only once
microtime.c:101: for each function it appears in.)
microtime.c:107: `RUSAGE_CHILDREN' undeclared (first use in this
function)
make[3]: *** [microtime.lo] Error 1
make[3]: Leaving directory
`/home/src/site/webserver/php-4.1.0/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/src/site/webserver/php-4.1.0/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/src/site/webserver/php-4.1.0/ext'
make: *** [all-recursive] Error 1
#
NotE: by manually editing microtime.c and _forcing_ the inclusion of
<sys/resource.h> this problem goes away and the build completes as
expected.
--
Edit bug report at: http://bugs.php.net/?id=14697&edit=1