William,
I think you are missing the pkg-config package, that is used by dovecot to find the libraries.
Try to install pkg-config and to run configure with no additional variable:

> ./configure \
>     --prefix=/usr/local/dovecot \
>     --with-sql \
>     --with-mysql \
>     --without-pam \
>     --without-pgsql \
>     --without-sqlite \
>     --with-solr \
>     --with-bzlib \
>     --with-lz4 \
>     --with-ldap

regards
Roberto

Il 09/01/26 08:36, William Silverstein via dovecot ha scritto:
I am running Debian Trixie. I try building the, but the configuration fails:
I tried building with:
./configure \
    --prefix=/usr/local/dovecot \
    --with-sql \
    --with-mysql \
    --without-pam \
    --without-pgsql \
    --without-sqlite \
    --with-solr \
    --with-bzlib \
    --with-lz4 \
    --with-ldap

I get configure: error: cannot build with MySQL support: Neither MySQL
(mysqlclient) nor MariaDB library (libmariadb) found. But I did install
libldb-dev. I also installed libldap2-dev liblz4-dev

But when I do:
EXPAT_CFLAGS=/usr/include EXPAT_LIBS=/lib/x86_64-linux-gnu \
LZ4_CFLAGS=/usr/include LZ4_LIBS=/usr/lib/x86_64-linux-gnu \
ZLIB_CFLAGS=/usr/include ZLIB_LIBS=/lib/x86_64-linux-gnu \
MARIADB_LIBS=/usr/lib/x86_64-linux-gnu MARIADB_CFLAGS=/usr/include/mariadb \
./configure \
    --prefix=/usr/local/dovecot \
    --with-sql \
    --with-mysql \
    --without-pam \
    --without-pgsql \
    --without-sqlite \
    --with-solr \
    --with-bzlib \
    --with-lz4

It configures, them fails in the build.

I got some LZ4_DEPRECATED("use LZ4_compress_default() instead") LZ4LIB_API
int LZ4_compress (const char* src, char* dest, int srcSize);

I get a bunch of linker errors:
/usr/bin/ld: ./.libs/libcompression.a(istream-lz4.o): in function
`i_stream_lz4_read':
/usr/local/src/dovecot-2.4.2/src/lib-compression/istream-lz4.c:192:(.text+0x619):
undefined reference to `LZ4_decompress_safe'
/usr/bin/ld: ./.libs/libcompression.a(istream-zlib.o): in function
`i_stream_zlib_init':
/usr/local/src/dovecot-2.4.2/src/lib-compression/istream-zlib.c:324:(.text+0x1d):
undefined reference to `inflateInit2_'
/usr/bin/ld: ./.libs/libcompression.a(istream-zlib.o): in function
`i_stream_zlib_close':
/usr/local/src/dovecot-2.4.2/src/lib-compression/istream-zlib.c:46:(.text+0xa8):
undefined reference to `inflateEnd'
/usr/bin/ld: ./.libs/libcompression.a(istream-zlib.o): in function
`i_stream_zlib_reset':
/usr/local/src/dovecot-2.4.2/src/lib-compression/istream-zlib.c:358:(.text+0x168):
undefined reference to `inflateEnd'
/usr/bin/ld:
/usr/local/src/dovecot-2.4.2/src/lib-compression/istream-zlib.c:358:(.text+0x3a7):
undefined reference to `inflateEnd'
/usr/bin/ld: ./.libs/libcompression.a(istream-zlib.o): in function
`i_stream_zlib_read':
/usr/local/src/dovecot-2.4.2/src/lib-compression/istream-zlib.c:264:(.text+0x97f):
undefined reference to `inflate'
/usr/bin/ld:
/usr/local/src/dovecot-2.4.2/src/lib-compression/istream-zlib.c:220:(.text+0xa7f):
undefined reference to `inflateEnd'
/usr/bin/ld: ./.libs/libcompression.a(ostream-lz4.o): in function
`o_stream_lz4_compress':
/usr/local/src/dovecot-2.4.2/src/lib-compression/ostream-lz4.c:94:(.text+0x12f):
undefined reference to `LZ4_compress'
/usr/bin/ld: ./.libs/libcompression.a(ostream-zlib.o): in function
`o_stream_zlib_close':
/usr/local/src/dovecot-2.4.2/src/lib-compression/ostream-zlib.c:91:(.text+0x1ee):
undefined reference to `deflateEnd'
/usr/bin/ld: ./.libs/libcompression.a(ostream-zlib.o): in function
`o_stream_create_zlib':
/usr/local/src/dovecot-2.4.2/src/lib-compression/ostream-zlib.c:412:(.text+0x339):
undefined reference to `deflateInit2_'
/usr/bin/ld: ./.libs/libcompression.a(ostream-zlib.o): in function
`o_stream_zlib_send_flush':
/usr/local/src/dovecot-2.4.2/src/lib-compression/ostream-zlib.c:281:(.text+0x577):
undefined reference to `deflate'
/usr/bin/ld: ./.libs/libcompression.a(ostream-zlib.o): in function
`o_stream_zlib_send_chunk':
/usr/local/src/dovecot-2.4.2/src/lib-compression/ostream-zlib.c:213:(.text+0x83b):
undefined reference to `deflate'

Any suggestions?

Thanks.








_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to