Como compilar php-5.2.6 com libxml externa ?

1. Como compilar php-5.2.6 com libxml externa ?

Newton Teixeira
NewtonJr.

(usa CentOS)

Enviado em 21/05/2008 - 14:54h

Ola pessoal, estou tenho uma grande dificuldade pra compilar os fontes do php-5.2.6 pois a libxml que vem nele está com bugs. Baixei, configurei e instalei a libxml (versão 2.6.32 do site http://xmlsoft.org/index.html) e coloquei no path /usr/local/libxml2-2.6.32 e deu tudo ok. Mas na hora de configurar o php ele vai buscar no diretorio ext/libxml e dá pau no make.

Pessoal, o como posso resolver isso? Já estou quase uma semana tentando resolver isso e não consigo. Eis text do make:

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





  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts