Forum

You are not logged in.

#1 23-06-2016 16:32:26

juliendargelos
Membre
Registered: 05-02-2013
Posts: 9

Extension PECL refuse de compiler

Bonjour,
je cherche à installer l'extension yaml pour php. J'ai suivi les recommandations de la page dédiée à l'installation d'extensions PECL. Néanmoins je ne parviens pas à compiler l'extension.
J'ai télécharger libyaml car l'extension le requiert et je parviens donc à exécuter configure ainsi:

$ ./configure --with-yaml=/home/juliendargelos/libyaml

Mais quand j'exécute make:

$ make
/bin/bash /home/juliendargelos/yaml/libtool --mode=compile cc  -I. -I/home/juliendargelos/yaml -DPHP_ATOM_INC -I/home/juliendargelos/yaml/include -I/home/juliendargelos/yaml/main -I/home/juliendargelos/yaml -I/usr/languages/php/5.6.8/include/php -I/usr/languages/php/5.6.8/include/php/main -I/usr/languages/php/5.6.8/include/php/TSRM -I/usr/languages/php/5.6.8/include/php/Zend -I/usr/languages/php/5.6.8/include/php/ext -I/usr/languages/php/5.6.8/include/php/ext/date/lib -I/home/juliendargelos/libyaml/include  -DHAVE_CONFIG_H  -g -O2   -c /home/juliendargelos/yaml/yaml.c -o yaml.lo 
mkdir .libs
 cc -I. -I/home/juliendargelos/yaml -DPHP_ATOM_INC -I/home/juliendargelos/yaml/include -I/home/juliendargelos/yaml/main -I/home/juliendargelos/yaml -I/usr/languages/php/5.6.8/include/php -I/usr/languages/php/5.6.8/include/php/main -I/usr/languages/php/5.6.8/include/php/TSRM -I/usr/languages/php/5.6.8/include/php/Zend -I/usr/languages/php/5.6.8/include/php/ext -I/usr/languages/php/5.6.8/include/php/ext/date/lib -I/home/juliendargelos/libyaml/include -DHAVE_CONFIG_H -g -O2 -c /home/juliendargelos/yaml/yaml.c  -fPIC -DPIC -o .libs/yaml.o
