Skip to content

php 8.1.31 make error #17269

@1265578519

Description

@1265578519

Description

php 8.1.31 make error

/bin/sh /root/php-8.1.31/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -std=gnu99 -Iext/libxml/ -I/root/php-8.1.31/ext/libxml/ -I/root/php-8.1.31/include -I/root/php-8.1.31/main -I/root/php-8.1.31 -I/root/php-8.1.31/ext/date/lib -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/include/libpng12 -I/root/php-8.1.31/ext/mbstring/libmbfl -I/root/php-8.1.31/ext/mbstring/libmbfl/mbfl -I/root/php-8.1.31/TSRM -I/root/php-8.1.31/Zend    -fno-common -Wstrict-prototypes -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS   -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /root/php-8.1.31/ext/libxml/libxml.c -o ext/libxml/libxml.lo  -MMD -MF ext/libxml/libxml.dep -MT ext/libxml/libxml.lo
In file included from /root/php-8.1.31/ext/libxml/libxml.c:43:
/root/php-8.1.31/ext/libxml/php_libxml.h: 在函数‘php_libxml_sanitize_parse_ctxt_options’中:
/root/php-8.1.31/ext/libxml/php_libxml.h:170: 错误:#pragma GCC diagnostic 不允许用在函数体中
/root/php-8.1.31/ext/libxml/php_libxml.h:170: 错误:#pragma GCC diagnostic 不允许用在函数体中
/root/php-8.1.31/ext/libxml/php_libxml.h:178: 错误:#pragma GCC diagnostic 不允许用在函数体中
make: *** [ext/libxml/libxml.lo] 错误 1

PHP Version

8.1.31

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions