Bug #81471 [NEW]: compiling against GD 2.3.3 fails
| From: | s dot molenaar at m2mobi dot com | Date: | Thu, 23 Sep 2021 19:46:18 +0000 |
| Subject: | Bug #81471 [NEW]: compiling against GD 2.3.3 fails | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-236786@lists.php.net to get a copy of this message | ||
From: s dot molenaar at m2mobi dot com
Operating system: macOS
PHP version: 8.0.11
Package: Compile Failure
Bug Type: Bug
Bug description:compiling against GD 2.3.3 fails
Description:
------------
./configure
--prefix=/usr/local/Cellar/php/8.0.10
--localstatedir=/usr/local/var
--sysconfdir=/usr/local/etc/php/8.0
--with-config-file-path=/usr/local/etc/php/8.0
--with-config-file-scan-dir=/usr/local/etc/php/8.0/conf.d
--with-pear=/usr/local/Cellar/php/8.0.10/share/php/pear
--enable-bcmath
--enable-calendar
--enable-dba
--enable-exif
--enable-ftp
--enable-fpm
--enable-gd
--enable-intl
--enable-mbregex
--enable-mbstring
--enable-mysqlnd
--enable-pcntl
--enable-phpdbg
--enable-phpdbg-readline
--enable-phpdbg-webhelper
--enable-shmop
--enable-soap
--enable-sockets
--enable-sysvmsg
--enable-sysvsem
--enable-sysvshm
--with-apxs2=/usr/local/opt/httpd/bin/apxs
--with-bz2=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr
--with-curl
--with-external-gd
--with-external-pcre
--with-ffi
--with-fpm-user=_www
--with-fpm-group=_www
--with-gettext=/usr/local/opt/gettext
--with-gmp=/usr/local/opt/gmp
--with-iconv=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr
--with-kerberos
--with-layout=GNU
--with-ldap=/usr/local/opt/openldap
--with-libxml
--with-libedit
--with-mhash=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr
--with-mysql-sock=/tmp/mysql.sock
--with-mysqli=mysqlnd
--with-ndbm=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr
--with-openssl
--with-password-argon2=/usr/local/opt/argon2
--with-pdo-dblib=/usr/local/opt/freetds
--with-pdo-mysql=mysqlnd
--with-pdo-odbc=unixODBC,/usr/local/opt/unixodbc
--with-pdo-pgsql=/usr/local/opt/libpq
--with-pdo-sqlite
--with-pgsql=/usr/local/opt/libpq
--with-pic
--with-pspell=/usr/local/opt/aspell
--with-sodium
--with-sqlite3
--with-tidy=/usr/local/opt/tidy-html5
--with-unixODBC
--with-xmlrpc
--with-xsl
--with-zip
--with-zlib
--enable-dtrace
--with-ldap-sasl
--with-os-sdkpath=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
Test script:
---------------
Running make will fail
Expected result:
----------------
Successful compile
Actual result:
--------------
Last 15 lines from /Users/sean/Library/Logs/Homebrew/php/03.make:
/private/tmp/php-20210923-57446-lnptyu/php-8.0.10/ext/gd/gd.c:355:42:
error: use of undeclared identifier 'GD_FLIP_BOTH'
REGISTER_LONG_CONSTANT("IMG_FLIP_BOTH", GD_FLIP_BOTH, CONST_CS |
CONST_PERSISTENT);
^
/private/tmp/php-20210923-57446-lnptyu/php-8.0.10/ext/gd/gd.c:3529:8:
error: use of undeclared identifier 'GD_FLIP_VERTICAL'
case GD_FLIP_VERTICAL:
^
/private/tmp/php-20210923-57446-lnptyu/php-8.0.10/ext/gd/gd.c:3533:8:
error: use of undeclared identifier 'GD_FLIP_HORIZONTAL'
case GD_FLIP_HORIZONTAL:
^
/private/tmp/php-20210923-57446-lnptyu/php-8.0.10/ext/gd/gd.c:3537: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....
--
Edit bug report at https://bugs.php.net/bug.php?id=81471&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81471&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81471&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81471&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81471&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81471&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81471&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81471&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81471&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81471&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81471&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81471&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81471&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81471&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81471&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81471&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81471&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81471&r=mysqlcfg