NewtonJr.
(usa CentOS)
Enviado em 19/05/2008 - 15:28h
Diego, fiz o que vc recomendou, instalei o zlib e a libxml, porém qnd entro dentro da pasta /usr/local/php-5.2.6/ o mesmo erro acontece:
Dei os seguintes passos para configurar, compilar e instalar o php:
0) make clean
1) ./configure --with-libxml-dir=/usr/local/ --with-apxs2=/usr/local/apache2/bin/apxs --with-pgsql
2) make (já dá pau aqui)
3) make install
Mesmo mudando o ./configure para 1) ./configure --with-libxml-dir=/usr/local/libxml2-2.6.30 --with-apxs2=/usr/local/apache2/bin/apxs --with-pgsql
ainda dá o mesmo erro.
Outra coisa que notei é que qnd eu digito zlib --version o SO informa que o comando não foi encontrado. O que devo fazer qnt a isso?
Eis como os diretorios estão dentro de /usr/local :
bin error icons man saida-tar-php-5.2.6.txt
build etc include manual sbin
cgi-bin games lib modules share
conf htdocs libexec php-5.2.6 src
dir-usr-local.txt httpd-2.2.8 logs php-5.2.6.tar
Organização dentro de /usr/local/php-5.2.6/ :
acconfig.h modules
acconfig.h.in netware
acinclude.m4 NEWS
aclocal.m4 pear
build php5.spec
buildconf php5.spec.in
buildconf.bat php.gif
CODING_STANDARDS php.ini-dist
config.cache php.ini-recommended
config.guess README.CVS-RULES
config.log README.EXTENSIONS
config.nice README.EXT_SKEL
config.status README.input_filter
config.sub README.PARAMETER_PARSING_API
configure README.PHP4-TO-PHP5-THIN-CHANGES
configure.in README.QNX
CREDITS README.SELF-CONTAINED-EXTENSIONS
cvsclean README.STREAMS
cvsclean.bat README.SUBMITTING_PATCH
ext README.TESTING
EXTENSIONS README.TESTING2
footer README.UNIX-BUILD-SYSTEM
generated_lists README.UPDATE_5_2
genfiles README.WIN32-BUILD-SYSTEM
header README.Zeus
include regex
INSTALL run-tests.php
install-sh saida-dir-php-5.2.6.txt
libs sapi
libtool scripts
LICENSE server-tests-config.php
ltmain.sh server-tests.php
main snapshot
makedist stamp-h.in
Makefile stub.c
Makefile.frag tests
Makefile.fragments TODO
Makefile.gcov TODO-5.1
Makefile.global TODO-PHP5
Makefile.objects TSRM
makerpm UPGRADING
missing win32
mkinstalldirs Zend
O sistema do servidor é CentOS 4.5.
Saida do último erro:
[root@srv-mr-01 php-5.2.6]# make
/bin/sh /usr/local/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/libxml/ -I/usr/local/php-5.2.6/ext/libxml/ -DPHP_ATOM_INC -I/usr/local/php-5.2.6/include -I/usr/local/php-5.2.6/main -I/usr/local/php-5.2.6 -I/usr/local/include/libxml2 -I/usr/local/php-5.2.6/ext/date/lib -I/usr/local/php-5.2.6/TSRM -I/usr/local/php-5.2.6/Zend -g -DCPULinux -DVER_2004_03 -DLINUX -DLittleEndian -Wall -I/usr/local/include -fPIC -fpermissive -I/usr/include -g -DCPULinux -DVER_2004_03 -DLINUX -DLittleEndian -Wall -I/usr/local/include -fPIC -prefer-non-pic -c /usr/local/php-5.2.6/ext/libxml/libxml.c -o ext/libxml/libxml.lo
cc1: warning: command line option "-fpermissive" is valid for C++/ObjC++ but not for C
In file included from /usr/local/php-5.2.6/Zend/zend.h:236,
from /usr/local/php-5.2.6/main/php.h:34,
from /usr/local/php-5.2.6/ext/libxml/libxml.c:28:
/usr/local/php-5.2.6/Zend/zend_alloc.h:34: error: syntax error before "uint"
/usr/local/php-5.2.6/Zend/zend_alloc.h:34: warning: no semicolon at end of struct or union
/usr/local/php-5.2.6/Zend/zend_alloc.h:36: error: syntax error before "orig_lineno"
/usr/local/php-5.2.6/Zend/zend_alloc.h:36: warning: type defaults to `int' in declaration of `orig_lineno'
/usr/local/php-5.2.6/Zend/zend_alloc.h:36: warning: data definition has no type or storage class
/usr/local/php-5.2.6/Zend/zend_alloc.h:37: warning: type defaults to `int' in declaration of `zend_leak_info'
/usr/local/php-5.2.6/Zend/zend_alloc.h:37: warning: data definition has no type or storage class
/usr/local/php-5.2.6/Zend/zend_alloc.h: In function `__zend_malloc':
/usr/local/php-5.2.6/Zend/zend_alloc.h:81: warning: implicit declaration of function `malloc'
/usr/local/php-5.2.6/Zend/zend_alloc.h:86: warning: implicit declaration of function `exit'
/usr/local/php-5.2.6/Zend/zend_alloc.h: In function `__zend_calloc':
/usr/local/php-5.2.6/Zend/zend_alloc.h:92: warning: implicit declaration of function `memset'
/usr/local/php-5.2.6/Zend/zend_alloc.h: In function `__zend_realloc':
/usr/local/php-5.2.6/Zend/zend_alloc.h:98: warning: implicit declaration of function `realloc'
/usr/local/php-5.2.6/Zend/zend_alloc.h:98: warning: assignment makes pointer from integer without a cast
In file included from /usr/local/php-5.2.6/Zend/zend.h:258,
from /usr/local/php-5.2.6/main/php.h:34,
from /usr/local/php-5.2.6/ext/libxml/libxml.c:28:
/usr/local/php-5.2.6/Zend/zend_hash.h: At top level:
/usr/local/php-5.2.6/Zend/zend_hash.h:129: error: syntax error before "va_list"
/usr/local/php-5.2.6/Zend/zend_hash.h: In function `zend_symtable_update':
/usr/local/php-5.2.6/Zend/zend_hash.h:339: warning: implicit declaration of function `strtol'
In file included from /usr/local/php-5.2.6/Zend/zend.h:260,
from /usr/local/php-5.2.6/main/php.h:34,
from /usr/local/php-5.2.6/ext/libxml/libxml.c:28:
/usr/local/php-5.2.6/Zend/zend_llist.h: At top level:
/usr/local/php-5.2.6/Zend/zend_llist.h:33: error: syntax error before "va_list"
In file included from /usr/local/php-5.2.6/main/php.h:34,
from /usr/local/php-5.2.6/ext/libxml/libxml.c:28:
/usr/local/php-5.2.6/Zend/zend.h:384: error: syntax error before "va_list"
/usr/local/php-5.2.6/Zend/zend.h:395: error: syntax error before "va_list"
/usr/local/php-5.2.6/Zend/zend.h:530: error: syntax error before "va_list"
/usr/local/php-5.2.6/Zend/zend.h:533: error: syntax error before "va_list"
In file included from /usr/local/php-5.2.6/Zend/zend.h:663,
from /usr/local/php-5.2.6/main/php.h:34,
from /usr/local/php-5.2.6/ext/libxml/libxml.c:28:
/usr/local/php-5.2.6/Zend/zend_operators.h: In function `is_numeric_string':
/usr/local/php-5.2.6/Zend/zend_operators.h:192: warning: implicit declaration of function `strcmp'
/usr/local/php-5.2.6/Zend/zend_operators.h: In function `zend_memnstr':
/usr/local/php-5.2.6/Zend/zend_operators.h:226: warning: implicit declaration of function `memchr'
/usr/local/php-5.2.6/Zend/zend_operators.h:227: warning: implicit declaration of function `memcmp'
In file included from /usr/local/php-5.2.6/ext/libxml/libxml.c:28:
/usr/local/php-5.2.6/main/php.h:86:1: warning: "assert" redefined
In file included from /usr/local/php-5.2.6/Zend/zend_operators.h:27,
from /usr/local/php-5.2.6/Zend/zend.h:663,
from /usr/local/php-5.2.6/main/php.h:34,
from /usr/local/php-5.2.6/ext/libxml/libxml.c:28:
/usr/include/assert.h:87:1: warning: this is the location of the previous definition
In file included from /usr/local/php-5.2.6/main/php.h:160,
from /usr/local/php-5.2.6/ext/libxml/libxml.c:28:
/usr/include/stdlib.h: At top level:
/usr/include/stdlib.h:185: error: conflicting types for 'strtol'
/usr/local/php-5.2.6/Zend/zend_hash.h:339: error: previous implicit declaration of 'strtol' was here
/usr/include/stdlib.h:595: error: conflicting types for 'realloc'
/usr/local/php-5.2.6/Zend/zend_alloc.h:98: error: previous implicit declaration of 'realloc' was here
In file included from /usr/local/php-5.2.6/main/php.h:234,
from /usr/local/php-5.2.6/ext/libxml/libxml.c:28:
/usr/local/php-5.2.6/main/snprintf.h:82: error: syntax error before "va_list"
/usr/local/php-5.2.6/main/snprintf.h:84: error: syntax error before "va_list"
In file included from /usr/local/php-5.2.6/main/php.h:236,
from /usr/local/php-5.2.6/ext/libxml/libxml.c:28:
/usr/local/php-5.2.6/main/spprintf.h:42: error: syntax error before "va_list"
In file included from /usr/local/php-5.2.6/ext/libxml/libxml.c:28:
/usr/local/php-5.2.6/main/php.h:293: error: syntax error before "va_list"
In file included from /usr/local/php-5.2.6/main/php_streams.h:431,
from /usr/local/php-5.2.6/main/php.h:399,
from /usr/local/php-5.2.6/ext/libxml/libxml.c:28:
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:81: error: syntax error before "socklen_t"
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:89: error: syntax error before "socklen_t"
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:100: error: syntax error before "socklen_t"
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:106: error: syntax error before "socklen_t"
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:144: error: syntax error before "socklen_t"
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:144: warning: no semicolon at end of struct or union
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:144: warning: no semicolon at end of struct or union
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:148: error: syntax error before '}' token
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:148: warning: type defaults to `int' in declaration of `inputs'
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:148: warning: data definition has no type or storage class
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:153: error: syntax error before "socklen_t"
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:153: warning: no semicolon at end of struct or union
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:159: error: syntax error before '}' token
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:159: warning: type defaults to `int' in declaration of `outputs'
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:159: warning: data definition has no type or storage class
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:160: error: syntax error before '}' token
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:160: warning: type defaults to `int' in declaration of `php_stream_xport_param'
/usr/local/php-5.2.6/main/streams/php_stream_transport.h:160: warning: data definition has no type or storage class
In file included from /usr/local/php-5.2.6/main/php.h:405,
from /usr/local/php-5.2.6/ext/libxml/libxml.c:28:
/usr/local/php-5.2.6/TSRM/tsrm_virtual_cwd.h:182: warning: "struct utimbuf" declared inside parameter list
/usr/local/php-5.2.6/TSRM/tsrm_virtual_cwd.h:182: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/local/php-5.2.6/ext/libxml/libxml.c: In function `php_libxml_internal_error_handler':
/usr/local/php-5.2.6/ext/libxml/libxml.c:503: warning: implicit declaration of function `memcpy'
/usr/local/php-5.2.6/ext/libxml/libxml.c: In function `zm_startup_libxml':
/usr/local/php-5.2.6/ext/libxml/libxml.c:625: warning: implicit declaration of function `strdup'
/usr/local/php-5.2.6/ext/libxml/libxml.c: In function `zif_libxml_get_last_error':
/usr/local/php-5.2.6/ext/libxml/libxml.c:753: warning: implicit declaration of function `strlen'
make: ** [ext/libxml/libxml.lo] Erro 1
O que podemos fazer agora? Fico no aguardo online te aguardando.....valuews...