snuffleupagus and PHP 8.2

Beherit

Verified User
Joined
Dec 2, 2019
Messages
36
I have problem with installing snuffleupagus with PHP 8.2, logs below:
Bash:
Installing snuffleupagus-0.8.3 PHP extension for PHP 82...
              -=#=-   #    #     #
Found /usr/local/directadmin/custombuild/snuffleupagus-0.8.3.tar.gz
Extracting /usr/local/directadmin/custombuild/snuffleupagus-0.8.3.tar.gz...
Configuring for:
PHP Api Version:         20220829
Zend Module Api No:      20220829
Zend Extension Api No:   420220829
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/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
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... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr/local/php82
checking for PHP includes... -I/usr/local/php82/include/php -I/usr/local/php82/include/php/main -I/usr/local/php82/include/php/TSRM -I/usr/local/php82/include/php/Zend -I/usr/local/php82/include/php/ext -I/usr/local/php82/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php82/lib/php/extensions/no-debug-non-zts-20220829
checking for PHP installed headers prefix... /usr/local/php82/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 snuffleupagus support... yes, shared
checking whether to enable coverage support... no
checking whether to enable debug messages... no
checking whether to enable debug messages... no
checking for cc option to accept ISO C99... none needed
checking for cc option to accept ISO Standard C... (cached) none needed
checking whether C compiler accepts -Wl,-z,relro,-z,now... yes
checking for pcre_compile in -lpcre... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
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
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
Trying to make snuffleupagus-0.8.3 PHP extension...
/bin/sh /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/include -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/main -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/php82/include/php -I/usr/local/php82/include/php/main -I/usr/local/php82/include/php/TSRM -I/usr/local/php82/include/php/Zend -I/usr/local/php82/include/php/ext -I/usr/local/php82/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -Wall -Wextra -Wno-unused-parameter -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/snuffleupagus.c -o snuffleupagus.lo  -MMD -MF snuffleupagus.dep -MT snuffleupagus.lo
mkdir .libs
 cc -I. -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/include -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/main -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/php82/include/php -I/usr/local/php82/include/php/main -I/usr/local/php82/include/php/TSRM -I/usr/local/php82/include/php/Zend -I/usr/local/php82/include/php/ext -I/usr/local/php82/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -Wall -Wextra -Wno-unused-parameter -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/snuffleupagus.c -MMD -MF snuffleupagus.dep -MT snuffleupagus.lo  -fPIC -DPIC -o .libs/snuffleupagus.o
/bin/sh /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/include -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/main -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/php82/include/php -I/usr/local/php82/include/php/main -I/usr/local/php82/include/php/TSRM -I/usr/local/php82/include/php/Zend -I/usr/local/php82/include/php/ext -I/usr/local/php82/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -Wall -Wextra -Wno-unused-parameter -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/sp_config.c -o sp_config.lo  -MMD -MF sp_config.dep -MT sp_config.lo
 cc -I. -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/include -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/main -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/php82/include/php -I/usr/local/php82/include/php/main -I/usr/local/php82/include/php/TSRM -I/usr/local/php82/include/php/Zend -I/usr/local/php82/include/php/ext -I/usr/local/php82/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -Wall -Wextra -Wno-unused-parameter -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/sp_config.c -MMD -MF sp_config.dep -MT sp_config.lo  -fPIC -DPIC -o .libs/sp_config.o
/bin/sh /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/include -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/main -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/php82/include/php -I/usr/local/php82/include/php/main -I/usr/local/php82/include/php/TSRM -I/usr/local/php82/include/php/Zend -I/usr/local/php82/include/php/ext -I/usr/local/php82/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -Wall -Wextra -Wno-unused-parameter -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/sp_config_utils.c -o sp_config_utils.lo  -MMD -MF sp_config_utils.dep -MT sp_config_utils.lo
 cc -I. -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/include -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/main -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/php82/include/php -I/usr/local/php82/include/php/main -I/usr/local/php82/include/php/TSRM -I/usr/local/php82/include/php/Zend -I/usr/local/php82/include/php/ext -I/usr/local/php82/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -Wall -Wextra -Wno-unused-parameter -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/sp_config_utils.c -MMD -MF sp_config_utils.dep -MT sp_config_utils.lo  -fPIC -DPIC -o .libs/sp_config_utils.o
