[Dovecot] 0.99.10-rc1

Jeremy Katz katzj at redhat.com
Mon Jun 23 07:53:57 EEST 2003


On Sun, 2003-06-22 at 23:39, Warren Togami wrote:
> Compile failed here, nothing changed since my test13 SRPM other than
> replacing the rc1 tarball.  Any idea why it wants zlib-devel now?

OpenSSL 0.9.7a requires zlib...  look at /usr/lib/pkgconfig/openssl.pc
and the required libraries line has -lz.  Since the configure script now
uses pkg-config, it picks that up (even though nothing dovecot is using
explicitly requires symbols from zlib)

> gcc -I/usr/kerberos/include -Wall -W -Wmissing-prototypes
> -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2
> -Wbad-function-cast -I/usr/kerberos/include -o dovecot auth-process.o
> login-process.o mail-process.o main.o master-settings.o ssl-init.o
> ssl-init-gnutls.o ssl-init-openssl.o  ../lib/liblib.a
> ../lib-settings/libsettings.a -L/usr/kerberos/lib -lssl -lcrypto
> -lresolv -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -ldl -lz
> ssl-init.o(.text+0x67): In function `generate_parameters_file':
> : undefined reference to `_ssl_generate_parameters'
> collect2: ld returned 1 exit status
> make[3]: *** [dovecot] Error 1

Patch attached to fix this.

> Out of curiosity I compiled this rc1 tarball on RH8, and it compiled
> successfully without zlib-devel.  No RH8 server to test functionality
> though.

Red Hat Linux 8 ships with a version of OpenSSL without the .pc file and
so doesn't exercise the new stuff.

Cheers,

Jeremy
-------------- next part --------------
--- dovecot-0.99.10-rc1/configure.in.ssl	2003-06-23 00:47:05.000000000 -0400
+++ dovecot-0.99.10-rc1/configure.in	2003-06-23 00:47:07.000000000 -0400
@@ -732,6 +732,7 @@
   if pkg-config --exists openssl; then
     PKG_CHECK_MODULES(SSL, openssl)
     CFLAGS="$CFLAGS $SSL_CFLAGS"
+    AC_DEFINE(HAVE_OPENSSL,, Build with OpenSSL support)
     have_ssl="yes (OpenSSL)"
     have_openssl=yes
   else


More information about the dovecot mailing list