Opened 7 months ago
Closed 7 months ago
#69780 closed defect (duplicate)
php81-apache2handler @8.1.28_0 fails to build against current libxml2
Reported by: | murrayE | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.3 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | php81-apache2handler |
Description
During configure, I see in Terminal error:
Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled: _controlfp_s: found in php-8.1.28/config.log _controlfp: found in php-8.1.28/config.log gethostbyname_r: found in php-8.1.28/config.log
From main.log file, during build:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/ext/libxml/libxml.c:981:41: warning: comparison of distinct pointer types ('xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') and 'void (*)(void *, xmlErrorPtr)' (aka 'void (*)(void *, struct _xmlError *)')) [-Wcompare-distinct-pointer-types] :info:build if (current_handler && current_handler == php_libxml_structured_error_handler) { :info:build ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/ext/libxml/libxml.c:999:35: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types] :info:build xmlSetStructuredErrorFunc(NULL, php_libxml_structured_error_handler); :info:build ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build /opt/local/include/libxml2/libxml/xmlerror.h:898:29: note: passing argument to parameter 'handler' here :info:build xmlStructuredErrorFunc handler); :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/ext/libxml/libxml.c:1016:8: warning: assigning to 'xmlErrorPtr' (aka 'struct _xmlError *') from 'const xmlError *' (aka 'const struct _xmlError *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] :info:build error = xmlGetLastError(); :info:build ^ ~~~~~~~~~~~~~~~~~ :info:build 2 warnings and 1 error generated. :info:build /bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/libtool --silent --preserve-dup-deps --tag CC --mode=compile /usr/bin/clang -Iext/bcmath/ -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/ext/bcmath/ -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/main -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/ext/date/lib -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/TSRM -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/Zend -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fno-common -Wstrict-prototypes -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -fvisibility=hidden -DZEND_SIGNALS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/ext/bcmath/libbcmath/src -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/ext/bcmath/libbcmath/src/raisemod.c -o ext/bcmath/libbcmath/src/raisemod.lo -MMD -MF ext/bcmath/libbcmath/src/raisemod.dep -MT ext/bcmath/libbcmath/src/raisemod.lo :info:build make: *** [ext/libxml/libxml.lo] Error 1 :info:build make: *** Waiting for unfinished jobs.... :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/ext/bcmath/libbcmath/src/add.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] :info:build bc_add (n1, n2, result, scale_min) :info:build ^ :info:build 1 warning generated. :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/ext/bcmath/libbcmath/src/neg.c:43:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] :info:build bc_is_neg (num) :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/ext/bcmath/libbcmath/src/init.c:43:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] :info:build _bc_new_num_ex (length, scale, persistent) :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php81-apache2handler/work/php-8.1.28/ext/bcmath/libbcmath/src/init.c:65:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] :info:build _bc_free_num_ex (num, persistent) :info:build ^ :info:build 1 warning generated. :info:build 2 warnings generated.
Attachments (1)
Change History (2)
Changed 7 months ago by murrayE
comment:1 Changed 7 months ago by jmroot (Joshua Root)
Keywords: | sonoma arm64 removed |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Summary: | php81-apache2handler-8.1.28_0.darwin_23.arm64 build fails → php81-apache2handler @8.1.28_0 fails to build against current libxml2 |
Note: See
TracTickets for help on using
tickets.
main.log