Fejl ved kompilering af php+apache
Jeg forsøger at kompilere apache med php som modul til Unix (Irix 6.5SGI) som almindelig bruger.
Jeg har forsøgt at følge følgende skridt:
(Taget fra http://www.php.net/manual/en/install.unix.php )
Men i nr. 13 går det galt og der kommer en masse fejl. Starten ses
nedenfor.
Måske lidt uoverskueligt, men er der nogen, som kan hjælpe?
1. gunzip apache_1.3.x.tar.gz
2. tar xvf apache_1.3.x.tar
3. gunzip php-x.x.x.tar.gz
4. tar xvf php-x.x.x.tar
5. cd apache_1.3.x
6. ./configure --prefix=/apachexxxx
7. cd ../php-x.x.x
8. ./configure --with-mysql --with-apache=../apache_1.3.x
--prefix=/phpxxxx --enable-track-vars
9. make
10. make install
11. cd ../apache_1.3.x
12. ./configure --prefix=/apachexxxx --activate-module=src/modules/php4/libphp4.a
13. make
14. make install
15. cd ../php-x.x.x
16. cp php.ini-dist /usr/local/lib/php.ini
17. Edit your httpd.conf or srm.conf file and add:
AddType application/x-httpd-php .php
18. Use your normal procedure for restarting the Apache server. (You must
stop and restart the server, not just cause the server to reload by
use a HUP or USR1 signal.)
*******Lige før første fejl******
cc -c -I../../os/unix -I../../include -DIRIX -n32 -I/users/person/projekt/Php/php-4.0.5 -I/users/person/projekt/Php/php-4.0.5/main -I/users/person/projekt/Php/php-4.0.5/main -I/users/person/projekt/Php/php-4.0.5/Zend -I/users/person/projekt/Php/php-4.0.5/Zend -I/users/person/projekt/Php/php-4.0.5/TSRM -I/users/person/projekt/Php/php-4.0.5/TSRM -I/users/person/projekt/Php/php-4.0.5 -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_setenvif.c
rm -f libstandard.a
ar cr libstandard.a mod_env.o mod_log_config.o mod_mime.o mod_negotiation.o mod_status.o mod_include.o mod_autoindex.o mod_dir.o mod_cgi.o mod_asis.o mod_imap.o mod_actions.o mod_userdir.o mod_alias.o mod_access.o mod_auth.o mod_setenvif.o
ranlib libstandard.a
<=== src/modules/standard
===> src/modules/php4
cc -c -I../../os/unix -I../../include -DIRIX -n32 -I/users/person/projekt/Php/php-4.0.5 -I/users/person/projekt/Php/php-4.0.5/main -I/users/person/projekt/Php/php-4.0.5/main -I/users/person/projekt/Php/php-4.0.5/Zend -I/users/person/projekt/Php/php-4.0.5/Zend -I/users/person/projekt/Php/php-4.0.5/TSRM -I/users/person/projekt/Php/php-4.0.5/TSRM -I/users/person/projekt/Php/php-4.0.5 -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_php4.c
cc-1233 cc: WARNING File = /users/person/projekt/Php/php-4.0.5/Zend/zend_operators.h, Line = 60
An explicit type is missing (\"int\" assumed).
static inline int is_numeric_string(char *str, int length, long *lval, double *dval)
^
cc-1065 cc: ERROR File = /users/person/projekt/Php/php-4.0.5/Zend/zend_operators.h, Line = 60
A semicolon is expected at this point.
static inline int is_numeric_string(char *str, int length, long *lval, double *dval)
^
********** en masse errors senere *****
^
19 errors detected in the compilation of \"mod_php4.c\".
make[4]: *** [mod_php4.o] Error 2
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/users/person/projekt/Apache/apache_1.3.19/src\'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/users/person/projekt/Apache/apache_1.3.19\'
make: *** [build] Error 2