Re: PHP 4.0 Bug #5715: compile failure in microtime.c looking for getrusage()

From: Date: Fri, 21 Jul 2000 00:34:32 +0000
Subject: Re: PHP 4.0 Bug #5715: compile failure in microtime.c looking for getrusage()
Groups: php.dev 
Request: Send a blank email to php-dev+get-25308@lists.php.net to get a copy of this message
This bug has been submitted numerous times, and is not fixed yet. For some reason configure script does not find the sys/resource.h file. And no, this is not because header files for the kernel do not match the kernel used. I am 100% positive that my header files match my kernel (2.3.51). workaround: go to the standard/microtime.c file, and find: #ifdef HAVE_SYS_RESOURCE_H #include &lt;sys/resource.h&gt; #endif After that remove the #ifdef and #endif, leaving #include. Anybody has time to fix that? Vlad ----- Original Message ----- From: rhoegg@isisnetworks.net To: php-dev@lists.php.net Sent: 20 Jul 2000 23:08:09 -0000 Subject: [PHP-DEV] PHP 4.0 Bug #5715: compile failure in microtime.c looking for getrusage() From: rhoegg@isisnetworks.net<BR>Operating system: Slackware Linux 7.0 (modified) PHP version: 4.0 Release Candidate 2 PHP Bug Type: Compile Failure Bug description: compile failure in microtime.c looking for getrusage() - fresh download of php-4.0.1pl2 from http://www.php.net/do_download.php?download_file=php-4.0.1pl2.tar.gz&amp;source_site=isisnetworks.net into /usr/src/dl # pwd /usr/src # tar -xzf dl/php-4.0.1pl2 # ln -s php-4.0.1pl2 php # cd php # ./configure --prefix=/usr/local/php4 --bindir=/usr/local/bin --sbindir=/usr/local/sbin --mandir=/usr/local/man --with-apxs --with-mysql=/usr/local/mysql --disable-short-tags --with-gd=/usr/local/gd1.3 *snip (successful, license statement, all that jazz)* <BR># make *snip lots of fun gcc lines etc* /bin/sh /usr/src/php/libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I/ usr/src/php/ext/standard -I/usr/src/php -I/usr/src/php/main -I/usr/local/apache/<BR>include -I/usr/src/php/Zend -I/usr/src/php -I/usr/local/gd1.3 -I/usr/local/mysql /include/mysql -I/usr/src/php/ext/xml/expat/xmltok -I/usr/src/php/ext/xml/expat/ xmlparse -DXML_BYTE_ORDER=12 -g -O2 -c microtime.c<BR>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)<BR>make[3]: *** [microtime.lo] Error 1 make[3]: Leaving directory `/usr/src/php-4.0.1pl2/ext/standard' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/php-4.0.1pl2/ext/standard' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/php-4.0..1pl2/ext' make: *** [all-recursive] Error 1 I've tried recompiling, reconfiguring, rebuilding apache, rebuilding mysql, and redownloading the tar.gz (on the off chance I got a dirty d/l) I've even tried compiling without MySQL support, with the included mysql support, and without gd. Apache is 1.3.12, MySQL is 3.22.32. Apache is built with SHARED_CORE and mod_so, apxs apparently works (although this is the first/only shared module I am adding). Here is my apache configure line (apaci): /usr/src/apache/configure --prefix=/usr/local/apache --bindir=/usr/local/bin --sbindir=/usr/local/sbin --mandir=/usr/local/man --htdocsdir=/usr/local/webdata --enable-rule=SHARED_CORE -- server-uid=xxxxx --server-gid=xxxxx --enable-module=so --enable-module=expires Thanks! -- PHP Development Mailing List &lt;http://www.php.net/&gt; To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net ________________________________________ Finally! Real applications on the web! Free email, contacts, and file storage. http://www.echospace.com

« previous php.dev (#25308) next »