Topic: PHP 8.0.17 - Error building from source
Hi,
I am using Remo's spec-file to build the RPMS from source, but I am having the following error with GD - even after installing Remi's latest GD and GD-devel libs (2.3.3):
In file included from /root/rpmbuild/BUILD/php-8.0.17/main/php.h:439,
from /root/rpmbuild/BUILD/php-8.0.17/ext/gd/gd.c:28:
/root/rpmbuild/BUILD/php-8.0.17/ext/gd/gd.c: In function 'zm_startup_gd':
/root/rpmbuild/BUILD/php-8.0.17/ext/gd/gd.c:353:48: error: 'GD_FLIP_HORIZONTAL' undeclared (first use in this function); did you mean 'GD_AFFINE_SHEAR_HORIZONTAL'?
REGISTER_LONG_CONSTANT("IMG_FLIP_HORIZONTAL", GD_FLIP_HORIZONTAL, CONST_CS | CONST_PERSISTENT);
^~~~~~~~~~~~~~~~~~
/root/rpmbuild/BUILD/php-8.0.17/Zend/zend_constants.h:50:105: note: in definition of macro 'REGISTER_LONG_CONSTANT'
#define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)
Any hints on how to fix? I've seen that this has been a problem for those compiling php from source, but strangely enough, I manage to compile php 8.0.17 on the same machine, and I don't get this error - I just get it when running rpmpuild -ba with php80.spec.