Changed my server to ubuntu 22. Everything is good but I am getting error in installation of imagick (Imagemagic) in php8.3. Kindly help.
`found in /bin/pkg-config
checking if ImageMagick version is at least 6.2.4... found version 6.9.11
checking for MagickWand.h or magick-wand.h header... /usr/include/ImageMagick-6/wand/MagickWand.h
checking PHP version is at least 5.3.2... yes. found 8.3.10
libs
-lMagickWand-6.Q16 -lMagickCore-6.Q16
checking for MagickGetVersion... yes
checking for a sed that does not truncate output... /bin/sed
checking for ld used by cc... /bin/ld
checking if the linker (/bin/ld) is GNU ld... yes
checking for /bin/ld option to reload object files... -r
checking for BSD-compatible nm... /bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /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 (/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
config.status: config.h is unchanged
/bin/sh /www/server/panel/install/imagick-3.4.4/libtool --tag=CC --mode=compile cc -I. -I/www/server/panel/install/imagick-3.4.4 -I/www/server/panel/install/imagick-3.4.4/include -I/www/server/panel/install/imagick-3.4.4/main -I/www/server/panel/install/imagick-3.4.4 -I/usr/local/lsws/lsphp83/include/php -I/usr/local/lsws/lsphp83/include/php/main -I/usr/local/lsws/lsphp83/include/php/TSRM -I/usr/local/lsws/lsphp83/include/php/Zend -I/usr/local/lsws/lsphp83/include/php/ext -I/usr/local/lsws/lsphp83/include/php/ext/date/lib -I/usr/include/x86_64-linux-gnu//ImageMagick-6 -I/usr/include/ImageMagick-6 -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/x86_64-linux-gnu//ImageMagick-6 -I/usr/include/ImageMagick-6 -I/usr/include/x86_64-linux-gnu//ImageMagick-6 -I/usr/include/ImageMagick-6 -DZEND_COMPILE_DL_EXT=1 -c /www/server/panel/install/imagick-3.4.4/imagick_file.c -o imagick_file.lo -MMD -MF imagick_file.dep -MT imagick_file.lo
mkdir .libs
cc -I. -I/www/server/panel/install/imagick-3.4.4 -I/www/server/panel/install/imagick-3.4.4/include -I/www/server/panel/install/imagick-3.4.4/main -I/www/server/panel/install/imagick-3.4.4 -I/usr/local/lsws/lsphp83/include/php -I/usr/local/lsws/lsphp83/include/php/main -I/usr/local/lsws/lsphp83/include/php/TSRM -I/usr/local/lsws/lsphp83/include/php/Zend -I/usr/local/lsws/lsphp83/include/php/ext -I/usr/local/lsws/lsphp83/include/php/ext/date/lib -I/usr/include/x86_64-linux-gnu//ImageMagick-6 -I/usr/include/ImageMagick-6 -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/x86_64-linux-gnu//ImageMagick-6 -I/usr/include/ImageMagick-6 -I/usr/include/x86_64-linux-gnu//ImageMagick-6 -I/usr/include/ImageMagick-6 -DZEND_COMPILE_DL_EXT=1 -c /www/server/panel/install/imagick-3.4.4/imagick_file.c -MMD -MF imagick_file.dep -MT imagick_file.lo -fPIC -DPIC -o .libs/imagick_file.o
In file included from /www/server/panel/install/imagick-3.4.4/imagick_file.c:22:
/www/server/panel/install/imagick-3.4.4/php_imagick_file.h:61:108: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
61 | zend_bool php_imagick_file_init(struct php_imagick_file_t *file, const char *filename, size_t filename_len TSRMLS_DC);
| ~~~~~
/www/server/panel/install/imagick-3.4.4/php_imagick_file.h:65:54: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
65 | int php_imagick_safe_mode_check(const char *filename TSRMLS_DC);
| ~~~~~
In file included from /www/server/panel/install/imagick-3.4.4/imagick_file.c:22:
/www/server/panel/install/imagick-3.4.4/php_imagick_file.h:68:134: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
68 | php_imagick_rw_result_t php_imagick_read_file(php_imagick_object *intern, struct php_imagick_file_t *file, ImagickOperationType type TSRMLS_DC);
| ~~~~~
/www/server/panel/install/imagick-3.4.4/php_imagick_file.h:71:153: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
71 | php_imagick_rw_result_t php_imagick_write_file(php_imagick_object *intern, struct php_imagick_file_t *file, ImagickOperationType type, zend_bool adjoin TSRMLS_DC);
| ~~~~~
/www/server/panel/install/imagick-3.4.4/php_imagick_file.h:74:112: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
74 | zend_bool php_imagick_stream_handler(php_imagick_object *intern, php_stream *stream, ImagickOperationType type TSRMLS_DC);
| ~~~~~
/www/server/panel/install/imagick-3.4.4/imagick_file.c:81:51: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
81 | zend_bool php_imagick_is_url(const char *filename TSRMLS_DC)
| ~~~~~
/www/server/panel/install/imagick-3.4.4/imagick_file.c:91:108: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
91 | zend_bool php_imagick_file_init(struct php_imagick_file_t *file, const char *filename, size_t filename_len TSRMLS_DC)
| ~~~~~
/www/server/panel/install/imagick-3.4.4/imagick_file.c:160:133: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
160 | int php_imagick_read_image_using_imagemagick(php_imagick_object *intern, struct php_imagick_file_t *file, ImagickOperationType type TSRMLS_DC)
| ~~~~~
/www/server/panel/install/imagick-3.4.4/imagick_file.c:201:133: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
201 | int php_imagick_read_image_using_php_streams(php_imagick_object *intern, struct php_imagick_file_t *file, ImagickOperationType type TSRMLS_DC)
| ~~~~~
/www/server/panel/install/imagick-3.4.4/imagick_file.c:255:54: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
255 | int php_imagick_safe_mode_check(const char *filename TSRMLS_DC)
| ~~~~~
/www/server/panel/install/imagick-3.4.4/imagick_file.c:269:134: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
269 | php_imagick_rw_result_t php_imagick_read_file(php_imagick_object *intern, struct php_imagick_file_t *file, ImagickOperationType type TSRMLS_DC)
| ~~~~~
/www/server/panel/install/imagick-3.4.4/imagick_file.c:288:153: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
288 | php_imagick_rw_result_t php_imagick_write_file(php_imagick_object *intern, struct php_imagick_file_t *file, ImagickOperationType type, zend_bool adjoin TSRMLS_DC)
| ~~~~~
/www/server/panel/install/imagick-3.4.4/imagick_file.c:313:112: error: expected ‘;’, ‘,’ or ‘)’ before ‘TSRMLS_DC’
313 | zend_bool php_imagick_stream_handler(php_imagick_object *intern, php_stream *stream, ImagickOperationType type TSRMLS_DC)
| ~~~~~
make: *** [Makefile:210: imagick_file.lo] Error 1
error
|-Successify --- Command executed! ---`