/bin/sh /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/include -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/main -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/php82/include/php -I/usr/local/php82/include/php/main -I/usr/local/php82/include/php/TSRM -I/usr/local/php82/include/php/Zend -I/usr/local/php82/include/php/ext -I/usr/local/php82/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -Wall -Wextra -Wno-unused-parameter -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/sp_harden_rand.c -o sp_harden_rand.lo  -MMD -MF sp_harden_rand.dep -MT sp_harden_rand.lo
 cc -I. -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/include -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/main -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/php82/include/php -I/usr/local/php82/include/php/main -I/usr/local/php82/include/php/TSRM -I/usr/local/php82/include/php/Zend -I/usr/local/php82/include/php/ext -I/usr/local/php82/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -Wall -Wextra -Wno-unused-parameter -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/sp_harden_rand.c -MMD -MF sp_harden_rand.dep -MT sp_harden_rand.lo  -fPIC -DPIC -o .libs/sp_harden_rand.o
/bin/sh /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/include -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/main -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/php82/include/php -I/usr/local/php82/include/php/main -I/usr/local/php82/include/php/TSRM -I/usr/local/php82/include/php/Zend -I/usr/local/php82/include/php/ext -I/usr/local/php82/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -Wall -Wextra -Wno-unused-parameter -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/sp_unserialize.c -o sp_unserialize.lo  -MMD -MF sp_unserialize.dep -MT sp_unserialize.lo
 cc -I. -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/include -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/main -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/php82/include/php -I/usr/local/php82/include/php/main -I/usr/local/php82/include/php/TSRM -I/usr/local/php82/include/php/Zend -I/usr/local/php82/include/php/ext -I/usr/local/php82/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -Wall -Wextra -Wno-unused-parameter -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/sp_unserialize.c -MMD -MF sp_unserialize.dep -MT sp_unserialize.lo  -fPIC -DPIC -o .libs/sp_unserialize.o
/bin/sh /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/include -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/main -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/php82/include/php -I/usr/local/php82/include/php/main -I/usr/local/php82/include/php/TSRM -I/usr/local/php82/include/php/Zend -I/usr/local/php82/include/php/ext -I/usr/local/php82/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -Wall -Wextra -Wno-unused-parameter -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/sp_utils.c -o sp_utils.lo  -MMD -MF sp_utils.dep -MT sp_utils.lo
 cc -I. -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/include -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/main -I/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src -I/usr/local/php82/include/php -I/usr/local/php82/include/php/main -I/usr/local/php82/include/php/TSRM -I/usr/local/php82/include/php/Zend -I/usr/local/php82/include/php/ext -I/usr/local/php82/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -Wall -Wextra -Wno-unused-parameter -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/sp_utils.c -MMD -MF sp_utils.dep -MT sp_utils.lo  -fPIC -DPIC -o .libs/sp_utils.o
In file included from /usr/local/php82/include/php/Zend/zend.h:33,
                 from /usr/local/php82/include/php/main/php.h:31,
                 from /usr/local/php82/include/php/main/SAPI.h:20,
                 from /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/php_snuffleupagus.h:36,
                 from /usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/sp_utils.c:1:
/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/sp_utils.c: In function 'unhook_functions':
/usr/local/php82/include/php/Zend/zend_hash.h:1265:23: error: '_p' undeclared (first use in this function); did you mean '_z'?
 1265 |     uint32_t nIndex = _p->h | __ht->nTableMask; \
      |                       ^~
/usr/local/php82/include/php/Zend/zend_hash.h:1075:2: note: in expansion of macro 'ZEND_HASH_MAP_FOREACH_END_DEL'
 1075 |  ZEND_HASH_MAP_FOREACH_END_DEL()
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/sp_utils.c:476:3: note: in expansion of macro 'ZEND_HASH_FOREACH_END_DEL'
  476 |   ZEND_HASH_FOREACH_END_DEL();
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/php82/include/php/Zend/zend_hash.h:1265:23: note: each undeclared identifier is reported only once for each function it appears in
 1265 |     uint32_t nIndex = _p->h | __ht->nTableMask; \
      |                       ^~
/usr/local/php82/include/php/Zend/zend_hash.h:1075:2: note: in expansion of macro 'ZEND_HASH_MAP_FOREACH_END_DEL'
 1075 |  ZEND_HASH_MAP_FOREACH_END_DEL()
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/snuffleupagus-0.8.3/src/sp_utils.c:476:3: note: in expansion of macro 'ZEND_HASH_FOREACH_END_DEL'
  476 |   ZEND_HASH_FOREACH_END_DEL();
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:235: sp_utils.lo] Error 1
*** The make has failed. Exiting...
 
Back
Top