当前位置:论坛首页 > Linux面板 > 求助

【已解答】那位大神知道这是为啥啊

发表在 Linux面板6 天前 [复制链接] 1 109

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:

系统版本:PHP7.4

问题描述:在应用商店安装php7.4失败

相关截图(日志、错误):/www/server/php/74/src/ext/libxml/libxml.c:467:17: warning: ‘context’ is deprecated [-Wdeprecated-declarations]
  467 |                 ret->context = context;      |                 ^~~In file included from /usr/include/libxml2/libxml/parser.h:30,                 from /www/server/php/74/src/ext/libxml/libxml.c:34:/usr/include/libxml2/libxml/xmlIO.h:127:28: note: declared here  127 |     void*                  context XML_DEPRECATED_MEMBER;      |                            ^~~~~~~/www/server/php/74/src/ext/libxml/libxml.c:468:17: warning: ‘readcallback’ is deprecated [-Wdeprecated-declarations]  468 |                 ret->readcallback = php_libxml_streams_IO_read;      |                 ^~~/usr/include/libxml2/libxml/xmlIO.h:128:28: note: declared here  128 |     xmlInputReadCallback   readcallback XML_DEPRECATED_MEMBER;      |                            ^~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c:469:17: warning: ‘closecallback’ is deprecated [-Wdeprecated-declarations]  469 |                 ret->closecallback = php_libxml_streams_IO_close;      |                 ^~~/usr/include/libxml2/libxml/xmlIO.h:129:28: note: declared here  129 |     xmlInputCloseCallback  closecallback XML_DEPRECATED_MEMBER;      |                            ^~~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c: At top level:/www/server/php/74/src/ext/libxml/libxml.c:479:47: error: expected ‘;’, ‘,’ or ‘)’ before ‘ATTRIBUTE_UNUSED’  479 |                               int compression ATTRIBUTE_UNUSED)      |                                               ^~~~~~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c: In function ‘_php_libxml_external_entity_loader’:/www/server/php/74/src/ext/libxml/libxml.c:711:41: warning: ‘context’ is deprecated [-Wdeprecated-declarations]  711 |                                         pib->context = stream;      |                                         ^~~/usr/include/libxml2/libxml/xmlIO.h:127:28: note: declared here  127 |     void*                  context XML_DEPRECATED_MEMBER;      |                            ^~~~~~~/www/server/php/74/src/ext/libxml/libxml.c:712:41: warning: ‘readcallback’ is deprecated [-Wdeprecated-declarations]  712 |                                         pib->readcallback = php_libxml_streams_IO_read;      |                                         ^~~/usr/include/libxml2/libxml/xmlIO.h:128:28: note: declared here  128 |     xmlInputReadCallback   readcallback XML_DEPRECATED_MEMBER;      |                            ^~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c:713:41: warning: ‘closecallback’ is deprecated [-Wdeprecated-declarations]  713 |                                         pib->closecallback = php_libxml_streams_IO_close;      |                                         ^~~/usr/include/libxml2/libxml/xmlIO.h:129:28: note: declared here  129 |     xmlInputCloseCallback  closecallback XML_DEPRECATED_MEMBER;      |                            ^~~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c: In function ‘php_libxml_shutdown’:/www/server/php/74/src/ext/libxml/libxml.c:826:17: warning: ‘xmlRelaxNGCleanupTypes’ is deprecated: See https://gnome.pages.gitlab.gnome.org/libxml2/html/deprecated.html [-Wdeprecated-declarations]  826 |                 xmlRelaxNGCleanupTypes();      |                 ^~~~~~~~~~~~~~~~~~~~~~In file included from /www/server/php/74/src/ext/libxml/libxml.c:41:/usr/include/libxml2/libxml/relaxng.h:122:21: note: declared here  122 |                     xmlRelaxNGCleanupTypes      (void);      |                     ^~~~~~~~~~~~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c: In function ‘zm_startup_libxml’:/www/server/php/74/src/ext/libxml/libxml.c:920:54: error: ‘php_libxml_output_buffer_create_filename’ undeclared (first use in this function); did you mean ‘php_libxml_input_buffer_create_filename’?  920 |                 xmlOutputBufferCreateFilenameDefault(php_libxml_output_buffer_create_filename);      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      |                                                      php_libxml_input_buffer_create_filename/www/server/php/74/src/ext/libxml/libxml.c:920:54: note: each undeclared identifier is reported only once for each function it appears in/www/server/php/74/src/ext/libxml/libxml.c: In function ‘zm_activate_libxml’:/www/server/php/74/src/ext/libxml/libxml.c:933:54: error: ‘php_libxml_output_buffer_create_filename’ undeclared (first use in this function); did you mean ‘php_libxml_input_buffer_create_filename’?  933 |                 xmlOutputBufferCreateFilenameDefault(php_libxml_output_buffer_create_filename);      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      |                                                      php_libxml_input_buffer_create_filename/www/server/php/74/src/ext/libxml/libxml.c: In function ‘zif_libxml_use_internal_errors’:/www/server/php/74/src/ext/libxml/libxml.c:1032:48: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 1032 |         if (current_handler && current_handler == php_libxml_structured_error_handler) {      |                                                ^~/www/server/php/74/src/ext/libxml/libxml.c:1050:49: error: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from incompatible pointer type [-Wincompatible-pointer-types] 1050 |                 xmlSetStructuredErrorFunc(NULL, php_libxml_structured_error_handler);      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      |                                                 |      |                                                 void (*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)}In file included from /usr/include/libxml2/libxml/valid.h:19,                 from /usr/include/libxml2/libxml/parser.h:24:/usr/include/libxml2/libxml/xmlerror.h:1005:57: note: expected ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void *, const struct _xmlError *)’} but argument is of type ‘void (*)(void *, xmlError *)’ {aka ‘void (*)(void *, struct _xmlError *)’} 1005 |                                  xmlStructuredErrorFunc handler);      |                                  ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~/www/server/php/74/src/ext/libxml/libxml.c:785:21: note: ‘php_libxml_structured_error_handler’ declared here  785 | PHP_LIBXML_API void php_libxml_structured_error_handler(void *userData, xmlErrorPtr error)      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/usr/include/libxml2/libxml/xmlerror.h:953:16: note: ‘xmlStructuredErrorFunc’ declared here  953 | typedef void (*xmlStructuredErrorFunc) (void *userData, const xmlError *error);      |                ^~~~~~~~~~~~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c: In function ‘zif_libxml_get_last_error’:/www/server/php/74/src/ext/libxml/libxml.c:1066:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1066 |         error = xmlGetLastError();      |               ^/www/server/php/74/src/ext/libxml/libxml.c: At top level:/www/server/php/74/src/ext/libxml/libxml.c:387:12: warning: ‘php_libxml_streams_IO_write’ defined but not used [-Wunused-function]  387 | static int php_libxml_streams_IO_write(void *context, const char *buffer, int len)      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c:377:14: warning: ‘php_libxml_streams_IO_open_write_wrapper’ defined but not used [-Wunused-function]  377 | static void *php_libxml_streams_IO_open_write_wrapper(const char *filename)      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~make: *** [Makefile:710: ext/libxml/libxml.lo] Error 1make: *** Waiting for unfinished jobs..../bin/sh /www/server/php/74/src/libtool --silent --preserve-dup-deps --mode=link cc -DPHP_ATOM_INC -I/www/server/php/74/src/include -I/www/server/php/74/src/main -I/www/server/php/74/src -I/www/server/php/74/src/ext/date/lib -I/usr/include/libxml2 -I/usr/local/openssl/include -I/usr/local/curl/include -I/usr/include/libpng16 -I/usr/include/webp -I/usr/include/freetype2 -I/www/server/php/74/src/ext/mbstring/libmbfl -I/www/server/php/74/src/ext/mbstring/libmbfl/mbfl -I/www/server/php/74/src/TSRM -I/www/server/php/74/src/Zend    -I/usr/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS     -o ext/opcache/opcache.la -export-dynamic -avoid-version -prefer-pic -module -rpath /www/server/php/74/src/modules -L/usr/local/openssl/lib -L/usr/local/curl/lib ext/opcache/ZendAccelerator.lo ext/opcache/zend_accelerator_blacklist.lo ext/opcache/zend_accelerator_debug.lo ext/opcache/zend_accelerator_hash.lo ext/opcache/zend_accelerator_module.lo ext/opcache/zend_persist.lo ext/opcache/zend_persist_calc.lo ext/opcache/zend_file_cache.lo ext/opcache/zend_shared_alloc.lo ext/opcache/zend_accelerator_util_funcs.lo ext/opcache/shared_alloc_shm.lo ext/opcache/shared_alloc_mmap.lo ext/opcache/shared_alloc_posix.lo ext/opcache/Optimizer/zend_optimizer.lo ext/opcache/Optimizer/pass1_5.lo ext/opcache/Optimizer/pass2.lo ext/opcache/Optimizer/pass3.lo ext/opcache/Optimizer/optimize_func_calls.lo ext/opcache/Optimizer/block_pass.lo ext/opcache/Optimizer/optimize_temp_vars_5.lo ext/opcache/Optimizer/nop_removal.lo ext/opcache/Optimizer/compact_literals.lo ext/opcache/Optimizer/zend_cfg.lo ext/opcache/Optimizer/zend_dfg.lo ext/opcache/Optimizer/dfa_pass.lo ext/opcache/Optimizer/zend_ssa.lo ext/opcache/Optimizer/zend_inference.lo ext/opcache/Optimizer/zend_func_info.lo ext/opcache/Optimizer/zend_call_graph.lo ext/opcache/Optimizer/sccp.lo ext/opcache/Optimizer/scdf.lo ext/opcache/Optimizer/dce.lo ext/opcache/Optimizer/escape_analysis.lo ext/opcache/Optimizer/compact_vars.lo ext/opcache/Optimizer/zend_dump.lo -lrt/bin/sh /www/server/php/74/src/libtool --silent --preserve-dup-deps --mode=install cp ext/opcache/opcache.la /www/server/php/74/src/modules/bin/sh /www/server/php/74/src/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/libxml/ -I/www/server/php/74/src/ext/libxml/ -DPHP_ATOM_INC -I/www/server/php/74/src/include -I/www/server/php/74/src/main -I/www/server/php/74/src -I/www/server/php/74/src/ext/date/lib -I/usr/include/libxml2 -I/usr/local/openssl/include -I/usr/local/curl/include -I/usr/include/libpng16 -I/usr/include/webp -I/usr/include/freetype2 -I/www/server/php/74/src/ext/mbstring/libmbfl -I/www/server/php/74/src/ext/mbstring/libmbfl/mbfl -I/www/server/php/74/src/TSRM -I/www/server/php/74/src/Zend    -I/usr/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS   -c /www/server/php/74/src/ext/libxml/libxml.c -o ext/libxml/libxml.lo /www/server/php/74/src/ext/libxml/libxml.c: In function ‘php_libxml_input_buffer_create_filename’:/www/server/php/74/src/ext/libxml/libxml.c:467:17: warning: ‘context’ is deprecated [-Wdeprecated-declarations]  467 |                 ret->context = context;      |                 ^~~In file included from /usr/include/libxml2/libxml/parser.h:30,                 from /www/server/php/74/src/ext/libxml/libxml.c:34:/usr/include/libxml2/libxml/xmlIO.h:127:28: note: declared here  127 |     void*                  context XML_DEPRECATED_MEMBER;      |                            ^~~~~~~/www/server/php/74/src/ext/libxml/libxml.c:468:17: warning: ‘readcallback’ is deprecated [-Wdeprecated-declarations]  468 |                 ret->readcallback = php_libxml_streams_IO_read;      |                 ^~~/usr/include/libxml2/libxml/xmlIO.h:128:28: note: declared here  128 |     xmlInputReadCallback   readcallback XML_DEPRECATED_MEMBER;      |                            ^~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c:469:17: warning: ‘closecallback’ is deprecated [-Wdeprecated-declarations]  469 |                 ret->closecallback = php_libxml_streams_IO_close;      |                 ^~~/usr/include/libxml2/libxml/xmlIO.h:129:28: note: declared here  129 |     xmlInputCloseCallback  closecallback XML_DEPRECATED_MEMBER;      |                            ^~~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c: At top level:/www/server/php/74/src/ext/libxml/libxml.c:479:47: error: expected ‘;’, ‘,’ or ‘)’ before ‘ATTRIBUTE_UNUSED’  479 |                               int compression ATTRIBUTE_UNUSED)      |                                               ^~~~~~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c: In function ‘_php_libxml_external_entity_loader’:/www/server/php/74/src/ext/libxml/libxml.c:711:41: warning: ‘context’ is deprecated [-Wdeprecated-declarations]  711 |                                         pib->context = stream;      |                                         ^~~/usr/include/libxml2/libxml/xmlIO.h:127:28: note: declared here  127 |     void*                  context XML_DEPRECATED_MEMBER;      |                            ^~~~~~~/www/server/php/74/src/ext/libxml/libxml.c:712:41: warning: ‘readcallback’ is deprecated [-Wdeprecated-declarations]  712 |                                         pib->readcallback = php_libxml_streams_IO_read;      |                                         ^~~/usr/include/libxml2/libxml/xmlIO.h:128:28: note: declared here  128 |     xmlInputReadCallback   readcallback XML_DEPRECATED_MEMBER;      |                            ^~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c:713:41: warning: ‘closecallback’ is deprecated [-Wdeprecated-declarations]  713 |                                         pib->closecallback = php_libxml_streams_IO_close;      |                                         ^~~/usr/include/libxml2/libxml/xmlIO.h:129:28: note: declared here  129 |     xmlInputCloseCallback  closecallback XML_DEPRECATED_MEMBER;      |                            ^~~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c: In function ‘php_libxml_shutdown’:/www/server/php/74/src/ext/libxml/libxml.c:826:17: warning: ‘xmlRelaxNGCleanupTypes’ is deprecated: See https://gnome.pages.gitlab.gnome.org/libxml2/html/deprecated.html [-Wdeprecated-declarations]  826 |                 xmlRelaxNGCleanupTypes();      |                 ^~~~~~~~~~~~~~~~~~~~~~In file included from /www/server/php/74/src/ext/libxml/libxml.c:41:/usr/include/libxml2/libxml/relaxng.h:122:21: note: declared here  122 |                     xmlRelaxNGCleanupTypes      (void);      |                     ^~~~~~~~~~~~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c: In function ‘zm_startup_libxml’:/www/server/php/74/src/ext/libxml/libxml.c:920:54: error: ‘php_libxml_output_buffer_create_filename’ undeclared (first use in this function); did you mean ‘php_libxml_input_buffer_create_filename’?  920 |                 xmlOutputBufferCreateFilenameDefault(php_libxml_output_buffer_create_filename);      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      |                                                      php_libxml_input_buffer_create_filename/www/server/php/74/src/ext/libxml/libxml.c:920:54: note: each undeclared identifier is reported only once for each function it appears in/www/server/php/74/src/ext/libxml/libxml.c: In function ‘zm_activate_libxml’:/www/server/php/74/src/ext/libxml/libxml.c:933:54: error: ‘php_libxml_output_buffer_create_filename’ undeclared (first use in this function); did you mean ‘php_libxml_input_buffer_create_filename’?  933 |                 xmlOutputBufferCreateFilenameDefault(php_libxml_output_buffer_create_filename);      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      |                                                      php_libxml_input_buffer_create_filename/www/server/php/74/src/ext/libxml/libxml.c: In function ‘zif_libxml_use_internal_errors’:/www/server/php/74/src/ext/libxml/libxml.c:1032:48: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 1032 |         if (current_handler && current_handler == php_libxml_structured_error_handler) {      |                                                ^~/www/server/php/74/src/ext/libxml/libxml.c:1050:49: error: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from incompatible pointer type [-Wincompatible-pointer-types] 1050 |                 xmlSetStructuredErrorFunc(NULL, php_libxml_structured_error_handler);      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      |                                                 |      |                                                 void (*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)}In file included from /usr/include/libxml2/libxml/valid.h:19,                 from /usr/include/libxml2/libxml/parser.h:24:/usr/include/libxml2/libxml/xmlerror.h:1005:57: note: expected ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void *, const struct _xmlError *)’} but argument is of type ‘void (*)(void *, xmlError *)’ {aka ‘void (*)(void *, struct _xmlError *)’} 1005 |                                  xmlStructuredErrorFunc handler);      |                                  ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~/www/server/php/74/src/ext/libxml/libxml.c:785:21: note: ‘php_libxml_structured_error_handler’ declared here  785 | PHP_LIBXML_API void php_libxml_structured_error_handler(void *userData, xmlErrorPtr error)      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/usr/include/libxml2/libxml/xmlerror.h:953:16: note: ‘xmlStructuredErrorFunc’ declared here  953 | typedef void (*xmlStructuredErrorFunc) (void *userData, const xmlError *error);      |                ^~~~~~~~~~~~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c: In function ‘zif_libxml_get_last_error’:/www/server/php/74/src/ext/libxml/libxml.c:1066:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1066 |         error = xmlGetLastError();      |               ^/www/server/php/74/src/ext/libxml/libxml.c: At top level:/www/server/php/74/src/ext/libxml/libxml.c:387:12: warning: ‘php_libxml_streams_IO_write’ defined but not used [-Wunused-function]  387 | static int php_libxml_streams_IO_write(void *context, const char *buffer, int len)      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~/www/server/php/74/src/ext/libxml/libxml.c:377:14: warning: ‘php_libxml_streams_IO_open_write_wrapper’ defined but not used [-Wunused-function]  377 | static void *php_libxml_streams_IO_open_write_wrapper(const char *filename)      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~make: *** [Makefile:710: ext/libxml/libxml.lo] Error 1

使用道具 举报 只看该作者 回复
发表于 5 天前 | 显示全部楼层
您好,您的服务器操作系统是哪个发行版?
如果是debian/Ubuntu系列的
请执行下面命令
清理下过期的依赖包
  1. apt autoremove -y
复制代码
更新下当前的安装源
  1. apt update -y
复制代码
安装下缺少的依赖
  1. apt-get install libxslt1.1  libxslt1-dev libxml2 libxml2-dev
复制代码

您执行后,重新安装下Nginx、PHP、MySQL
如果是CentOS/RedHat系列
执行下面命令
  1. yum install libxslt1.1  libxslt1-dev libxml2 libxml2-dev  -y
复制代码


使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表