Bug Report Template
Description
I’m trying ti compile old PHP-versions for a couple of older websites that need them.
Steps to Reproduce
Please provide detailed steps to reproduce the bug. Include any necessary code snippets, commands, or configuration files.
- cpcmd scope:set cp.bootstrapper php_multiphp ‘[7.4,8.1,8.2,8.4]’
- upcp -sb php/multiphp
Is this possible, do I need to install something else first?
Expected Behavior
Describe what you expected to happen when the bug occurred.
Actual Behavior
TASK [php/build-from-source : Configure PHP 7.4.33] *****************************************************************************************************************************************************************************************
changed: [localhost]
TASK [php/build-from-source : Compile PHP 7.4.33 (10+ minute wait)] *************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/gmake --jobs=8 --max-load=15.0", "msg": "/var/cache/httpd/php-7.4.33/ext/libxml/libxml.c: In function ‘php_libxml_shutdown’:\n/var/cache/httpd/php-7.4.33/ext/libxml/libxml.c:826:17: warning: ‘xmlRelaxNGCleanupTypes’ is deprecated [-Wdeprecated-declarations]\n 826 | xmlRelaxNGCleanupTypes();\n | ^~~~~~~~~~~~~~~~~~~~~~\nIn file included from /var/cache/httpd/php-7.4.33/ext/libxml/libxml.c:41:\n/usr/include/libxml2/libxml/relaxng.h:124:21: note: declared here\n 124 | xmlRelaxNGCleanupTypes (void);\n | ^~~~~~~~~~~~~~~~~~~~~~\n/var/cache/httpd/php-7.4.33/ext/libxml/libxml.c: In function ‘zif_libxml_use_internal_errors’:\n/var/cache/httpd/php-7.4.33/ext/libxml/libxml.c:1032:48: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]\n 1032 | if (current_handler && current_handler == php_libxml_structured_error_handler) {\n | ^~\n/var/cache/httpd/php-7.4.33/ext/libxml/libxml.c:1050:49: error: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from incompatible pointer type [-Wincompatible-pointer-types]\n 1050 | xmlSetStructuredErrorFunc(NULL, php_libxml_structured_error_handler);\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n | |\n | void (*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)}\nIn file included from /usr/include/libxml2/libxml/valid.h:15,\n from /usr/include/libxml2/libxml/parser.h:19,\n from /var/cache/httpd/php-7.4.33/ext/libxml/libxml.c:34:\n/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 *)’}\n 898 | xmlStructuredErrorFunc handler);\n | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~\n/var/cache/httpd/php-7.4.33/ext/libxml/libxml.c: In function ‘zif_libxml_get_last_error’:\n/var/cache/httpd/php-7.4.33/ext/libxml/libxml.c:1066:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]\n 1066 | error = xmlGetLastError();\n | ^\ngmake: *** [Makefile:758: ext/libxml/libxml.lo] Error 1\ngmake: *** Waiting for unfinished jobs....\nIn file included from /var/cache/httpd/php-7.4.33/main/php.h:441,\n from /var/cache/httpd/php-7.4.33/ext/openssl/openssl.c:28:\n/var/cache/httpd/php-7.4.33/ext/openssl/openssl.c: In function ‘zm_startup_openssl’:\n/var/cache/httpd/php-7.4.33/ext/openssl/openssl.c:1520:58: error: ‘RSA_SSLV23_PADDING’ undeclared (first use in this function); did you mean ‘RSA_NO_PADDING’?\n 1520 | REGISTER_LONG_CONSTANT(\"OPENSSL_SSLV23_PADDING\", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT);\n | ^~~~~~~~~~~~~~~~~~\n/var/cache/httpd/php-7.4.33/Zend/zend_constants.h:53:105: note: in definition of macro ‘REGISTER_LONG_CONSTANT’\n 53 | #define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)\n | ^~~~\n/var/cache/httpd/php-7.4.33/ext/openssl/openssl.c:1520:58: note: each undeclared identifier is reported only once for each function it appears in\n 1520 | REGISTER_LONG_CONSTANT(\"OPENSSL_SSLV23_PADDING\", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT);\n | ^~~~~~~~~~~~~~~~~~\n/var/cache/httpd/php-7.4.33/Zend/zend_constants.h:53:105: note: in d
Environment
Newest ApisCP, installed 4 days ago
Newest Rocky Linux 10 version
ApisCP version: cpcmd misc:cp-version
Operating System: uname -r
Additional relevant information (e.g., PHP version, database, etc.):
Additional Information
Provide any additional information about the bug, such as error messages, logs, screenshots, or any other relevant details.