php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5715 compile failure in microtime.c looking for getrusage()
Submitted: 2000-07-21 01:08 UTC Modified: 2000-07-31 15:15 UTC
From: rhoegg at isisnetworks dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.01pl2 OS: Slackware Linux 7.0 (modified)
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: rhoegg at isisnetworks dot net
New email:
PHP Version: OS:

 

 [2000-07-21 01:08 UTC] rhoegg at isisnetworks dot net
- fresh download of php-4.0.1pl2 from http://www.php.net/do_download.php?download_file=php-4.0.1pl2.tar.gz&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)*

# 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/
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
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/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!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-21 01:09 UTC] rhoegg at isisnetworks dot net
Sorry, forgot to give you my kernel version: linux-2.4.0-test1

Thanks again!
 [2000-07-21 01:10 UTC] rhoegg at isisnetworks dot net
Sorry, forgot to give you my kernel version: linux-2.4.0-test1

Thanks again!
 [2000-07-25 00:33 UTC] waldschrott@php.net
checking out
 [2000-07-28 08:30 UTC] rhoegg at isisnetworks dot net
Hi,

Still have the same problem after upgrading to glibc 2.1.3 on the advice of someone form the php-dev mailing list.

So now I've upgraded to the following:
gcc 2.95.2
make 3.79.1
glibc 2.1.3

My next step will be to build linux-2.4.0-test4, however I cannot do that yet.

Thanks for a great product so far!
 [2000-07-28 08:42 UTC] rasmus@php.net
Check your /usr/include symlinks.  ie.
cd /usr/include
/usr/include> ls -ld asm linux
lrwxrwxrwx    1 root     root           24 Mar  2 16:05 asm -> ../src/linux/include/asm/
lrwxrwxrwx    1 root     root           26 Mar  2 16:05 linux -> ../src/linux/include/linux/

Are they pointing to your test4 kernel source tree?
 [2000-07-31 15:15 UTC] sas@php.net
This is not a PHP issue. Please refer to the last entry on the following page for possible reasons:

http://bugs.php.net/bugs-php3.php?id=4949


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 15:00:02 2026 UTC