[ _owl_ @ 01.10.2001. 15:58 ] @
Imam problem oko kompajliranja php-a 4.0.6 na Linux Slack-u

Evo podataka:

Apache 1.3.20 - tek skinut, neinstaliran source u: /sources/apache_1.3.20

PHP 4.0.6 - source u /sources/php-4.0.6



instalaciju sam radio prema uputstvu iz php manuala

/sources/apache_1.3.20/configure --prefix=/web/apache

/sources/php-4.0.6/configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.20

--enable-ftp --prefix=/web/php

make



i make tako radi i radi i prijavi sledecu gresku:



gcc -I. -I/sources/php-4.0.6/ext/standard -I/sources/php-4.0.6/main

-I/sources/php-4.0.6 -I/sources/apache_1.3.20/src/include

-I/sources/apache_1.3.20/src/os/unix -I/sources/php-4.0.6/Zend

-I/usr/local/mysql/include/mysql -I/sources/php-4.0.6/ext/xml/expat/xmltok

-I/sources/php-4.0.6/ext/xml/expat/xmlparse -I/sources/php-4.0.6/TSRM

-DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c microtime.c && touch

microtime.lo

microtime.c: In function hp_if_getrusage':

microtime.c:99: storage size of sg' 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 /sources/php-4.0.6/ext/standard'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory /sources/php-4.0.6/ext/standard'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory /sources/php-4.0.6/ext'

make: *** [all-recursive] Error 1



Da li je neko imao iskustvo sa ovim i da li zna kako bi mogao da resim ovaj problem??





[ m r v a @ 01.10.2001. 21:50 ] @
Koji gcc koristiš ( ponavljam se ... ) ???
[ _owl_ @ 02.10.2001. 02:44 ] @
Nisam sad u linuxu ali mislim da je 2.95.2 ili mozda 2.95.3
a i zar configure skripta ne bi trebala da mi prijavi da gcc
nije dovoljno svez.




[Ovu poruku je menjao _owl_ dana 10-02-2001 u 02:45 AM GMT]
[ m r v a @ 02.10.2001. 21:41 ] @
GCC >3.0 nekad neće da prihvati kÖd koji na 2.95.* prolazi bez ikakvih upozorenja o neispravnosti kÖd-a