Re: Trouble compiling php-4.0.6

From: Date: Wed, 25 Jul 2001 14:53:08 +0000
Subject: Re: Trouble compiling php-4.0.6
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-3703@lists.php.net to get a copy of this message
Please see the FAQ at http://php.net/FAQ.php You have upgraded a Linux 2.2 system to the 2.4 kernel without upgrading your glibc as is required. -Rasmus On Wed, 25 Jul 2001, Arnauld Dravet - smurfie wrote: > Hello, > > i was using php-4.0.3pl1 until now and never had any problem, except yesterday i had to develop > a page on which i have to read on a socket ... > > problem is that: > while(!feof($socket_id)) { > echo fgets($socket_id, $len); > } > > does not work: seems that FEOF is never detected so the PHP enter an infinite loop. > > I found many people complaining about that problem on different PHP mailing-list, but no real > issue ... > > So i decided to upgrade PHP, and also apache, and also mysql. > > downlaoded php-4.0.6 sources (ieve always used sources) > and when i compile it: > > gcc -I. -I/root/php-4.0.6/ext/standard -I/root/php-4.0.6/main -I/root/php-4.0.6 > -I/root/apache_1.3.20/src/include -I/root/apache_1.3.20/src/os/unix -I/root/php-4.0.6/Zend > -I/usr/local/mysql/include/mysql -I/root/php-4.0.6/ext/xml/expat/xmltok > -I/root/php-4.0.6/ext/xml/expat/xmlparse -I/root/php-4.0.6/TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 > -g -O2 -c microtime.c && touch microtime.lo > microtime.c: In function `php_if_getrusage': > microtime.c:99: storage size of `usg' isn't known > microtime.c:102: `RUSAGE_SELF' undeclared (first use in this function) > microtime.c:102: (Each undeclared identifier is reported only once > microtime.c:102: for each function it appears in.) > microtime.c:108: `RUSAGE_CHILDREN' undeclared (first use in this function) > make[3]: *** [microtime.lo] Error 1 > make[3]: Leaving directory `/root/php-4.0.6/ext/standard' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/root/php-4.0.6/ext/standard' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/root/php-4.0.6/ext' > make: *** [all-recursive] Error 1 > mushroom:~/php-4.0.6# > > any help would be really appreciated ... :) > > thanks > Arnauld Dravet > smurfie@artefact21.net > > >

« previous php.install (#3703) next »