I have FreeBSD 11.3. Htscanner builds fine on PHP 5.4, PHP 7.3 and PHP 7.4, but it does not on PHP 5.6. The error is shown below:
Code:
...
Starting php-fpm56: done
Found /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced.tgz
Extracting /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced.tgz...
Installing htscanner2-1.0.1-enhanced PHP extension for PHP 5.6...
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
autoconf: warning: both `configure.ac' and `configure.in' are present.
autoconf: warning: proceeding with `configure.ac'.
autoheader: 'configure.ac' and 'configure.in' both present.
autoheader: proceeding with 'configure.ac'
: error: invalid feature name: htscanner
./configure: as_fn_exit: not found
: error: invalid package name: php-config
./configure: as_fn_exit: not found
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... ./configure: as_fn_set_status: not found
no
checking whether clang accepts -g... ./configure: as_fn_set_status: not found
./configure: as_fn_set_status: not found
./configure: as_fn_set_status: not found
no
checking for clang option to accept ISO C89... ./configure: as_fn_set_status: not found
./configure: as_fn_set_status: not found
./configure: as_fn_set_status: not found
./configure: as_fn_set_status: not found
./configure: as_fn_set_status: not found
./configure: as_fn_set_status: not found
./configure: as_fn_set_status: not found
unsupported
checking how to run the C preprocessor... clang-cpp
./configure: as_fn_set_status: not found
./configure: as_fn_set_status: not found
: error: in `/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced':
: error: C preprocessor "clang-cpp" fails sanity check
See `config.log' for more details
./configure: as_fn_exit: not found
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... ./configure: as_fn_set_status: not found
no
checking if compiler supports -Wl,-rpath,... ./configure: as_fn_set_status: not found
no
checking build system type... x86_64-unknown-freebsd11.3
checking host system type... x86_64-unknown-freebsd11.3
checking target system type... x86_64-unknown-freebsd11.3
checking for PHP prefix... /usr/local/php56
checking for PHP includes... -I/usr/local/php56/include/php -I/usr/local/php56/include/php/main -I/usr/local/php56/include/php/TSRM -I/usr/local/php56/include/php/Zend -I/usr/local/php56/include/php/ext -I/usr/local/php56/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/php56/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable htscanner support... yes, shared
checking for a sed that does not truncate output... /usr/bin/sed
checking for non-GNU ld... /usr/local/bin/ld
checking if the linker (/usr/local/bin/ld) is GNU ld... yes
checking for /usr/local/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/local/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... ./configure: as_fn_set_status: not found
no
checking for sys/types.h... ./configure: as_fn_set_status: not found
no
checking for sys/stat.h... ./configure: as_fn_set_status: not found
no
checking for stdlib.h... ./configure: as_fn_set_status: not found
no
checking for string.h... (cached) no
checking for memory.h... (cached) no
checking for strings.h... ./configure: as_fn_set_status: not found
no
checking for inttypes.h... (cached) no
checking for stdint.h... (cached) no
checking for unistd.h... (cached) no
checking dlfcn.h usability... ./configure: as_fn_set_status: not found
no
checking dlfcn.h presence... ./configure: as_fn_set_status: not found
no
checking for dlfcn.h... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/local/bin/nm -B output from clang object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for clang option to produce PIC...
checking if clang static flag works... yes
checking if clang supports -c -o file.o... yes
checking whether the clang linker (/usr/local/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd11.3 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
appending configuration tag "CXX" to libtool
checking whether the clang++ linker (/usr/local/bin/ld) supports shared libraries... yes
checking for clang++ option to produce PIC...
checking if clang++ static flag works... yes
checking if clang++ supports -c -o file.o... yes
checking whether the clang++ linker (/usr/local/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd11.3 ld.so
(cached) (cached) checking how to hardcode library paths into programs... unsupported
: patching config.h.in
: creating ./config.status
config.status: creating config.h
Trying to make htscanner2-1.0.1-enhanced PHP extension...
/bin/sh /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/libtool --mode=compile clang -I. -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced -DPHP_ATOM_INC -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/php56/include/php -I/usr/local/php56/include/php/main -I/usr/local/php56/include/php/TSRM -I/usr/local/php56/include/php/Zend -I/usr/local/php56/include/php/ext -I/usr/local/php56/include/php/ext/date/lib -DHAVE_CONFIG_H -c /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c -o htscanner.lo
mkdir .libs
clang -I. -I/usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced -DPHP_ATOM_INC -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/php56/include/php -I/usr/local/php56/include/php/main -I/usr/local/php56/include/php/TSRM -I/usr/local/php56/include/php/Zend -I/usr/local/php56/include/php/ext -I/usr/local/php56/include/php/ext/date/lib -DHAVE_CONFIG_H -c /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/htscanner.c -DPIC -o .libs/htscanner.o
/bin/sh /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/libtool --mode=link clang -DPHP_ATOM_INC -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/php56/include/php -I/usr/local/php56/include/php/main -I/usr/local/php56/include/php/TSRM -I/usr/local/php56/include/php/Zend -I/usr/local/php56/include/php/ext -I/usr/local/php56/include/php/ext/date/lib -DHAVE_CONFIG_H -o ./htscanner.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced/modules htscanner.lo
clang -shared .libs/htscanner.o -soname htscanner.so -o ./.libs/htscanner.so
clang: error: unknown argument: '-soname'
clang: error: no such file or directory: 'htscanner.so'
*** Error code 1
Stop.
make: stopped in /usr/local/directadmin/custombuild/htscanner-1.0.1-enhanced