asdf-community/asdf-php

PHP 7.4.22 Fails with GD_X_X undeclared indentifier - Mac BigSur

jor3l opened this issue · 2 comments

jor3l commented

Trying to install on a Mac running big sur, keep getting this error and then it exits:

/var/folders/1l/vskprns16jb09p6q1srq64th0000gp/T/php-src-php-7.4.22/ext/gd/gd.c:1140:48: error: use of undeclared identifier 'GD_FLIP_HORINZONTAL'
        REGISTER_LONG_CONSTANT("IMG_FLIP_HORIZONTAL", GD_FLIP_HORINZONTAL, CONST_CS | CONST_PERSISTENT);
                                                      ^
/var/folders/1l/vskprns16jb09p6q1srq64th0000gp/T/php-src-php-7.4.22/ext/gd/gd.c:1141:46: error: use of undeclared identifier 'GD_FLIP_VERTICAL'
        REGISTER_LONG_CONSTANT("IMG_FLIP_VERTICAL", GD_FLIP_VERTICAL, CONST_CS | CONST_PERSISTENT);
                                                    ^
/var/folders/1l/vskprns16jb09p6q1srq64th0000gp/T/php-src-php-7.4.22/ext/gd/gd.c:1142:42: error: use of undeclared identifier 'GD_FLIP_BOTH'
        REGISTER_LONG_CONSTANT("IMG_FLIP_BOTH", GD_FLIP_BOTH, CONST_CS | CONST_PERSISTENT);
                                                ^
/var/folders/1l/vskprns16jb09p6q1srq64th0000gp/T/php-src-php-7.4.22/ext/gd/gd.c:4699:8: error: use of undeclared identifier 'GD_FLIP_VERTICAL'
                case GD_FLIP_VERTICAL:
                     ^
/var/folders/1l/vskprns16jb09p6q1srq64th0000gp/T/php-src-php-7.4.22/ext/gd/gd.c:4703:8: error: use of undeclared identifier 'GD_FLIP_HORINZONTAL'
                case GD_FLIP_HORINZONTAL:
                     ^
/var/folders/1l/vskprns16jb09p6q1srq64th0000gp/T/php-src-php-7.4.22/ext/gd/gd.c:4707:8: error: use of undeclared identifier 'GD_FLIP_BOTH'
                case GD_FLIP_BOTH:
                     ^
6 errors generated.
make: *** [ext/gd/gd.lo] Error 1
make: *** Waiting for unfinished jobs....

Already installed gd and the other brews recommended in the README so not sure whats wrong

jor3l commented

Solved by using --with-external-gd=no