Trying to make htscanner2-1.0.1-enhanced PHP extension...
/bin/sh /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/include -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/main -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced -I/usr/local/php81/include/php -I/usr/local/php81/include/php/main -I/usr/local/php81/include/php/TSRM -I/usr/local/php81/include/php/Zend -I/usr/local/php81/include/php/ext -I/usr/local/php81/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c -o htscanner.lo -MMD -MF htscanner.dep -MT htscanner.lo
mkdir .libs
cc -I. -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/include -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/main -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced -I/usr/local/php81/include/php -I/usr/local/php81/include/php/main -I/usr/local/php81/include/php/TSRM -I/usr/local/php81/include/php/Zend -I/usr/local/php81/include/php/ext -I/usr/local/php81/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c -MMD -MF htscanner.dep -MT htscanner.lo -fPIC -DPIC -o .libs/htscanner.o
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:44:1: warning: parameter names (without types) in function declaration
44 | 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'
89 | 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'
184 | 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:325:12: warning: type of 'TSRMLS_D' defaults to 'int' [-Wimplicit-int]
325 | static int htscanner_main(TSRMLS_D) /* {{{ */
| ^~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:334:140: error: expected ')' before 'TSRMLS_CC'
334 | 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:35: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRMLS_D'?
363 | t = sapi_get_request_time(TSRMLS_C);
| ^~~~~~~~
| TSRMLS_D
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:363:35: 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:13: error: too many arguments to function 'sapi_get_request_time'
363 | t = sapi_get_request_time(TSRMLS_C);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:29:
/usr/local/php81/include/php/main/SAPI.h:211:17: note: declared here
211 | SAPI_API double sapi_get_request_time(void);
| ^~~~~~~~~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:424:33: warning: implicit declaration of function 'parse_config_file' [-Wimplicit-function-declaration]
424 | parse_config_file(file, ini_entries TSRMLS_CC);
| ^~~~~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:424:68: error: expected ')' before 'TSRMLS_CC'
424 | 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:444:12: warning: type of 'TSRMLS_D' defaults to 'int' [-Wimplicit-int]
444 | static int sapi_cgi_activate(TSRMLS_D)
| ^~~~~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c:450:39: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRMLS_D'?
450 | php_cgi_sapi_activate(TSRMLS_C);
| ^~~~~~~~
| TSRMLS_D
make: *** [Makefile:207: htscanner.lo] Error 1
*** The make has failed. Exiting...