It's currently impossible to brew install php-imap@7.3, it fails on ./configure step.
From what I could find, it's because the formula depends on openssl, but imap-uw already depends on openssl@1.1. When I did the build manually, I changed the --with-imap-ssl to point to openssl 1.1 dir and everything started to work just fine.
config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --with-php-config=/usr/local/opt/php/bin/php-config --with-imap=/usr/local/opt/imap-uw --with-imap-ssl=/usr/local/opt/openssl --with-kerberos
## --------- ##
## Platform. ##
## --------- ##
hostname = Ondrej-MacBook-Pro-2.local
uname -m = x86_64
uname -r = 18.7.0
uname -s = Darwin
uname -v = Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 16.00 gigabytes
Default processor set: 478 tasks, 2231 threads, 8 processors
Load average: 4.11, Mach factor: 3.88
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super
PATH: /usr/local/opt/autoconf/bin
PATH: /usr/local/opt/pkg-config/bin
PATH: /usr/local/opt/apr/bin
PATH: /usr/local/opt/openssl@1.1/bin
PATH: /usr/local/opt/apr-util/bin
PATH: /usr/local/opt/argon2/bin
PATH: /usr/local/opt/aspell/bin
PATH: /usr/local/opt/brotli/bin
PATH: /usr/local/opt/libidn/bin
PATH: /usr/local/opt/jemalloc/bin
PATH: /usr/local/opt/libevent/bin
PATH: /usr/local/opt/nghttp2/bin
PATH: /usr/local/opt/openldap/bin
PATH: /usr/local/opt/rtmpdump/bin
PATH: /usr/local/opt/curl-openssl/bin
PATH: /usr/local/opt/libtool/bin
PATH: /usr/local/opt/unixodbc/bin
PATH: /usr/local/opt/freetds/bin
PATH: /usr/local/opt/libpng/bin
PATH: /usr/local/opt/freetype/bin
PATH: /usr/local/opt/gettext/bin
PATH: /usr/local/opt/pcre/bin
PATH: /usr/local/opt/gdbm/bin
PATH: /usr/local/opt/sqlite/bin
PATH: /usr/local/opt/xz/bin
PATH: /usr/local/opt/python/bin
PATH: /usr/local/opt/glib/bin
PATH: /usr/local/opt/icu4c/bin
PATH: /usr/local/opt/jpeg/bin
PATH: /usr/local/opt/libpq/bin
PATH: /usr/local/opt/libzip/bin
PATH: /usr/local/opt/tidy-html5/bin
PATH: /usr/local/opt/libtiff/bin
PATH: /usr/local/opt/webp/bin
PATH: /usr/local/opt/php/bin
PATH: /usr/local/opt/imap-uw/bin
PATH: /usr/local/opt/openssl/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2301: checking for grep that handles long lines and -e
configure:2359: result: /usr/bin/grep
configure:2364: checking for egrep
configure:2426: result: /usr/bin/grep -E
configure:2431: checking for a sed that does not truncate output
configure:2485: result: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/sed
configure:2680: checking for C compiler version
configure:2689: clang --version >&5
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:2700: $? = 0
configure:2689: clang -v >&5
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:2700: $? = 0
configure:2689: clang -V >&5
clang: error: unsupported option '-V -isysroot'
configure:2700: $? = 1
configure:2689: clang -qversion >&5
clang: error: unknown argument '-qversion', did you mean '--version'?
configure:2700: $? = 1
configure:2720: checking whether the C compiler works
configure:2742: clang conftest.c >&5
configure:2746: $? = 0
configure:2794: result: yes
configure:2797: checking for C compiler default output file name
configure:2799: result: a.out
configure:2805: checking for suffix of executables
configure:2812: clang -o conftest conftest.c >&5
configure:2816: $? = 0
configure:2838: result:
configure:2860: checking whether we are cross compiling
configure:2868: clang -o conftest conftest.c >&5
configure:2872: $? = 0
configure:2879: ./conftest
configure:2883: $? = 0
configure:2898: result: no
configure:2903: checking for suffix of object files
configure:2925: clang -c conftest.c >&5
configure:2929: $? = 0
configure:2950: result: o
configure:2954: checking whether we are using the GNU C compiler
configure:2973: clang -c conftest.c >&5
configure:2973: $? = 0
configure:2982: result: yes
configure:2991: checking whether clang accepts -g
configure:3011: clang -c -g conftest.c >&5
configure:3011: $? = 0
configure:3052: result: yes
configure:3069: checking for clang option to accept ISO C89
configure:3132: clang -c -g -O2 conftest.c >&5
configure:3132: $? = 0
configure:3145: result: none needed
configure:3171: checking how to run the C preprocessor
configure:3202: clang -E conftest.c
configure:3202: $? = 0
configure:3216: clang -E conftest.c
conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^~~~~~~~~~~~~~~~~~
1 error generated.
configure:3216: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3241: result: clang -E
configure:3261: clang -E conftest.c
configure:3261: $? = 0
configure:3275: clang -E conftest.c
conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^~~~~~~~~~~~~~~~~~
1 error generated.
configure:3275: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3306: checking for icc
configure:3315: result: no
configure:3329: checking for suncc
configure:3338: result: no
configure:3353: checking whether clang and cc understand -c and -o together
configure:3384: clang -c conftest.c -o conftest2.o >&5
configure:3388: $? = 0
configure:3394: clang -c conftest.c -o conftest2.o >&5
configure:3398: $? = 0
configure:3409: cc -c conftest.c >&5
configure:3413: $? = 0
configure:3421: cc -c conftest.c -o conftest2.o >&5
configure:3425: $? = 0
configure:3431: cc -c conftest.c -o conftest2.o >&5
configure:3435: $? = 0
configure:3453: result: yes
configure:3467: checking for system library directory
configure:3482: result: lib
configure:3489: checking if compiler supports -R
configure:3508: clang -o conftest -g -O2 conftest.c -R /usr/lib >&5
warning: unknown remark option '-R' [-Wunknown-warning-option]
1 warning generated.
ld: can't map file, errno=22 file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3508: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3518: result: no
configure:3523: checking if compiler supports -Wl,-rpath,
configure:3542: clang -o conftest -g -O2 conftest.c -Wl,-rpath,/usr/lib >&5
configure:3542: $? = 0
configure:3552: result: yes
configure:3597: checking build system type
configure:3611: result: x86_64-apple-darwin18.7.0
configure:3631: checking host system type
configure:3644: result: x86_64-apple-darwin18.7.0
configure:3664: checking target system type
configure:3677: result: x86_64-apple-darwin18.7.0
configure:3780: checking for PHP prefix
configure:3782: result: /usr/local/Cellar/php/7.3.9_1
configure:3784: checking for PHP includes
configure:3786: result: -I/usr/local/Cellar/php/7.3.9_1/include/php -I/usr/local/Cellar/php/7.3.9_1/include/php/main -I/usr/local/Cellar/php/7.3.9_1/include/php/TSRM -I/usr/local/Cellar/php/7.3.9_1/include/php/Zend -I/usr/local/Cellar/php/7.3.9_1/include/php/ext -I/usr/local/Cellar/php/7.3.9_1/include/php/ext/date/lib
configure:3788: checking for PHP extension directory
configure:3790: result: /usr/local/Cellar/php/7.3.9_1/pecl/20180731
configure:3792: checking for PHP installed headers prefix
configure:3794: result: /usr/local/Cellar/php/7.3.9_1/include/php
configure:3797: checking if debug is enabled
configure:3823: result: no
configure:3826: checking if zts is enabled
configure:3852: result: no
configure:3923: checking for re2c
configure:3953: result: no
configure:3978: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure:3992: checking for gawk
configure:4023: result: no
configure:3992: checking for nawk
configure:4023: result: no
configure:3992: checking for awk
configure:4009: found /usr/bin/awk
configure:4020: result: awk
configure:4043: checking if awk is broken
configure:4050: result: no
configure:4075: checking for IMAP support
configure:4115: result: yes, shared
configure:4124: checking for IMAP Kerberos support
configure:4139: result: yes
configure:4148: checking for IMAP SSL support
configure:4163: result: /usr/local/opt/openssl
configure:4517: checking for utf8_mime2text signature
configure:4539: clang -c -I/usr/local/opt/imap-uw/include/imap conftest.c >&5
conftest.c:22:32: error: too few arguments to function call, expected 3, have 2
utf8_mime2text(src, dst);
~~~~~~~~~~~~~~ ^
/usr/local/opt/imap-uw/include/imap/utf8aux.h:37:1: note: 'utf8_mime2text' declared here
long utf8_mime2text (SIZEDTEXT *src,SIZEDTEXT *dst,long flags);
^
1 error generated.
configure:4539: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define COMPILE_DL_IMAP 1
| #define HAVE_IMAP 1
| #define HAVE_IMAP2000 1
| #define HAVE_IMAP2004 1
| /* end confdefs.h. */
|
| #include <stdio.h>
| #include <c-client.h>
|
| int
| main ()
| {
|
| SIZEDTEXT *src, *dst;
| utf8_mime2text(src, dst);
|
| ;
| return 0;
| }
configure:4551: result: new
configure:4562: checking for U8T_DECOMPOSE
configure:4582: clang -c -I/usr/local/opt/imap-uw/include/imap conftest.c >&5
configure:4582: $? = 0
configure:4594: result: yes
configure:4727: checking for pam_start in -lpam
configure:4752: clang -o conftest -g -O2 conftest.c -lpam >&5
configure:4752: $? = 0
configure:4761: result: yes
configure:4905: checking for crypt in -lcrypt
configure:4930: clang -o conftest -g -O2 conftest.c -lcrypt >&5
ld: library not found for -lcrypt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:4930: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define COMPILE_DL_IMAP 1
| #define HAVE_IMAP 1
| #define HAVE_IMAP2000 1
| #define HAVE_IMAP2004 1
| #define HAVE_NEW_MIME2TEXT 1
| #define HAVE_LIBPAM 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char crypt ();
| int
| main ()
| {
| return crypt ();
| ;
| return 0;
| }
configure:4939: result: no
configure:5136: checking for krb5-config
configure:5155: found /usr/bin/krb5-config
configure:5168: result: /usr/bin/krb5-config
configure:5566: checking for pkg-config
configure:5584: found /usr/local/opt/pkg-config/bin/pkg-config
configure:5597: result: /usr/local/opt/pkg-config/bin/pkg-config
configure:5786: checking for OpenSSL version
configure:5800: result: >= 1.0.1
configure:5949: checking for CRYPTO_free in -lcrypto
configure:5974: clang -o conftest -g -O2 -Wl,-rpath,/usr/local/opt/openssl/lib -L/usr/local/opt/openssl/lib conftest.c -lcrypto >&5
configure:5974: $? = 0
configure:5983: result: yes
configure:6130: checking for SSL_CTX_set_ssl_version in -lssl
configure:6155: clang -o conftest -g -O2 -Wl,-rpath,/usr/local/opt/openssl/lib -L/usr/local/opt/openssl/lib conftest.c -lssl -lcrypto >&5
configure:6155: $? = 0
configure:6164: result: yes
configure:6359: clang -o conftest -g -O2 conftest.c -Wl,-rpath,/usr/local/opt/openssl/lib -L/usr/local/opt/openssl/lib -lcrypto -lssl -lcrypto -Wl,-rpath,/usr/local/opt/imap-uw/lib -L/usr/local/opt/imap-uw/lib -lc-client -lpam -lkrb5 >&5
Undefined symbols for architecture x86_64:
"_OPENSSL_init_crypto", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
"_OPENSSL_init_ssl", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
_ssl_onceonlyinit in libc-client.a(osdep.o)
"_SSL_CTX_set_options", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
_ssl_start in libc-client.a(osdep.o)
"_SSL_in_init", referenced from:
_ssl_start in libc-client.a(osdep.o)
"_TLS_client_method", referenced from:
_ssl_start in libc-client.a(osdep.o)
"_TLS_server_method", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:6359: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define COMPILE_DL_IMAP 1
| #define HAVE_IMAP 1
| #define HAVE_IMAP2000 1
| #define HAVE_IMAP2004 1
| #define HAVE_NEW_MIME2TEXT 1
| #define HAVE_LIBPAM 1
| #define HAVE_IMAP_KRB 1
| #define HAVE_IMAP_SSL 1
| /* end confdefs.h. */
|
|
|
| #if defined(__GNUC__) && __GNUC__ >= 4
| # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
| #else
| # define PHP_IMAP_EXPORT
| #endif
|
| PHP_IMAP_EXPORT void mm_log(void){}
| PHP_IMAP_EXPORT void mm_dlog(void){}
| PHP_IMAP_EXPORT void mm_flags(void){}
| PHP_IMAP_EXPORT void mm_fatal(void){}
| PHP_IMAP_EXPORT void mm_critical(void){}
| PHP_IMAP_EXPORT void mm_nocritical(void){}
| PHP_IMAP_EXPORT void mm_notify(void){}
| PHP_IMAP_EXPORT void mm_login(void){}
| PHP_IMAP_EXPORT void mm_diskerror(void){}
| PHP_IMAP_EXPORT void mm_status(void){}
| PHP_IMAP_EXPORT void mm_lsub(void){}
| PHP_IMAP_EXPORT void mm_list(void){}
| PHP_IMAP_EXPORT void mm_exists(void){}
| PHP_IMAP_EXPORT void mm_searched(void){}
| PHP_IMAP_EXPORT void mm_expunged(void){}
|
| char auth_gssapi_valid();
| int main() {
| auth_gssapi_valid();
| return 0;
| }
|
configure:6426: clang -o conftest -g -O2 conftest.c -Wl,-rpath,/usr/local/opt/openssl/lib -L/usr/local/opt/openssl/lib -lcrypto -lssl -lcrypto -Wl,-rpath,/usr/local/opt/imap-uw/lib -L/usr/local/opt/imap-uw/lib -lc-client -lpam -lkrb5 >&5
conftest.c:19:40: warning: implicit declaration of function 'utf8_to_mutf7' is invalid in C99 [-Wimplicit-function-declaration]
char utf8_to_mutf7_php(){ return utf8_to_mutf7(""); }
^
1 warning generated.
Undefined symbols for architecture x86_64:
"_OPENSSL_init_crypto", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
"_OPENSSL_init_ssl", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
_ssl_onceonlyinit in libc-client.a(osdep.o)
"_SSL_CTX_set_options", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
_ssl_start in libc-client.a(osdep.o)
"_SSL_in_init", referenced from:
_ssl_start in libc-client.a(osdep.o)
"_TLS_client_method", referenced from:
_ssl_start in libc-client.a(osdep.o)
"_TLS_server_method", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:6426: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define COMPILE_DL_IMAP 1
| #define HAVE_IMAP 1
| #define HAVE_IMAP2000 1
| #define HAVE_IMAP2004 1
| #define HAVE_NEW_MIME2TEXT 1
| #define HAVE_LIBPAM 1
| #define HAVE_IMAP_KRB 1
| #define HAVE_IMAP_SSL 1
| /* end confdefs.h. */
|
|
| char utf8_to_mutf7_php(){ return utf8_to_mutf7(""); }
|
|
| #if defined(__GNUC__) && __GNUC__ >= 4
| # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
| #else
| # define PHP_IMAP_EXPORT
| #endif
|
| PHP_IMAP_EXPORT void mm_log(void){}
| PHP_IMAP_EXPORT void mm_dlog(void){}
| PHP_IMAP_EXPORT void mm_flags(void){}
| PHP_IMAP_EXPORT void mm_fatal(void){}
| PHP_IMAP_EXPORT void mm_critical(void){}
| PHP_IMAP_EXPORT void mm_nocritical(void){}
| PHP_IMAP_EXPORT void mm_notify(void){}
| PHP_IMAP_EXPORT void mm_login(void){}
| PHP_IMAP_EXPORT void mm_diskerror(void){}
| PHP_IMAP_EXPORT void mm_status(void){}
| PHP_IMAP_EXPORT void mm_lsub(void){}
| PHP_IMAP_EXPORT void mm_list(void){}
| PHP_IMAP_EXPORT void mm_exists(void){}
| PHP_IMAP_EXPORT void mm_searched(void){}
| PHP_IMAP_EXPORT void mm_expunged(void){}
|
| char utf8_to_mutf7_php();
| int main() {
| utf8_to_mutf7_php();
| return 0;
| }
|
configure:6448: checking whether rfc822_output_address_list function present
configure:6496: clang -o conftest -g -O2 conftest.c
-Wl,-rpath,/usr/local/opt/openssl/lib -L/usr/local/opt/openssl/lib -lcrypto -lssl -lcrypto -Wl,-rpath,/usr/local/opt/imap-uw/lib -L/usr/local/opt/imap-uw/lib -lc-client -lpam -lkrb5
>&5
conftest.c:42:54: warning: control reaches end of non-void function [-Wreturn-type]
char foobar () {f = rfc822_output_address_list;}
^
1 warning generated.
Undefined symbols for architecture x86_64:
"_OPENSSL_init_crypto", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
"_OPENSSL_init_ssl", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
_ssl_onceonlyinit in libc-client.a(osdep.o)
"_SSL_CTX_set_options", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
_ssl_start in libc-client.a(osdep.o)
"_SSL_in_init", referenced from:
_ssl_start in libc-client.a(osdep.o)
"_TLS_client_method", referenced from:
_ssl_start in libc-client.a(osdep.o)
"_TLS_server_method", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:6496: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define COMPILE_DL_IMAP 1
| #define HAVE_IMAP 1
| #define HAVE_IMAP2000 1
| #define HAVE_IMAP2004 1
| #define HAVE_NEW_MIME2TEXT 1
| #define HAVE_LIBPAM 1
| #define HAVE_IMAP_KRB 1
| #define HAVE_IMAP_SSL 1
| /* end confdefs.h. */
|
|
| #if defined(__GNUC__) && __GNUC__ >= 4
| # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
| #else
| # define PHP_IMAP_EXPORT
| #endif
|
| PHP_IMAP_EXPORT void mm_log(void){}
| PHP_IMAP_EXPORT void mm_dlog(void){}
| PHP_IMAP_EXPORT void mm_flags(void){}
| PHP_IMAP_EXPORT void mm_fatal(void){}
| PHP_IMAP_EXPORT void mm_critical(void){}
| PHP_IMAP_EXPORT void mm_nocritical(void){}
| PHP_IMAP_EXPORT void mm_notify(void){}
| PHP_IMAP_EXPORT void mm_login(void){}
| PHP_IMAP_EXPORT void mm_diskerror(void){}
| PHP_IMAP_EXPORT void mm_status(void){}
| PHP_IMAP_EXPORT void mm_lsub(void){}
| PHP_IMAP_EXPORT void mm_list(void){}
| PHP_IMAP_EXPORT void mm_exists(void){}
| PHP_IMAP_EXPORT void mm_searched(void){}
| PHP_IMAP_EXPORT void mm_expunged(void){}
| void rfc822_output_address_list(void);
| void (*f)(void);
| char foobar () {f = rfc822_output_address_list;}
|
| char foobar();
| int main() {
| foobar();
| return 0;
| }
|
configure:6511: result: no
configure:6522: checking whether build with IMAP works
configure:6567: clang -o conftest -g -O2 conftest.c -Wl,-rpath,/usr/local/opt/openssl/lib -L/usr/local/opt/openssl/lib -lcrypto -lssl -lcrypto -Wl,-rpath,/usr/local/opt/imap-uw/lib -L/usr/local/opt/imap-uw/lib -lc-client -lpam -lkrb5 >&5
Undefined symbols for architecture x86_64:
"_OPENSSL_init_crypto", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
"_OPENSSL_init_ssl", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
_ssl_onceonlyinit in libc-client.a(osdep.o)
"_SSL_CTX_set_options", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
_ssl_start in libc-client.a(osdep.o)
"_SSL_in_init", referenced from:
_ssl_start in libc-client.a(osdep.o)
"_TLS_client_method", referenced from:
_ssl_start in libc-client.a(osdep.o)
"_TLS_server_method", referenced from:
_ssl_server_init in libc-client.a(osdep.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:6567: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define COMPILE_DL_IMAP 1
| #define HAVE_IMAP 1
| #define HAVE_IMAP2000 1
| #define HAVE_IMAP2004 1
| #define HAVE_NEW_MIME2TEXT 1
| #define HAVE_LIBPAM 1
| #define HAVE_IMAP_KRB 1
| #define HAVE_IMAP_SSL 1
| /* end confdefs.h. */
|
|
|
| #if defined(__GNUC__) && __GNUC__ >= 4
| # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
| #else
| # define PHP_IMAP_EXPORT
| #endif
|
| PHP_IMAP_EXPORT void mm_log(void){}
| PHP_IMAP_EXPORT void mm_dlog(void){}
| PHP_IMAP_EXPORT void mm_flags(void){}
| PHP_IMAP_EXPORT void mm_fatal(void){}
| PHP_IMAP_EXPORT void mm_critical(void){}
| PHP_IMAP_EXPORT void mm_nocritical(void){}
| PHP_IMAP_EXPORT void mm_notify(void){}
| PHP_IMAP_EXPORT void mm_login(void){}
| PHP_IMAP_EXPORT void mm_diskerror(void){}
| PHP_IMAP_EXPORT void mm_status(void){}
| PHP_IMAP_EXPORT void mm_lsub(void){}
| PHP_IMAP_EXPORT void mm_list(void){}
| PHP_IMAP_EXPORT void mm_exists(void){}
| PHP_IMAP_EXPORT void mm_searched(void){}
| PHP_IMAP_EXPORT void mm_expunged(void){}
|
| char mail_newbody();
| int main() {
| mail_newbody();
| return 0;
| }
|
configure:6579: result: no
configure:6581: error: build test failed. Please check the config.log for details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin18.7.0
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value=clang
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-apple-darwin18.7.0
ac_cv_lib_crypto_CRYPTO_free=yes
ac_cv_lib_pam_pam_start=yes
ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_KRB5_CONFIG=/usr/bin/krb5-config
ac_cv_path_PKG_CONFIG=/usr/local/opt/pkg-config/bin/pkg-config
ac_cv_prog_AWK=awk
ac_cv_prog_CPP='clang -E'
ac_cv_prog_cc_c89=
ac_cv_prog_cc_clang_c_o=yes
ac_cv_prog_cc_g=yes
ac_cv_target=x86_64-apple-darwin18.7.0
ac_cv_u8t_decompose=yes
ac_cv_utf8_mime2text=new
lt_cv_path_SED=/usr/local/Homebrew/Library/Homebrew/shims/mac/super/sed
php_cv_cc_dashr=no
php_cv_cc_rpath=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
AWK='awk'
CC='clang'
CFLAGS='-g -O2'
CONFIGURE_COMMAND=' '\''./configure'\'' '\''--with-php-config=/usr/local/opt/php/bin/php-config'\'' '\''--with-imap=/usr/local/opt/imap-uw'\'' '\''--with-imap-ssl=/usr/local/opt/openssl'\'' '\''--with-kerberos'\'''
CONFIGURE_OPTIONS=' '\''--with-php-config=/usr/local/opt/php/bin/php-config'\'' '\''--with-imap=/usr/local/opt/imap-uw'\'' '\''--with-imap-ssl=/usr/local/opt/openssl'\'' '\''--with-kerberos'\'''
CPP='clang -E'
CPPFLAGS=''
DEFS=''
DSYMUTIL=''
ECHO='/bin/echo'
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
GREP='/usr/bin/grep'
KRB5_CONFIG='/usr/bin/krb5-config'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
NMEDIT=''
OBJEXT='o'
OPENSSL_INCDIR_OPT='-I/usr/local/opt/openssl/include'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/local/opt/pkg-config/bin/pkg-config'
RANLIB=''
RE2C='exit 0;'
SED='/usr/local/Homebrew/Library/Homebrew/shims/mac/super/sed'
SHELL='/bin/sh'
SHLIB_DL_SUFFIX_NAME='so'
SHLIB_SUFFIX_NAME='dylib'
STRIP=''
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin18.7.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin18.7.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-apple-darwin18.7.0'
host_alias='x86_64-apple-darwin18.7.0'
host_cpu='x86_64'
host_os='darwin18.7.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/Cellar/php/7.3.9_1'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-apple-darwin18.7.0'
target_alias=''
target_cpu='x86_64'
target_os='darwin18.7.0'
target_vendor='apple'
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define COMPILE_DL_IMAP 1
#define HAVE_IMAP 1
#define HAVE_IMAP2000 1
#define HAVE_IMAP2004 1
#define HAVE_NEW_MIME2TEXT 1
#define HAVE_LIBPAM 1
#define HAVE_IMAP_KRB 1
#define HAVE_IMAP_SSL 1
configure: exit 1
It's currently impossible to
brew install php-imap@7.3
, it fails on./configure
step.From what I could find, it's because the formula depends on
openssl
, butimap-uw
already depends onopenssl@1.1
. When I did the build manually, I changed the--with-imap-ssl
to point to openssl 1.1 dir and everything started to work just fine.config.log
: