Hi all.

I’m getting errors when trying to configure make for version 2.3.21 on macOS
14.3.1 Sonoma.

It ends with:

checking for mysql_config... mysql_config
checking for mysql_init in -lmysqlclient... no
configure: error: Can't build with MySQL support: libmysqlclient not found

I’m using:

env PKG_CONFIG_PATH=/opt/homebrew/lib/pkgconfig pkg-config --libs libsodium

CPPFLAGS=-I/opt/homebrew/Cellar/openssl@3/3.2.1/include LDFLAGS=-L/opt/
homebrew/opt/openssl@3/lib ./configure --with-ssl=openssl --with-mysql --with-
sodium

Looking at config.log I see:

configure:28222: checking for mysql_config
configure:28238: found /opt/homebrew/bin/mysql_config
configure:28250: result: mysql_config
configure:28285: checking for mysql_init in -lmysqlclient
configure:28310: gcc -o conftest -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.1/include -I/opt/homebrew/Cellar/openssl@3/3.2.1/include -L/opt/
homebrew/opt/openssl@3/lib conftest.c -lmysqlclient   -L/opt/homebrew/Cellar/
mysql/8.3.0_1/lib -lmysqlclient -lz  -lzstd  -lssl  -lcrypto -lresolv -lz -lm
>&5
ld: warning: ignoring duplicate libraries: '-lmysqlclient', '-lz'
ld: library 'zstd' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:28310: $? =1


Odd that it is using the old version mysql.

Would someone be able to help me get it to find libmysqlclient?

In /opt/homebrew/Cellar/mysql/8.0.32/lib/ I have:

libmysqlclient.21.dylib
libmysqlclient.a
libmysqlclient.dylib

Thanks,

James.
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to