homebrew-php
homebrew-php copied to clipboard
Installing from source fails on latest macos
macOS 11.6 (20G165)
brew
completely uptodate
Command: brew install [email protected] --build-from-source
==> Installing henkrehorst/php/[email protected]
==> Patching
==> ./buildconf --force
==> ./configure --prefix=/usr/local/Cellar/[email protected]/8.0.3 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/valet-php/8.0 --with-config-file-path=/usr/local/etc/valet-php/8.0 --w
==> make
Last 15 lines from /Users/ao/Library/Logs/Homebrew/[email protected]/03.make:
i = php_dns_search(handle, hostname, C_IN, DNS_T_MX, answer.qb2, sizeof answer);
^
/private/tmp/valet-phpA8.0-20211002-8947-z0imej/php-8.0.3/ext/standard/dns.c:1088:23: error: use of undeclared identifier 'handle'
php_dns_free_handle(handle);
^
/private/tmp/valet-phpA8.0-20211002-8947-z0imej/php-8.0.3/ext/standard/dns.c:1096:24: error: use of undeclared identifier 'handle'
php_dns_free_handle(handle);
^
/private/tmp/valet-phpA8.0-20211002-8947-z0imej/php-8.0.3/ext/standard/dns.c:1103:24: error: use of undeclared identifier 'handle'
php_dns_free_handle(handle);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Installing from binary fails because of the very well known 403 problem which still exists for a long time.
It seems there is no way to install valet-php any more.
Did you try this solution? - https://github.com/henkrehorst/homebrew-php/issues/151
Hi, i'm having a similar error. It's not about the --with-gd. I can't figure out what's going on. I'm getting the error when running brew install [email protected] --build-from-source
I'm running macOS Monterey Version: 12.2.1
==> Downloading https://www.php.net/distributions/php-7.4.16.tar.xz
Already downloaded: /Users/pierredenissen/Library/Caches/Homebrew/downloads/ff967f405640d725a0a1abde117930046efae202671d3469cf7f1c510fb95593--php-7.4.16.tar.xz
==> Installing [email protected] from henkrehorst/php
==> Patching
==> ./buildconf --force
==> ./configure --prefix=/usr/local/Cellar/[email protected]/7.4.16 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/valet-php/7.4 --with-config-file-path=/usr/local/etc/valet-php/7.4 --with-config-file-s
==> make
Last 15 lines from /Users/pierredenissen/Library/Logs/Homebrew/[email protected]/03.make:
make: *** [ext/intl/breakiterator/breakiterator_class.lo] Error 1
make: *** Waiting for unfinished jobs....
1 error generated.
1 error generated.
make: *** [ext/intl/breakiterator/breakiterator_methods.lo] Error 1
make: *** [ext/intl/breakiterator/codepointiterator_internal.lo] Error 1
In file included from /private/tmp/valet-phpA7.4-20220303-76037-19nnodp/php-7.4.16/ext/intl/breakiterator/codepointiterator_methods.cpp:17:
/private/tmp/valet-phpA7.4-20220303-76037-19nnodp/php-7.4.16/ext/intl/breakiterator/codepointiterator_internal.h:42:17: error: virtual function 'operator==' has a different return type ('UBool' (aka 'signed char')) than the function it overrides (which has return type 'bool')
virtual UBool operator==(const BreakIterator& that) const;
~~~~~ ^
/usr/local/Cellar/icu4c/70.1/include/unicode/brkiter.h:127:18: note: overridden virtual function is here
virtual bool operator==(const BreakIterator&) const = 0;
~~~~ ^
1 error generated.
make: *** [ext/intl/breakiterator/codepointiterator_methods.lo] Error 1
I believe a new version of icu4c is being the culprit here.
brew install [email protected] --build-from-source
==> Downloading https://www.php.net/distributions/php-7.4.16.tar.xz
Already downloaded: /Users/m/Library/Caches/Homebrew/downloads/ff967f405640d725a0a1abde117930046efae202671d3469cf7f1c510fb95593--php-7.4.16.tar.xz
==> Installing [email protected] from henkrehorst/php
==> Patching
==> ./buildconf --force
==> ./configure --prefix=/usr/local/Cellar/[email protected]/7.4.16 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/valet-php/7.4 --wi
==> make
Last 15 lines from /Users/m/Library/Logs/Homebrew/[email protected]/03.make:
/bin/sh /private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/libtool --silent --preserve-dup-deps --mode=compile clang++ -I/usr/local/Cellar/icu4c/70.1/include -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DU_HIDE_OBSOLETE_UTF_OLD_H=1 -DU_DEFINE_FALSE_AND_TRUE=1 -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -std=c++11 -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit -Iext/intl/ -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/intl/ -DPHP_ATOM_INC -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/main -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16 -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/date/lib -I/usr/local/Cellar/krb5/1.19.3/include -I/usr/local/Cellar/[email protected]/1.1.1n/include -I/usr/local/Cellar/pcre2/10.39/include -I/usr/local/Cellar/sqlite/3.38.1/include -I/usr/local/Cellar/curl/7.82.0/include -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/webp/1.2.2/include -I/usr/local/Cellar/jpeg/9e/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/opt/gettext/include -I/usr/local/opt/gmp/include -I/usr/local/Cellar/icu4c/70.1/include -I/usr/local/opt/openldap/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sasl -I/usr/local/Cellar/oniguruma/6.9.7.1/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/mbstring/libmbfl -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/mbstring/libmbfl/mbfl -I/usr/local/Cellar/unixodbc/2.3.9_1/include -I/usr/local/opt/freetds/include -I/usr/local/opt/libpq/include -I/usr/local/opt/aspell/include/pspell -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/editline -I/usr/local/Cellar/libsodium/1.0.18_1/include -I/usr/local/opt/argon2/include -I/usr/local/opt/tidy-html5/include -I/usr/local/Cellar/libzip/1.8.0_1/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/TSRM -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/Zend -no-cpp-precomp -g -O2 -c /private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/intl/calendar/calendar_class.cpp -o ext/intl/calendar/calendar_class.lo
/bin/sh /private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/libtool --silent --preserve-dup-deps --mode=compile clang++ -I/usr/local/Cellar/icu4c/70.1/include -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DU_HIDE_OBSOLETE_UTF_OLD_H=1 -DU_DEFINE_FALSE_AND_TRUE=1 -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -std=c++11 -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit -Iext/intl/ -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/intl/ -DPHP_ATOM_INC -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/main -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16 -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/date/lib -I/usr/local/Cellar/krb5/1.19.3/include -I/usr/local/Cellar/[email protected]/1.1.1n/include -I/usr/local/Cellar/pcre2/10.39/include -I/usr/local/Cellar/sqlite/3.38.1/include -I/usr/local/Cellar/curl/7.82.0/include -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/webp/1.2.2/include -I/usr/local/Cellar/jpeg/9e/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/opt/gettext/include -I/usr/local/opt/gmp/include -I/usr/local/Cellar/icu4c/70.1/include -I/usr/local/opt/openldap/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sasl -I/usr/local/Cellar/oniguruma/6.9.7.1/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/mbstring/libmbfl -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/mbstring/libmbfl/mbfl -I/usr/local/Cellar/unixodbc/2.3.9_1/include -I/usr/local/opt/freetds/include -I/usr/local/opt/libpq/include -I/usr/local/opt/aspell/include/pspell -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/editline -I/usr/local/Cellar/libsodium/1.0.18_1/include -I/usr/local/opt/argon2/include -I/usr/local/opt/tidy-html5/include -I/usr/local/Cellar/libzip/1.8.0_1/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/TSRM -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/Zend -no-cpp-precomp -g -O2 -c /private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/intl/calendar/calendar_methods.cpp -o ext/intl/calendar/calendar_methods.lo
/bin/sh /private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/libtool --silent --preserve-dup-deps --mode=compile clang++ -I/usr/local/Cellar/icu4c/70.1/include -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DU_HIDE_OBSOLETE_UTF_OLD_H=1 -DU_DEFINE_FALSE_AND_TRUE=1 -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -std=c++11 -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit -Iext/intl/ -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/intl/ -DPHP_ATOM_INC -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/main -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16 -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/date/lib -I/usr/local/Cellar/krb5/1.19.3/include -I/usr/local/Cellar/[email protected]/1.1.1n/include -I/usr/local/Cellar/pcre2/10.39/include -I/usr/local/Cellar/sqlite/3.38.1/include -I/usr/local/Cellar/curl/7.82.0/include -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/webp/1.2.2/include -I/usr/local/Cellar/jpeg/9e/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/opt/gettext/include -I/usr/local/opt/gmp/include -I/usr/local/Cellar/icu4c/70.1/include -I/usr/local/opt/openldap/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sasl -I/usr/local/Cellar/oniguruma/6.9.7.1/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/mbstring/libmbfl -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/mbstring/libmbfl/mbfl -I/usr/local/Cellar/unixodbc/2.3.9_1/include -I/usr/local/opt/freetds/include -I/usr/local/opt/libpq/include -I/usr/local/opt/aspell/include/pspell -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/editline -I/usr/local/Cellar/libsodium/1.0.18_1/include -I/usr/local/opt/argon2/include -I/usr/local/opt/tidy-html5/include -I/usr/local/Cellar/libzip/1.8.0_1/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/TSRM -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/Zend -no-cpp-precomp -g -O2 -c /private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/intl/calendar/gregoriancalendar_methods.cpp -o ext/intl/calendar/gregoriancalendar_methods.lo
/bin/sh /private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/libtool --silent --preserve-dup-deps --mode=compile clang++ -I/usr/local/Cellar/icu4c/70.1/include -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DU_HIDE_OBSOLETE_UTF_OLD_H=1 -DU_DEFINE_FALSE_AND_TRUE=1 -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -std=c++11 -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit -Iext/intl/ -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/intl/ -DPHP_ATOM_INC -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/main -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16 -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/date/lib -I/usr/local/Cellar/krb5/1.19.3/include -I/usr/local/Cellar/[email protected]/1.1.1n/include -I/usr/local/Cellar/pcre2/10.39/include -I/usr/local/Cellar/sqlite/3.38.1/include -I/usr/local/Cellar/curl/7.82.0/include -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/webp/1.2.2/include -I/usr/local/Cellar/jpeg/9e/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/opt/gettext/include -I/usr/local/opt/gmp/include -I/usr/local/Cellar/icu4c/70.1/include -I/usr/local/opt/openldap/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sasl -I/usr/local/Cellar/oniguruma/6.9.7.1/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/mbstring/libmbfl -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/mbstring/libmbfl/mbfl -I/usr/local/Cellar/unixodbc/2.3.9_1/include -I/usr/local/opt/freetds/include -I/usr/local/opt/libpq/include -I/usr/local/opt/aspell/include/pspell -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/editline -I/usr/local/Cellar/libsodium/1.0.18_1/include -I/usr/local/opt/argon2/include -I/usr/local/opt/tidy-html5/include -I/usr/local/Cellar/libzip/1.8.0_1/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/TSRM -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/Zend -no-cpp-precomp -g -O2 -c /private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/intl/breakiterator/breakiterator_class.cpp -o ext/intl/breakiterator/breakiterator_class.lo
/bin/sh /private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/libtool --silent --preserve-dup-deps --mode=compile clang++ -I/usr/local/Cellar/icu4c/70.1/include -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DU_HIDE_OBSOLETE_UTF_OLD_H=1 -DU_DEFINE_FALSE_AND_TRUE=1 -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -std=c++11 -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit -Iext/intl/ -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/intl/ -DPHP_ATOM_INC -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/main -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16 -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/date/lib -I/usr/local/Cellar/krb5/1.19.3/include -I/usr/local/Cellar/[email protected]/1.1.1n/include -I/usr/local/Cellar/pcre2/10.39/include -I/usr/local/Cellar/sqlite/3.38.1/include -I/usr/local/Cellar/curl/7.82.0/include -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/webp/1.2.2/include -I/usr/local/Cellar/jpeg/9e/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/opt/gettext/include -I/usr/local/opt/gmp/include -I/usr/local/Cellar/icu4c/70.1/include -I/usr/local/opt/openldap/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sasl -I/usr/local/Cellar/oniguruma/6.9.7.1/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/mbstring/libmbfl -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/mbstring/libmbfl/mbfl -I/usr/local/Cellar/unixodbc/2.3.9_1/include -I/usr/local/opt/freetds/include -I/usr/local/opt/libpq/include -I/usr/local/opt/aspell/include/pspell -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/editline -I/usr/local/Cellar/libsodium/1.0.18_1/include -I/usr/local/opt/argon2/include -I/usr/local/opt/tidy-html5/include -I/usr/local/Cellar/libzip/1.8.0_1/include -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/TSRM -I/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/Zend -no-cpp-precomp -g -O2 -c /private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/intl/breakiterator/breakiterator_iterators.cpp -o ext/intl/breakiterator/breakiterator_iterators.lo
In file included from /private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/intl/breakiterator/breakiterator_class.cpp:23:
/private/tmp/valet-phpA7.4-20220327-99748-1hbt4jd/php-7.4.16/ext/intl/breakiterator/codepointiterator_internal.h:42:17: error: virtual function 'operator==' has a different return type ('UBool' (aka 'signed char')) than the function it overrides (which has return type 'bool')
virtual UBool operator==(const BreakIterator& that) const;
~~~~~ ^
/usr/local/Cellar/icu4c/70.1/include/unicode/brkiter.h:127:18: note: overridden virtual function is here
virtual bool operator==(const BreakIterator&) const = 0;
~~~~ ^
1 error generated.
make: *** [ext/intl/breakiterator/breakiterator_class.lo] Error 1
make: *** Waiting for unfinished jobs....
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/henkrehorst/homebrew-php/issues
Did you try this solution? - #151
Yes, did not work
Someone posted a fix to this issue here: https://github.com/henkrehorst/homebrew-php/issues/158#issuecomment-1059516450