Dovecot and --with-mysql #4936
Unanswered
afiglee
asked this question in
Getting started
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew config
Output of
brew doctor
Description of issue
I need to install dovecot with mysql. So, I do
%brew edit dovecot #added --with-mysql
%export HOMEBREW_NO_INSTALL_FROM_API=1
%brew reinstall -s dovecot
..
and Im getting error in make install:
_==> make install
Last 15 lines from /Users/m2tx9/Library/Logs/Homebrew/dovecot/02.make:
#include <mysql.h>
^~~~~~~~~
1 error generated.
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -I/usr/local/include/mysql -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/opt/homebrew/Cellar/openssl@3/3.2.0/include -c driver-cassandra.c -o driver-cassandra.o >/dev/null 2>&1
make[2]: *** [driver-mysql.lo] Error 1libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -I/usr/local/include/mysql -I../../src/lib-test -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/opt/homebrew/Cellar/openssl@3/3.2.0/include -c driver-test.c -fno-common -DPIC -o .libs/libdriver_test_la-driver-test.o
make[2]: *** Waiting for unfinished jobs....
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -I/usr/local/include/mysql -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/opt/homebrew/Cellar/openssl@3/3.2.0/include -c driver-pgsql.c -o driver-pgsql.o >/dev/null 2>&1
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -I/usr/local/include/mysql -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/opt/homebrew/Cellar/openssl@3/3.2.0/include -c sql-db-cache.c -o sql-db-cache.o >/dev/null 2>&1
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -I/usr/local/include/mysql -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/opt/homebrew/Cellar/openssl@3/3.2.0/include -c driver-sqlite.c -o driver-sqlite.o >/dev/null 2>&1
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -I/usr/local/include/mysql -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/opt/homebrew/Cellar/openssl@3/3.2.0/include -c driver-sqlpool.c -o driver-sqlpool.o >/dev/null 2>&1
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -I/usr/local/include/mysql -I../../src/lib-test -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/opt/homebrew/Cellar/openssl@3/3.2.0/include -c driver-test.c -o libdriver_test_la-driver-test.o >/dev/null 2>&1
libtool: compile: clang -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -I/usr/local/include/mysql -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -I/opt/homebrew/Cellar/openssl@3/3.2.0/include -c sql-api.c -o sql-api.o >/dev/null 2>&1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
READ THIS: https://docs.brew.sh/Troubleshooting_
It looks like #include looks for mysql.h in <>, which probably /usr/include.
mysql installed through brew and I linked
ls -l /usr/local/include/mysql
lrwxr-xr-x 1 root wheel 27 Nov 29 07:07 /usr/local/include/mysql -> /opt/homebrew/include/mysql
And even linked mysql dir into xcode path under /usr/include with no success.
Any ideas how to add mysql support?
Beta Was this translation helpful? Give feedback.
All reactions