Hello,
I bought the php-switcher plugin (version: 2.2.6) to have PHP 5.6 on Ubuntu 16.04 LTS, but when I execute perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl 5.6 I get the following error:
Code
- libtool: compile: x86_64-linux-gnu-gcc -I/usr/local/src/phpswitcher/php-5.6.23/ext/xmlrpc/libxmlrpc -DVERSION=0.50 -Iext/xmlrpc/ -I/usr/local/src/phpswitcher/php-5.6.23/ext/xmlrpc/ -DPHP_ATOM_INC -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/include -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/main -I/usr/local/src/phpswitcher/php-5.6.23 -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/ext/date/lib -I/usr/local/src/phpswitcher/php-5.6.23/ext/date/lib -I/usr/local/src/phpswitcher/php-5.6.23/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/enchant -I/usr/X11 -I/usr/include/freetype2 -I/usr/include/x86_64-linux-gnu -I/usr/include/c-client -I/usr/local/src/phpswitcher/php-5.6.23/ext/mbstring/libmbfl -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/ext/mbstring/libmbfl -I/usr/local/src/phpswitcher/php-5.6.23/ext/mbstring/libmbfl/mbfl -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/ext/mbstring/libmbfl/mbfl -I/usr/include/postgresql -I/usr/include/pspell -I/usr/include/tidy -I/usr/local/src/phpswitcher/php-5.6.23/ext/zip/lib -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/TSRM -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/Zend -I/usr/local/src/phpswitcher/php-5.6.23/main -I/usr/local/src/phpswitcher/php-5.6.23/Zend -I/usr/local/src/phpswitcher/php-5.6.23/TSRM -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/ -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -g -O2 -fstack-protector-strong
- -Wformat -Werror=format-security -O2 -fsigned-char -fno-strict-aliasing -c /usr/local/src/phpswitcher/php-5.6.23/ext/xmlrpc/xmlrpc-epi-php.c -fPIC -DPIC -o ext/xmlrpc/xmlrpc-epi-php.o >/dev/null 2>&1
- libtool: compile: x86_64-linux-gnu-gcc -Iext/pgsql/ -I/usr/local/src/phpswitcher/php-5.6.23/ext/pgsql/ -DPHP_ATOM_INC -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/include -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/main -I/usr/local/src/phpswitcher/php-5.6.23 -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/ext/date/lib -I/usr/local/src/phpswitcher/php-5.6.23/ext/date/lib -I/usr/local/src/phpswitcher/php-5.6.23/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/enchant -I/usr/X11 -I/usr/include/freetype2 -I/usr/include/x86_64-linux-gnu -I/usr/include/c-client -I/usr/local/src/phpswitcher/php-5.6.23/ext/mbstring/libmbfl -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/ext/mbstring/libmbfl -I/usr/local/src/phpswitcher/php-5.6.23/ext/mbstring/libmbfl/mbfl -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/ext/mbstring/libmbfl/mbfl -I/usr/include/postgresql -I/usr/include/pspell -I/usr/include/tidy -I/usr/local/src/phpswitcher/php-5.6.23/ext/zip/lib -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/TSRM -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/Zend -I/usr/local/src/phpswitcher/php-5.6.23/main -I/usr/local/src/phpswitcher/php-5.6.23/Zend -I/usr/local/src/phpswitcher/php-5.6.23/TSRM -I/usr/local/src/phpswitcher/php-5.6.23/5.6-build/ -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -O2 -fsigned-char -fno-strict-aliasing -c /usr/local/src/phpswitcher/php-5.6.23/ext/pgsql/pgsql.c -fPIC -DPIC -o ext/pgsql/pgsql.o >/dev/null 2>&1
- make[1]: Leaving directory '/usr/local/src/phpswitcher/php-5.6.23/5.6-build'
- /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/Makefile:284: recipe for target 'build-5.6-stamp' failed
- [FATAL] main::make: An error occurred while executing `install` make target for php-5.6.23: make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
- aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
- configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 3.0, min: 204, excluded: 3.0).
- ../configure: line 5439: test: too many arguments
- configure: WARNING: recode extension can not be used together with: imap
- configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: 3.0).
- /usr/local/src/phpswitcher/php-5.6.23/ext/curl/interface.c: In function ‘_php_curl_setopt’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/curl/interface.c:2674:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
- if ((type = php_memnstr(postval, ";type=", sizeof(";type=") - 1, postval + Z_STRLEN_PP(current)))) {
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/curl/interface.c:2677:21: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
- if ((filename = php_memnstr(postval, ";filename=", sizeof(";filename=") - 1, postval + Z_STRLEN_PP(current)))) {
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c: In function ‘_php_ibase_error’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c:511:2: warning: ‘isc_interprete’ is deprecated [-Wdeprecated-declarations]
- while ((s - IBG(errmsg)) < MAX_ERRMSG - (IBASE_MSGSIZE + 2) && isc_interprete(s, &statusp)) {
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/php_ibase_includes.h:24:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c:34:
- /usr/include/ibase.h:787:39: note: declared here
- ISC_LONG FB_API_DEPRECATED ISC_EXPORT isc_interprete(ISC_SCHAR*,
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c: In function ‘_php_ibase_commit_link’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c:592:26: warning: comparison between pointer and integer
- if (p->trans->handle != NULL) {
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c:600:26: warning: comparison between pointer and integer
- if (p->trans->handle != NULL) {
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c: In function ‘_php_ibase_close_link’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c:642:19: warning: comparison between pointer and integer
- if (link->handle != NULL) {
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c: In function ‘_php_ibase_close_plink’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c:657:19: warning: comparison between pointer and integer
- if (link->handle != NULL) {
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c: In function ‘_php_ibase_free_trans’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c:672:20: warning: comparison between pointer and integer
- if (trans->handle != NULL) {
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c: In function ‘_php_ibase_connect’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c:899:28: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
- isc_db_handle db_handle = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c: In function ‘zif_ibase_drop_db’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c:1110:42: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- if (l->trans != NULL) l->trans->handle = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c: In function ‘zif_ibase_trans’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c:1130:28: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
- isc_tr_handle tr_handle = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c: In function ‘_php_ibase_def_trans’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c:1291:15: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- tr->handle = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/interbase.c:1297:18: warning: comparison between pointer and integer
- if (tr->handle == NULL) {
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c: In function ‘_php_ibase_alloc_query’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c:331:17: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- ib_query->stmt = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c: In function ‘_php_ibase_bind’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c:740:29: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
- ibase_blob ib_blob = { NULL, BLOB_INPUT };
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c:740:29: note: (near initialization for ‘ib_blob.bl_handle’)
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c: In function ‘_php_ibase_exec’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c:887:7: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- tr = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c:926:32: warning: comparison between pointer and integer
- if (ib_query->trans->handle == NULL && ib_query->trans_res_id != 0) {
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c: In function ‘zif_ibase_query’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c:1103:24: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
- isc_db_handle db = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c:1104:27: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
- isc_tr_handle trans = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c:1185:19: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- ib_query.stmt = NULL; /* keep stmt when free query */
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c: In function ‘_php_ibase_fetch_hash’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c:1553:29: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- blob_handle.bl_handle = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c: In function ‘zif_ibase_execute’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c:1837:31: warning: comparison between pointer and integer
- if (ib_query->trans->handle == NULL) {
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_query.c:1844:18: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- result->stmt = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_service.c: In function ‘zif_ibase_service_attach’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_service.c:214:26: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
- isc_svc_handle handle = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c: In function ‘_php_ibase_free_event’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:48:27: warning: comparison between pointer and integer
- if (event->link->handle != NULL &&
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c: In function ‘_php_ibase_event_block’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:106:40: warning: passing argument 1 of ‘isc_event_block’ from incompatible pointer type [-Wincompatible-pointer-types]
- *l = (unsigned short) isc_event_block(event_buf, result_buf, count, events[0],
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/php_ibase_includes.h:24:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:28:
- /usr/include/ibase.h:736:28: note: expected ‘ISC_UCHAR ** {aka unsigned char **}’ but argument is of type ‘char **’
- ISC_LONG ISC_EXPORT_VARARG isc_event_block(ISC_UCHAR**,
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:106:51: warning: passing argument 2 of ‘isc_event_block’ from incompatible pointer type [-Wincompatible-pointer-types]
- *l = (unsigned short) isc_event_block(event_buf, result_buf, count, events[0],
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/php_ibase_includes.h:24:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:28:
- /usr/include/ibase.h:736:28: note: expected ‘ISC_UCHAR ** {aka unsigned char **}’ but argument is of type ‘char **’
- ISC_LONG ISC_EXPORT_VARARG isc_event_block(ISC_UCHAR**,
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:119:19: warning: passing argument 1 of ‘isc_event_counts’ from incompatible pointer type [-Wincompatible-pointer-types]
- isc_event_counts(dummy_count, *l, *event_buf, *result_buf);
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/php_ibase_includes.h:24:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:28:
- /usr/include/ibase.h:751:17: note: expected ‘ISC_ULONG * {aka unsigned int *}’ but argument is of type ‘long unsigned int *’
- void ISC_EXPORT isc_event_counts(ISC_ULONG*,
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c: In function ‘zif_ibase_wait_event’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:179:19: warning: passing argument 1 of ‘isc_event_counts’ from incompatible pointer type [-Wincompatible-pointer-types]
- isc_event_counts(occurred_event, buffer_size, event_buffer, result_buffer);
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/php_ibase_includes.h:24:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:28:
- /usr/include/ibase.h:751:17: note: expected ‘ISC_ULONG * {aka unsigned int *}’ but argument is of type ‘long unsigned int *’
- void ISC_EXPORT isc_event_counts(ISC_ULONG*,
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c: In function ‘_php_ibase_callback’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:227:21: warning: passing argument 1 of ‘isc_event_counts’ from incompatible pointer type [-Wincompatible-pointer-types]
- isc_event_counts(occurred_event, buffer_size, event->event_buffer, event->result_buffer);
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/php_ibase_includes.h:24:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:28:
- /usr/include/ibase.h:751:17: note: expected ‘ISC_ULONG * {aka unsigned int *}’ but argument is of type ‘long unsigned int *’
- void ISC_EXPORT isc_event_counts(ISC_ULONG*,
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:249:25: warning: passing argument 6 of ‘isc_que_events’ from incompatible pointer type [-Wincompatible-pointer-types]
- event->event_buffer,(isc_callback)_php_ibase_callback, (void *)event)) {
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/php_ibase_includes.h:24:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:28:
- /usr/include/ibase.h:835:23: note: expected ‘ISC_EVENT_CALLBACK {aka void (*)(void *, short unsigned int, const unsigned char *)}’ but argument is of type ‘void (*)()’
- ISC_STATUS ISC_EXPORT isc_que_events(ISC_STATUS*,
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c: In function ‘zif_ibase_set_event_handler’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:359:23: warning: passing argument 6 of ‘isc_que_events’ from incompatible pointer type [-Wincompatible-pointer-types]
- event->event_buffer,(isc_callback)_php_ibase_callback, (void *)event)) {
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/php_ibase_includes.h:24:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_events.c:28:
- /usr/include/ibase.h:835:23: note: expected ‘ISC_EVENT_CALLBACK {aka void (*)(void *, short unsigned int, const unsigned char *)}’ but argument is of type ‘void (*)()’
- ISC_STATUS ISC_EXPORT isc_que_events(ISC_STATUS*,
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c: In function ‘_php_ibase_free_blob’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:39:25: warning: comparison between pointer and integer
- if (ib_blob->bl_handle != NULL) { /* blob open*/
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c: In function ‘zif_ibase_blob_create’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:221:21: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- ib_blob->bl_handle = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c: In function ‘zif_ibase_blob_open’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:265:21: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- ib_blob->bl_handle = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c: In function ‘zif_ibase_blob_add’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:299:2: warning: ‘zend_get_parameters_ex’ is deprecated [-Wdeprecated-declarations]
- if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &blob_arg, &string_arg) == FAILURE) {
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/main/php.h:40:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:23:
- /usr/local/src/phpswitcher/php-5.6.23/Zend/zend_API.h:241:40: note: declared here
- ZEND_API ZEND_ATTRIBUTE_DEPRECATED int zend_get_parameters_ex(int param_count, ...);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c: In function ‘zif_ibase_blob_get’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:325:2: warning: ‘zend_get_parameters_ex’ is deprecated [-Wdeprecated-declarations]
- if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &blob_arg, &len_arg) == FAILURE) {
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/main/php.h:40:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:23:
- /usr/local/src/phpswitcher/php-5.6.23/Zend/zend_API.h:241:40: note: declared here
- ZEND_API ZEND_ATTRIBUTE_DEPRECATED int zend_get_parameters_ex(int param_count, ...);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c: In function ‘_php_ibase_blob_end’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:351:2: warning: ‘zend_get_parameters_ex’ is deprecated [-Wdeprecated-declarations]
- if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &blob_arg) == FAILURE) {
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/main/php.h:40:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:23:
- /usr/local/src/phpswitcher/php-5.6.23/Zend/zend_API.h:241:40: note: declared here
- ZEND_API ZEND_ATTRIBUTE_DEPRECATED int zend_get_parameters_ex(int param_count, ...);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:365:22: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- ib_blob->bl_handle = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:373:22: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- ib_blob->bl_handle = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c: In function ‘zif_ibase_blob_info’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:405:25: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
- ibase_blob ib_blob = { NULL, BLOB_INPUT };
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:405:25: note: (near initialization for ‘ib_blob.bl_handle’)
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c: In function ‘zif_ibase_blob_echo’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:481:28: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
- ibase_blob ib_blob_id = { NULL, BLOB_OUTPUT };
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:481:28: note: (near initialization for ‘ib_blob_id.bl_handle’)
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c: In function ‘zif_ibase_blob_import’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:542:25: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
- ibase_blob ib_blob = { NULL, 0 };
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/interbase/ibase_blobs.c:542:25: note: (near initialization for ‘ib_blob.bl_handle’)
- In file included from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/grapheme/grapheme_string.c:24:0:
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/grapheme/grapheme_util.h:38:14: warning: inline function ‘grapheme_memrchr_grapheme’ declared but never defined
- inline void *grapheme_memrchr_grapheme(const void *s, int c, int32_t n);
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/grapheme/grapheme_util.c:24:0:
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/grapheme/grapheme_util.h:38:14: warning: inline function ‘grapheme_memrchr_grapheme’ declared but never defined
- inline void *grapheme_memrchr_grapheme(const void *s, int c, int32_t n);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/timezone/timezone_methods.cpp: In function ‘void zif_intltz_create_time_zone_id_enumeration(int, zval*, zval**, zval*, int)’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/timezone/timezone_methods.cpp:251:16: warning: ‘int zend_get_parameters_ex(int, ...)’ is deprecated [-Wdeprecated-declarations]
- arg3isnull = zend_get_parameters_ex(3, &dummy, &dummy, &zvoffset)
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/main/php.h:40:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/timezone/../common/common_date.h:23,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/timezone/timezone_methods.cpp:28:
- /usr/local/src/phpswitcher/php-5.6.23/Zend/zend_API.h:241:40: note: declared here
- ZEND_API ZEND_ATTRIBUTE_DEPRECATED int zend_get_parameters_ex(int param_count, ...);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/timezone/timezone_methods.cpp:251:16: warning: ‘int zend_get_parameters_ex(int, ...)’ is deprecated [-Wdeprecated-declarations]
- arg3isnull = zend_get_parameters_ex(3, &dummy, &dummy, &zvoffset)
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/main/php.h:40:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/timezone/../common/common_date.h:23,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/timezone/timezone_methods.cpp:28:
- /usr/local/src/phpswitcher/php-5.6.23/Zend/zend_API.h:241:40: note: declared here
- ZEND_API ZEND_ATTRIBUTE_DEPRECATED int zend_get_parameters_ex(int param_count, ...);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/timezone/timezone_methods.cpp:251:67: warning: ‘int zend_get_parameters_ex(int, ...)’ is deprecated [-Wdeprecated-declarations]
- arg3isnull = zend_get_parameters_ex(3, &dummy, &dummy, &zvoffset)
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/main/php.h:40:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/timezone/../common/common_date.h:23,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/timezone/timezone_methods.cpp:28:
- /usr/local/src/phpswitcher/php-5.6.23/Zend/zend_API.h:241:40: note: declared here
- ZEND_API ZEND_ATTRIBUTE_DEPRECATED int zend_get_parameters_ex(int param_count, ...);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/idn/idn.c: In function ‘php_intl_idn_to’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/idn/idn.c:233:4: warning: ‘uidna_IDNToASCII_55’ is deprecated [-Wdeprecated-declarations]
- converted_ret_len = uidna_IDNToASCII(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)option, &parse_error, &status);
- ^
- In file included from /usr/include/x86_64-linux-gnu/unicode/platform.h:23:0,
- from /usr/include/x86_64-linux-gnu/unicode/ptypes.h:50,
- from /usr/include/x86_64-linux-gnu/unicode/umachine.h:44,
- from /usr/include/x86_64-linux-gnu/unicode/utypes.h:36,
- from /usr/include/x86_64-linux-gnu/unicode/uidna.h:20,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/idn/idn.c:28:
- /usr/include/x86_64-linux-gnu/unicode/uidna.h:673:1: note: declared here
- uidna_IDNToASCII( const UChar* src, int32_t srcLength,
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/idn/idn.c:235:4: warning: ‘uidna_IDNToUnicode_55’ is deprecated [-Wdeprecated-declarations]
- converted_ret_len = uidna_IDNToUnicode(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)option, &parse_error, &status);
- ^
- In file included from /usr/include/x86_64-linux-gnu/unicode/platform.h:23:0,
- from /usr/include/x86_64-linux-gnu/unicode/ptypes.h:50,
- from /usr/include/x86_64-linux-gnu/unicode/umachine.h:44,
- from /usr/include/x86_64-linux-gnu/unicode/utypes.h:36,
- from /usr/include/x86_64-linux-gnu/unicode/uidna.h:20,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/idn/idn.c:28:
- /usr/include/x86_64-linux-gnu/unicode/uidna.h:720:1: note: declared here
- uidna_IDNToUnicode( const UChar* src, int32_t srcLength,
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_methods.cpp: In function ‘void zif_breakiter_set_text(int, zval*, zval**, zval*, int)’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_methods.cpp:165:12: warning: ‘int zend_get_parameters_ex(int, ...)’ is deprecated [-Wdeprecated-declarations]
- int res = zend_get_parameters_ex(1, &textzv);
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/main/php.h:40:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_iterators.h:23,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_methods.cpp:24:
- /usr/local/src/phpswitcher/php-5.6.23/Zend/zend_API.h:241:40: note: declared here
- ZEND_API ZEND_ATTRIBUTE_DEPRECATED int zend_get_parameters_ex(int param_count, ...);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_methods.cpp:165:12: warning: ‘int zend_get_parameters_ex(int, ...)’ is deprecated [-Wdeprecated-declarations]
- int res = zend_get_parameters_ex(1, &textzv);
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/main/php.h:40:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_iterators.h:23,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_methods.cpp:24:
- /usr/local/src/phpswitcher/php-5.6.23/Zend/zend_API.h:241:40: note: declared here
- ZEND_API ZEND_ATTRIBUTE_DEPRECATED int zend_get_parameters_ex(int param_count, ...);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_methods.cpp:165:45: warning: ‘int zend_get_parameters_ex(int, ...)’ is deprecated [-Wdeprecated-declarations]
- int res = zend_get_parameters_ex(1, &textzv);
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/main/php.h:40:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_iterators.h:23,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_methods.cpp:24:
- /usr/local/src/phpswitcher/php-5.6.23/Zend/zend_API.h:241:40: note: declared here
- ZEND_API ZEND_ATTRIBUTE_DEPRECATED int zend_get_parameters_ex(int param_count, ...);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_methods.cpp: In function ‘void zif_breakiter_next(int, zval*, zval**, zval*, int)’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_methods.cpp:278:13: warning: ‘int zend_get_parameters_ex(int, ...)’ is deprecated [-Wdeprecated-declarations]
- int res = zend_get_parameters_ex(1, &arg);
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/main/php.h:40:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_iterators.h:23,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_methods.cpp:24:
- /usr/local/src/phpswitcher/php-5.6.23/Zend/zend_API.h:241:40: note: declared here
- ZEND_API ZEND_ATTRIBUTE_DEPRECATED int zend_get_parameters_ex(int param_count, ...);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_methods.cpp:278:13: warning: ‘int zend_get_parameters_ex(int, ...)’ is deprecated [-Wdeprecated-declarations]
- int res = zend_get_parameters_ex(1, &arg);
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/main/php.h:40:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_iterators.h:23,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_methods.cpp:24:
- /usr/local/src/phpswitcher/php-5.6.23/Zend/zend_API.h:241:40: note: declared here
- ZEND_API ZEND_ATTRIBUTE_DEPRECATED int zend_get_parameters_ex(int param_count, ...);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_methods.cpp:278:43: warning: ‘int zend_get_parameters_ex(int, ...)’ is deprecated [-Wdeprecated-declarations]
- int res = zend_get_parameters_ex(1, &arg);
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/main/php.h:40:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_iterators.h:23,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/intl/breakiterator/breakiterator_methods.cpp:24:
- /usr/local/src/phpswitcher/php-5.6.23/Zend/zend_API.h:241:40: note: declared here
- ZEND_API ZEND_ATTRIBUTE_DEPRECATED int zend_get_parameters_ex(int param_count, ...);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/mcrypt/mcrypt_filter.c: In function ‘php_mcrypt_filter_create’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/mcrypt/mcrypt_filter.c:210:37: warning: passing argument 1 of ‘mcrypt_module_open’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
- mcrypt_module = mcrypt_module_open(cipher, algo_dir, mode, mode_dir);
- ^
- In file included from /usr/include/mcrypt.h:4:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/mcrypt/mcrypt_filter.c:25:
- /usr/include/mutils/mcrypt.h:38:9: note: expected ‘char *’ but argument is of type ‘const char *’
- MCRYPT mcrypt_module_open(char *algorithm,
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/mssql/php_mssql.c: In function ‘php_mssql_do_connect’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/mssql/php_mssql.c:804:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
- link = (int) index_ptr->ptr;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/mssql/php_mssql.c: In function ‘php_mssql_get_column_content_without_type’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/mssql/php_mssql.c:1157:13: warning: passing argument 1 of ‘spprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
- spprintf(&res_buf, 0, "%d-%02d-%02d %02d:%02d:%02d" , dateinfo.year, dateinfo.month, dateinfo.day, dateinfo.hour, dateinfo.minute, dateinfo.second);
- ^
- In file included from /usr/local/src/phpswitcher/php-5.6.23/main/php.h:242:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/mssql/php_mssql.c:29:
- /usr/local/src/phpswitcher/php-5.6.23/main/spprintf.h:40:12: note: expected ‘char **’ but argument is of type ‘unsigned char **’
- PHPAPI int spprintf( char **pbuf, size_t max_len, const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 3, 4);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/odbc/php_odbc.c: In function ‘zif_odbc_execute’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/odbc/php_odbc.c:1409:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
- (void *)params[i-1].fp, 0,
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/odbc/php_odbc.c: In function ‘zif_odbc_cursor’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/odbc/php_odbc.c:1537:52: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
- snprintf(cursorname, max_len+1, "php_curs_%d", (int)result->stmt);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/odbc/php_odbc.c: In function ‘odbc_do_connect’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/odbc/php_odbc.c:2673:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
- conn_id = (int)index_ptr->ptr;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo/pdo_stmt.c: In function ‘really_register_bound_param’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo/pdo_stmt.c:323:30: warning: conversion lacks type at end of format [-Wformat=]
- int len = spprintf(&p, 0, "%.*H", (int) EG(precision), Z_DVAL_P(param->parameter));
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo/pdo_stmt.c:323:30: warning: too many arguments for format [-Wformat-extra-args]
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_dblib/pdo_dblib.c: In function ‘zm_startup_pdo_dblib’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_dblib/pdo_dblib.c:210:14: warning: passing argument 1 of ‘dbmsghandle’ from incompatible pointer type [-Wincompatible-pointer-types]
- dbmsghandle(msg_handler);
- ^
- In file included from /usr/include/sybfront.h:23:0,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_dblib/php_pdo_dblib_int.h:45,
- from /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_dblib/pdo_dblib.c:32:
- /usr/include/sybdb.h:725:13: note: expected ‘MHANDLEFUNC {aka int (*)(struct tds_dblib_dbprocess *, int, int, int, char *, char *, char *, int)}’ but argument is of type ‘int (*)(DBPROCESS *, DBINT, int, int, char *, char *, char *, DBUSMALLINT) {aka int (*)(struct tds_dblib_dbprocess *, int, int, int, char *, char *, char *, short unsigned int)}’
- MHANDLEFUNC dbmsghandle(MHANDLEFUNC handler);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_firebird/firebird_driver.c: In function ‘firebird_handle_preparer’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_firebird/firebird_driver.c:142:23: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
- isc_stmt_handle s = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_firebird/firebird_driver.c: In function ‘firebird_handle_doer’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_firebird/firebird_driver.c:223:25: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
- isc_stmt_handle stmt = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_firebird/firebird_statement.c: In function ‘firebird_fetch_blob’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_firebird/firebird_statement.c:226:26: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
- isc_blob_handle blobh = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_firebird/firebird_statement.c: In function ‘firebird_bind_blob’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_firebird/firebird_statement.c:415:22: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
- isc_blob_handle h = NULL;
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_odbc/pdo_odbc.c: In function ‘zm_startup_pdo_odbc’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_odbc/pdo_odbc.c:135:63: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
- SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)pdo_odbc_pool_on, 0);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_odbc/odbc_driver.c: In function ‘pdo_odbc_fetch_error_func’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_odbc/odbc_driver.c:46:24: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘SDWORD {aka int}’ [-Wformat=]
- spprintf(&message, 0, "%s (%s[%ld] at %s:%d)",
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_odbc/odbc_driver.c: In function ‘pdo_odbc_handle_factory’:
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_odbc/odbc_driver.c:412:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
- rc = SQLSetEnvAttr(H->env, SQL_ATTR_CP_MATCH, (void*)pdo_odbc_pool_mode, 0);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/pdo_odbc/odbc_driver.c:435:51: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
- rc = SQLSetConnectAttr(H->dbc, SQL_ODBC_CURSORS, (void*)cursor_lib, SQL_IS_INTEGER);
- ^
- /usr/local/src/phpswitcher/php-5.6.23/ext/tidy/tidy.c:34:20: fatal error: buffio.h: No such file or directory
- compilation terminated.
- make[1]: *** [ext/tidy/tidy.lo] Error 1
- make[1]: *** Waiting for unfinished jobs....
- make: *** [build-5.6-stamp] Error 2
regards,
thoand