Bug #80474 [NEW]: Error when make

From: Date: Thu, 03 Dec 2020 03:20:47 +0000
Subject: Bug #80474 [NEW]: Error when make
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230808@lists.php.net to get a copy of this message
From:             minhhiep dot duong at gmail dot com
Operating system: CentOS 8 - 5.9.6-1.el8.elrepo.x8
PHP version:      8.0.0
Package:          Compile Failure
Bug Type:         Bug
Bug description:Error when make

Description:
------------
[root@localhost imagick-3.4.4]# make
/bin/sh /soft/imagick-3.4.4/libtool --mode=compile cc -I.
-I/soft/imagick-3.4.4 -I/soft/imagick-3.4.4/include
-I/soft/imagick-3.4.4/main -I/soft/imagick-3.4.4
-I/usr/local/php_8/include/php -I/usr/local/php_8/include/php/main
-I/usr/local/php_8/include/php/TSRM -I/usr/local/php_8/include/php/Zend
-I/usr/local/php_8/include/php/ext
-I/usr/local/php_8/include/php/ext/date/lib -I/usr/include/ImageMagick-6
 -DHAVE_CONFIG_H  -g -O0   -I/usr/include/ImageMagick-6 -fopenmp
-DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16  -c
/soft/imagick-3.4.4/imagick_file.c -o imagick_file.lo
mkdir .libs
 cc -I. -I/soft/imagick-3.4.4 -I/soft/imagick-3.4.4/include
-I/soft/imagick-3.4.4/main -I/soft/imagick-3.4.4
-I/usr/local/php_8/include/php -I/usr/local/php_8/include/php/main
-I/usr/local/php_8/include/php/TSRM -I/usr/local/php_8/include/php/Zend
-I/usr/local/php_8/include/php/ext
-I/usr/local/php_8/include/php/ext/date/lib -I/usr/include/ImageMagick-6
-DHAVE_CONFIG_H -g -O0 -I/usr/include/ImageMagick-6 -fopenmp
-DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -c
/soft/imagick-3.4.4/imagick_file.c  -fPIC -DPIC -o .libs/imagick_file.o
In file included from /soft/imagick-3.4.4/imagick_file.c:22:
/soft/imagick-3.4.4/php_imagick_file.h:61:108: error: expected ‘;’,
‘,’ or ‘)’ before ‘TSRMLS_DC’
 zend_bool php_imagick_file_init(struct php_imagick_file_t *file, const
char *filename, size_t filename_len TSRMLS_DC);
                                                                        
                                   ^~~~~~~~~
/soft/imagick-3.4.4/php_imagick_file.h:65:54: error: expected ‘;’,
‘,’ or ‘)’ before ‘TSRMLS_DC’
 int php_imagick_safe_mode_check(const char *filename TSRMLS_DC);
                                                      ^~~~~~~~~
In file included from /soft/imagick-3.4.4/imagick_file.c:22:
/soft/imagick-3.4.4/php_imagick_file.h:68:134: error: expected ‘;’,
‘,’ or ‘)’ before ‘TSRMLS_DC’
 php_imagick_rw_result_t php_imagick_read_file(php_imagick_object
*intern, struct php_imagick_file_t *file, ImagickOperationType type
TSRMLS_DC);
                                                                        
                                                             ^~~~~~~~~
/soft/imagick-3.4.4/php_imagick_file.h:71:153: error: expected ‘;’,
‘,’ or ‘)’ before ‘TSRMLS_DC’
 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);
                                                                        
                                                                        
       ^~~~~~~~~
/soft/imagick-3.4.4/php_imagick_file.h:74:112: error: expected ‘;’,
‘,’ or ‘)’ before ‘TSRMLS_DC’
 zend_bool php_imagick_stream_handler(php_imagick_object *intern,
php_stream *stream, ImagickOperationType type TSRMLS_DC);
                                                                        
                                       ^~~~~~~~~
/soft/imagick-3.4.4/imagick_file.c:81:51: error: expected ‘;’,
‘,’ or ‘)’ before ‘TSRMLS_DC’
 zend_bool php_imagick_is_url(const char *filename TSRMLS_DC)
                                                   ^~~~~~~~~
/soft/imagick-3.4.4/imagick_file.c:91:108: error: expected ‘;’,
‘,’ or ‘)’ before ‘TSRMLS_DC’
 zend_bool php_imagick_file_init(struct php_imagick_file_t *file, const
char *filename, size_t filename_len TSRMLS_DC)
                                                                        
                                   ^~~~~~~~~
/soft/imagick-3.4.4/imagick_file.c:160:133: error: expected ‘;’,
‘,’ or ‘)’ before ‘TSRMLS_DC’
 int php_imagick_read_image_using_imagemagick(php_imagick_object
*intern, struct php_imagick_file_t *file, ImagickOperationType type
TSRMLS_DC)
                                                                        
                                                            ^~~~~~~~~
/soft/imagick-3.4.4/imagick_file.c:201:133: error: expected ‘;’,
‘,’ or ‘)’ before ‘TSRMLS_DC’
 int php_imagick_read_image_using_php_streams(php_imagick_object
*intern, struct php_imagick_file_t *file, ImagickOperationType type
TSRMLS_DC)
                                                                        
                                                            ^~~~~~~~~
/soft/imagick-3.4.4/imagick_file.c:255:54: error: expected ‘;’,
‘,’ or ‘)’ before ‘TSRMLS_DC’
 int php_imagick_safe_mode_check(const char *filename TSRMLS_DC)
                                                      ^~~~~~~~~
/soft/imagick-3.4.4/imagick_file.c:269:134: error: expected ‘;’,
‘,’ or ‘)’ before ‘TSRMLS_DC’
 php_imagick_rw_result_t php_imagick_read_file(php_imagick_object
*intern, struct php_imagick_file_t *file, ImagickOperationType type
TSRMLS_DC)
                                                                        
                                                             ^~~~~~~~~
/soft/imagick-3.4.4/imagick_file.c:288:153: error: expected ‘;’,
‘,’ or ‘)’ before ‘TSRMLS_DC’
 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)
                                                                        
                                                                        
       ^~~~~~~~~
/soft/imagick-3.4.4/imagick_file.c:313:112: error: expected ‘;’,
‘,’ or ‘)’ before ‘TSRMLS_DC’
 zend_bool php_imagick_stream_handler(php_imagick_object *intern,
php_stream *stream, ImagickOperationType type TSRMLS_DC)
                                                                        
                                       ^~~~~~~~~
make: *** [Makefile:209: imagick_file.lo] Error 1

Test script:
---------------
After "./configure --build=x86_64-redhat-linux
--bindir=/usr/local/php_8/bin --sbindir=/usr/local/php_8/sbin
--libexecdir=/usr/local/php_8/libexec --libdir=/usr/local/php_8/lib64
--includedir=/usr/local/php_8/include --sysconfdir=/usr/local/php_8/etc
--with-php-config=/usr/local/php_8/bin/php-config
--with-imagick=/usr/local/php_8 --with-gnu-ld" then make and it show
error


-- 
Edit bug report at https://bugs.php.net/bug.php?id=80474&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80474&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80474&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80474&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80474&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80474&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80474&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80474&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80474&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80474&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80474&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80474&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80474&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80474&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80474&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80474&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80474&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80474&r=mysqlcfg


Thread (1 message)

  • minhhiep dot duong at gmail dot com
« previous php.bugs (#230808) next »