Richard G
Verified User
I'm trying to install php 8.1 but on building htscanner I get a build error.
I used the global command from the docs, but same happens when I used the specific command:
Does 8.1 not support htscanner? If it does support it, can this be fixed please @smtalk
I used the global command from the docs, but same happens when I used the specific command:
./build php_htscanner2 81
Code:
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:44:1: warning: parameter names (without types) in function declaration [enabled by default]
int (*php_cgi_sapi_activate)(TSRMLS_D);
^
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:89:90: error: expected ';', ',' or ')' before 'TSRMLS_DC'
static int value_hnd(char *name, char *value, int flag, int mode, HashTable *ini_entries TSRMLS_DC)
^
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:184:66: error: expected ';', ',' or ')' before 'TSRMLS_DC'
static void parse_config_file(char *file, HashTable *ini_entries TSRMLS_DC)
^
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c: In function 'htscanner_main':
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:334:134: error: expected ')' before 'TSRMLS_CC'
if (HTG(force_default_docroot) || !sapi_module.getenv || !(doc_root = sapi_module.getenv("DOCUMENT_ROOT", sizeof("DOCUMENT_ROOT")-1 TSRMLS_CC))) {
^
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:363:28: error: 'TSRMLS_C' undeclared (first use in this function)
t = sapi_get_request_time(TSRMLS_C);
^
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:363:28: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:363:2: error: too many arguments to function 'sapi_get_request_time'
t = sapi_get_request_time(TSRMLS_C);
^
In file included from /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:29:0:
/usr/local/php81/include/php/main/SAPI.h:209:17: note: declared here
SAPI_API double sapi_get_request_time(void);
^
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:424:41: error: expected ')' before 'TSRMLS_CC'
parse_config_file(file, ini_entries TSRMLS_CC);
^
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c: In function 'sapi_cgi_activate':
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:450:25: error: 'TSRMLS_C' undeclared (first use in this function)
php_cgi_sapi_activate(TSRMLS_C);
^
make: *** [htscanner.lo] Error 1
Does 8.1 not support htscanner? If it does support it, can this be fixed please @smtalk