In file included from /home/juliendargelos/yaml/yaml.c:35:
/home/juliendargelos/yaml/php_yaml.h:56:43: error: ext/standard/php_smart_string.h: No such file or directory
/home/juliendargelos/yaml/php_yaml.h:60:33: error: Zend/zend_smart_str.h: No such file or directory
In file included from /home/juliendargelos/yaml/yaml.c:35:
/home/juliendargelos/yaml/php_yaml.h:80: error: expected specifier-qualifier-list before ‘zend_long’
In file included from /home/juliendargelos/yaml/yaml.c:36:
/home/juliendargelos/yaml/php_yaml_int.h:132: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/home/juliendargelos/yaml/php_yaml_int.h:135: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/home/juliendargelos/yaml/php_yaml_int.h:135: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/home/juliendargelos/yaml/php_yaml_int.h:153: error: expected declaration specifiers or ‘...’ before ‘zend_long’
/home/juliendargelos/yaml/yaml.c:67: error: ‘zend_yaml_globals’ has no member named ‘decode_timestamp’
/home/juliendargelos/yaml/yaml.c:69: error: ‘zend_yaml_globals’ has no member named ‘decode_php’
/home/juliendargelos/yaml/yaml.c:71: error: ‘zend_yaml_globals’ has no member named ‘output_canonical’
/home/juliendargelos/yaml/yaml.c:73: error: ‘zend_yaml_globals’ has no member named ‘output_indent’
/home/juliendargelos/yaml/yaml.c:75: error: ‘zend_yaml_globals’ has no member named ‘output_width’
/home/juliendargelos/yaml/yaml.c: In function ‘zm_globals_ctor_yaml’:
/home/juliendargelos/yaml/yaml.c:269: error: ‘zend_yaml_globals’ has no member named ‘decode_timestamp’
/home/juliendargelos/yaml/yaml.c:270: error: ‘zend_yaml_globals’ has no member named ‘decode_php’
/home/juliendargelos/yaml/yaml.c:271: error: ‘zend_yaml_globals’ has no member named ‘timestamp_decoder’
/home/juliendargelos/yaml/yaml.c:272: error: ‘zend_yaml_globals’ has no member named ‘output_canonical’
/home/juliendargelos/yaml/yaml.c:273: error: ‘zend_yaml_globals’ has no member named ‘output_indent’
/home/juliendargelos/yaml/yaml.c:274: error: ‘zend_yaml_globals’ has no member named ‘output_width’
/home/juliendargelos/yaml/yaml.c: In function ‘php_yaml_check_callbacks’:
/home/juliendargelos/yaml/yaml.c:285: error: ‘zend_string’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:285: error: (Each undeclared identifier is reported only once
/home/juliendargelos/yaml/yaml.c:285: error: for each function it appears in.)
/home/juliendargelos/yaml/yaml.c:285: error: ‘key’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:285: error: invalid operands to binary * (have ‘const struct zend_ini_entry *’ and ‘const struct zend_ini_entry *’)
/home/juliendargelos/yaml/yaml.c:287: error: expected ‘;’ before ‘{’ token
/home/juliendargelos/yaml/yaml.c: In function ‘zif_yaml_parse’:
/home/juliendargelos/yaml/yaml.c:324: error: ‘zend_string’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:324: error: ‘input’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:324: error: invalid operands to binary * (have ‘const struct zend_ini_entry *’ and ‘const struct zend_ini_entry *’)
/home/juliendargelos/yaml/yaml.c:325: error: ‘zend_long’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:325: error: expected ‘;’ before ‘pos’
/home/juliendargelos/yaml/yaml.c:331: error: expected ‘;’ before ‘ndocs’
/home/juliendargelos/yaml/yaml.c:337: error: ‘zend_yaml_globals’ has no member named ‘timestamp_decoder’
/home/juliendargelos/yaml/yaml.c:340: error: ‘pos’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:358: error: ‘zend_ini_entry’ has no member named ‘val’
/home/juliendargelos/yaml/yaml.c:358: error: ‘zend_ini_entry’ has no member named ‘len’
/home/juliendargelos/yaml/yaml.c:358: warning: passing argument 3 of ‘yaml_parser_set_input_string’ makes integer from pointer without a cast
/home/juliendargelos/yaml/yaml.c:362: error: ‘ndocs’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:362: warning: passing argument 2 of ‘php_yaml_read_all’ from incompatible pointer type
/home/juliendargelos/yaml/yaml.c:362: error: too many arguments to function ‘php_yaml_read_all’
/home/juliendargelos/yaml/yaml.c:364: warning: passing argument 2 of ‘php_yaml_read_partial’ from incompatible pointer type
/home/juliendargelos/yaml/yaml.c:364: error: too many arguments to function ‘php_yaml_read_partial’
/home/juliendargelos/yaml/yaml.c:371: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/home/juliendargelos/yaml/yaml.c:372: warning: assignment makes integer from pointer without a cast
/home/juliendargelos/yaml/yaml.c:375: error: ‘IS_UNDEF’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:375: warning: comparison between pointer and integer
/home/juliendargelos/yaml/yaml.c: In function ‘zif_yaml_parse_file’:
/home/juliendargelos/yaml/yaml.c:390: error: ‘zend_long’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:390: error: expected ‘;’ before ‘pos’
/home/juliendargelos/yaml/yaml.c:399: error: expected ‘;’ before ‘ndocs’
/home/juliendargelos/yaml/yaml.c:405: error: ‘zend_yaml_globals’ has no member named ‘timestamp_decoder’
/home/juliendargelos/yaml/yaml.c:408: error: ‘pos’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:441: error: ‘ndocs’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:441: warning: passing argument 2 of ‘php_yaml_read_all’ from incompatible pointer type
/home/juliendargelos/yaml/yaml.c:441: error: too many arguments to function ‘php_yaml_read_all’
/home/juliendargelos/yaml/yaml.c:444: warning: passing argument 2 of ‘php_yaml_read_partial’ from incompatible pointer type
/home/juliendargelos/yaml/yaml.c:444: error: too many arguments to function ‘php_yaml_read_partial’
/home/juliendargelos/yaml/yaml.c:453: warning: assignment makes integer from pointer without a cast
/home/juliendargelos/yaml/yaml.c:456: error: ‘IS_UNDEF’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:456: warning: comparison between pointer and integer
/home/juliendargelos/yaml/yaml.c: In function ‘zif_yaml_parse_url’:
/home/juliendargelos/yaml/yaml.c:471: error: ‘zend_long’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:471: error: expected ‘;’ before ‘pos’
/home/juliendargelos/yaml/yaml.c:476: error: ‘zend_string’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:476: error: ‘input’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:476: error: invalid operands to binary * (have ‘const struct zend_ini_entry *’ and ‘const struct zend_ini_entry *’)
/home/juliendargelos/yaml/yaml.c:481: error: expected ‘;’ before ‘ndocs’
/home/juliendargelos/yaml/yaml.c:487: error: ‘zend_yaml_globals’ has no member named ‘timestamp_decoder’
/home/juliendargelos/yaml/yaml.c:490: error: ‘pos’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:510:63: error: macro "php_stream_copy_to_mem" requires 4 arguments, but only 3 given
/home/juliendargelos/yaml/yaml.c:510: error: ‘php_stream_copy_to_mem’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:516: error: ‘ndocs’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:516: warning: passing argument 2 of ‘php_yaml_read_all’ from incompatible pointer type
/home/juliendargelos/yaml/yaml.c:516: error: too many arguments to function ‘php_yaml_read_all’
/home/juliendargelos/yaml/yaml.c:518: warning: passing argument 2 of ‘php_yaml_read_partial’ from incompatible pointer type
/home/juliendargelos/yaml/yaml.c:518: error: too many arguments to function ‘php_yaml_read_partial’
/home/juliendargelos/yaml/yaml.c:523: warning: passing argument 1 of ‘_efree’ discards qualifiers from pointer target type
/home/juliendargelos/yaml/yaml.c:528: warning: assignment makes integer from pointer without a cast
/home/juliendargelos/yaml/yaml.c:531: error: ‘IS_UNDEF’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:531: warning: comparison between pointer and integer
/home/juliendargelos/yaml/yaml.c: In function ‘zif_yaml_emit’:
/home/juliendargelos/yaml/yaml.c:545: error: ‘zend_long’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:545: error: expected ‘;’ before ‘encoding’
/home/juliendargelos/yaml/yaml.c:546: error: expected ‘;’ before ‘linebreak’
/home/juliendargelos/yaml/yaml.c:551: error: ‘smart_string’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:551: error: expected ‘;’ before ‘str’
/home/juliendargelos/yaml/yaml.c:554: error: ‘encoding’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:554: error: ‘linebreak’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:567: error: ‘str’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:570: error: ‘zend_yaml_globals’ has no member named ‘output_canonical’
/home/juliendargelos/yaml/yaml.c:570: warning: passing argument 2 of ‘yaml_emitter_set_canonical’ makes integer from pointer without a cast
/home/juliendargelos/yaml/yaml.c:571: error: ‘zend_yaml_globals’ has no member named ‘output_indent’
/home/juliendargelos/yaml/yaml.c:571: warning: passing argument 2 of ‘yaml_emitter_set_indent’ makes integer from pointer without a cast
/home/juliendargelos/yaml/yaml.c:572: error: ‘zend_yaml_globals’ has no member named ‘output_width’
/home/juliendargelos/yaml/yaml.c:572: warning: passing argument 2 of ‘yaml_emitter_set_width’ makes integer from pointer without a cast
/home/juliendargelos/yaml/yaml.c:578:32: error: macro "RETVAL_STRINGL" requires 3 arguments, but only 2 given
/home/juliendargelos/yaml/yaml.c:578: error: ‘RETVAL_STRINGL’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c: In function ‘zif_yaml_emit_file’:
/home/juliendargelos/yaml/yaml.c:594: error: ‘zend_string’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:594: error: ‘filename’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:594: error: invalid operands to binary * (have ‘const struct zend_ini_entry *’ and ‘const struct zend_ini_entry *’)
/home/juliendargelos/yaml/yaml.c:594: error: expected expression before ‘{’ token
/home/juliendargelos/yaml/yaml.c:598: error: ‘zend_long’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:598: error: expected ‘;’ before ‘encoding’
/home/juliendargelos/yaml/yaml.c:599: error: expected ‘;’ before ‘linebreak’
/home/juliendargelos/yaml/yaml.c:606: error: ‘encoding’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:606: error: ‘linebreak’ undeclared (first use in this function)
/home/juliendargelos/yaml/yaml.c:617: error: ‘zend_ini_entry’ has no member named ‘val’
/home/juliendargelos/yaml/yaml.c:617: warning: passing argument 1 of ‘_php_stream_open_wrapper_ex’ from incompatible pointer type
/home/juliendargelos/yaml/yaml.c:633: error: ‘zend_yaml_globals’ has no member named ‘output_canonical’
/home/juliendargelos/yaml/yaml.c:633: warning: passing argument 2 of ‘yaml_emitter_set_canonical’ makes integer from pointer without a cast
/home/juliendargelos/yaml/yaml.c:634: error: ‘zend_yaml_globals’ has no member named ‘output_indent’
/home/juliendargelos/yaml/yaml.c:634: warning: passing argument 2 of ‘yaml_emitter_set_indent’ makes integer from pointer without a cast
/home/juliendargelos/yaml/yaml.c:635: error: ‘zend_yaml_globals’ has no member named ‘output_width’
/home/juliendargelos/yaml/yaml.c:635: warning: passing argument 2 of ‘yaml_emitter_set_width’ makes integer from pointer without a cast
make: *** [yaml.lo] Error 1

Que faire alors ?

Merci de votre aide

Offline

Board footer

Powered by FluxBB