Advertisement
Guest User

PHP 8.1 build error

a guest
May 27th, 2024
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. /home/ori/.cache/yay/php81/src/php-8.1.28/ext/libxml/libxml.c: In function ‘zif_libxml_use_internal_errors’:
  2. /home/ori/.cache/yay/php81/src/php-8.1.28/ext/libxml/libxml.c:981:48: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
  3. 981 | if (current_handler && current_handler == php_libxml_structured_error_handler) {
  4. | ^~
  5. /home/ori/.cache/yay/php81/src/php-8.1.28/ext/libxml/libxml.c:999:49: error: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from incompatible pointer type [-Wincompatible-pointer-types]
  6. 999 | xmlSetStructuredErrorFunc(NULL, php_libxml_structured_error_handler);
  7. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8. | |
  9. | void (*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)}
  10. In file included from /usr/include/libxml2/libxml/valid.h:15,
  11. from /usr/include/libxml2/libxml/parser.h:19,
  12. from /home/ori/.cache/yay/php81/src/php-8.1.28/ext/libxml/libxml.c:32:
  13. /usr/include/libxml2/libxml/xmlerror.h:898:57: note: expected ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void *, const struct _xmlError *)’} but argument is of type ‘void (*)(void *, xmlError *)’ {aka ‘void (*)(void *, struct _xmlError *)’}
  14. 898 | xmlStructuredErrorFunc handler);
  15. | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
  16. /home/ori/.cache/yay/php81/src/php-8.1.28/ext/libxml/libxml.c: In function ‘zif_libxml_get_last_error’:
  17. /home/ori/.cache/yay/php81/src/php-8.1.28/ext/libxml/libxml.c:1016:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  18. 1016 | error = xmlGetLastError();
  19. | ^
  20. make: *** [Makefile:968: ext/libxml/libxml.lo] Error 1
  21. ==> ERROR: A failure occurred in build().
  22. Aborting...
  23. -> error making: php81-exit status 4
  24. -> Failed to install the following packages. Manual intervention is required:
  25. php81 - exit status 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement